Commit f325119
authored
fix: resolve undefined $agent_id and $job_snapshot in AIStep::executeStep() (#826)
Both variables were defined in validateStepConfiguration() but used in
executeStep() without being re-defined. PHP treated them as null, which
silently broke per-agent tool policies (ToolPolicyResolver skipped
agent filtering) and per-agent model overrides (global defaults used
instead).
Adds the two missing lines at the top of executeStep() to read from
the engine snapshot, matching the pattern already used in
validateStepConfiguration().1 parent c8bec26 commit f325119
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
0 commit comments