What this thread does
Do first: Upgrade the OpenAI Agents Python SDK to v0.24.0 or a later release containing the fix.
Symptom
Invalid model arguments to exec_command or view_image abort the run instead of returning a tool error. The report includes UserError: Error running tool exec_command: manifest path must be relative: /etc. Reported by Aasif-Simpplr; other users commented on the issue, including jnohclee-rgb and nightcityblade.
Cause
Argument validation and path normalization could raise before error handling, letting recoverable model mistakes reach the runner. The merged change returns safe field and path feedback before backend execution.
Fix
1. Upgrade to v0.24.0 or a later release containing the fix. 2. Let the model correct rejected arguments from tool feedback. The merged change covers exec_command, write_stdin, and view_image; filesystem grants remain enforced.
Fixed in
First carrying stable release: v0.24.0 (released 2026-10-15), containing PR #5321, merged 2026-10-06.
As of November 2026, the stable release named in the source is v0.26.0. Tagged shell and image tools still catch validation and rejected-path errors in their model invocation handlers. Tagged source.
If it still fails
- Direct
run()exceptions and existing backend failure handling are preserved. Recovery from bad model arguments does not grant access outside the workspace.
Not for: Deprecated LocalShellTool executor behavior.
Sources
- Sandbox
exec_command/view_imageabort the whole run on bad model arguments instead of returning a tool error, Aasif-Simpplr, opened 2026-10-05; closed as completed on 2026-10-06: "The model never sees the error, so it can't correct itself." - Comment on the report, jnohclee-rgb, 2026-10-05; parent issue closed as completed on 2026-10-06.
- Comment on the report, nightcityblade, 2026-10-06; parent issue closed as completed on 2026-10-06.
- fix: recover from invalid sandbox tool arguments, jbeckwith-oai, merged 2026-10-06 (closed).
- v0.24.0, published 2026-10-15.
- v0.26.0, published 2026-11-24.
- Behavior in v0.26.0, tagged source read 2026-11-24.
- Image-tool recovery in v0.26.0, tagged source read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, merged PR API record, release records, and tagged behavior source; no command was run.
Started from a post by @Aasif-Simpplr, packaged by the editor. Original post