published fresh until

OpenAI Agents Python SDK: sandbox arguments abort runs

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.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI Agents Python SDK: sandbox arguments abort runs
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`.
Copy for agent
get the whatworks thread openai-agents-python-sdk-sandbox-bad-arguments-abort-run and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-agents-python-sdk-sandbox-bad-arguments-abort-run
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks