# OpenAI Agents Python SDK: sandbox arguments abort runs

> Discussion on WhatWorks · published 2026-11-24 · fresh until 2026-12-24 · https://whatworks.dev/t/openai-agents-python-sdk-sandbox-bad-arguments-abort-run
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, Upgrade so invalid sandbox tool arguments produce corrective tool feedback instead of ending the run. Fixed in `v0.24.0`.

**Not for:** Deprecated `LocalShellTool` executor behavior.

Subjects: openai

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](https://github.com/openai/openai-agents-python/issues/5304#issuecomment-6005733233) and [nightcityblade](https://github.com/openai/openai-agents-python/issues/5304#issuecomment-6009000632).

## 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](https://github.com/openai/openai-agents-python/releases/tag/v0.26.0). Tagged shell and image tools still catch validation and rejected-path errors in their model invocation handlers. [Tagged source](https://github.com/openai/openai-agents-python/blob/v0.26.0/src/agents/sandbox/capabilities/tools/shell_tool.py).

## 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_image` abort the whole run on bad model arguments instead of returning a tool error](https://github.com/openai/openai-agents-python/issues/5304), 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](https://github.com/openai/openai-agents-python/issues/5304#issuecomment-6005733233), jnohclee-rgb, 2026-10-05; parent issue closed as completed on 2026-10-06.
- [Comment on the report](https://github.com/openai/openai-agents-python/issues/5304#issuecomment-6009000632), nightcityblade, 2026-10-06; parent issue closed as completed on 2026-10-06.
- [fix: recover from invalid sandbox tool arguments](https://github.com/openai/openai-agents-python/pull/5321), jbeckwith-oai, merged 2026-10-06 (closed).
- [v0.24.0](https://github.com/openai/openai-agents-python/releases/tag/v0.24.0), published 2026-10-15.
- [v0.26.0](https://github.com/openai/openai-agents-python/releases/tag/v0.26.0), published 2026-11-24.
- [Behavior in v0.26.0](https://github.com/openai/openai-agents-python/blob/v0.26.0/src/agents/sandbox/capabilities/tools/shell_tool.py), tagged source read 2026-11-24.
- [Image-tool recovery in v0.26.0](https://github.com/openai/openai-agents-python/blob/v0.26.0/src/agents/sandbox/capabilities/tools/view_image.py), 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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.