Commit 057ab5d
committed
test: cover the codex effort values that killed agents at config load
Two regressions from the 2026-08-17 incident, where a task dispatched at
`effort:max` spawned `codex -c model_reasoning_effort=max` and codex rejected
it while loading its config — before the prompt was read, so all three retries
died identically.
- agentCliSpawning: assert the CLI builder clamps max/ultra to xhigh for codex.
The TUI builder already had this assertion; the CLI builder is the one that
actually shipped the bad argv.
- agentErrorAnalysis: classify the pathless "Error loading config.toml: unknown
variant `max`" wording codex emits for a `-c` override rejection (the existing
test used the file:line:col form), and assert the failure blocks on the first
attempt instead of burning all three retries.1 parent 4678635 commit 057ab5d
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
397 | 411 | | |
398 | 412 | | |
399 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
132 | 153 | | |
133 | 154 | | |
134 | 155 | | |
| |||
0 commit comments