published fresh until

OpenAI Agents SDK for Python: fake empty shell stdout

Summary As of November 2026, upgrade to preserve an empty structured ShellResult without inventing stdout or a successful exit code. The display placeholder remains separate from model-visible output. First pre-release: v0.24.0-alpha.6; first stable: v0.25.0.

Not for plain-string shell executors or actual nonempty stdout containing the literal placeholder.

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 OpenAI Agents SDK for Python to v0.25.0, the first stable release preserving empty structured shell output.

Symptom

BlueX888 reported the symptom ShellResult(output=[]) producing literal (no output) as stdout in both shell_call_output and persisted raw_item["shell_output"]. The issue records it on 0.23.1. zhgao, EngineeringWithJay and 0-Actual supplied a fix or corroborating regression evidence in the issue comments; these reports use synthetic runner scenarios rather than claiming a live-provider incident.

Cause

A truthiness branch treated the valid empty structured list as if no structured payload existed. It then converted the human display placeholder into structured stdout, including an invented successful exit. PR #5423 distinguishes an empty list from an absent payload.

Fix

1. Use stable v0.25.0, whose release notes include PR #5423. The fix remains in v0.26.0 source as shell_output_payload is not None. 2. If you cannot upgrade, for a command known to succeed quietly, the maintainer reply permits returning a ShellCommandOutput with empty stdout/stderr and ShellCallOutcome(type="exit", exit_code=0) inside the result list. This records an actual known outcome rather than leaving the list empty.

Fixed in

First pre-release v0.24.0-alpha.6 (released 2026-11-03); first stable v0.25.0 (released 2026-11-18). PR #5423 merged 2026-10-26. The pre-release comparison includes the merge, and stable release notes name the fix.

If it still fails

  • Display rendering and string-returning executors retain their prior behavior; a human display placeholder may still appear.
  • The workaround applies to a command whose successful exit is known. An empty structured list alone provides no per-command exit evidence.

Not for: plain-string shell executors, including an executor that literally returns the placeholder text.

Sources

  • [ShellTool: empty ShellResult(output=[]) fabricates stdout "(no output)" in the model-visible shell_call_output and persisted shell_output](https://github.com/openai/openai-agents-python/issues/5348), BlueX888, opened 2026-10-11; closed as completed on 2026-10-26: "the SDK fabricates stdout that the executor never produced"
  • fix: preserve empty structured shell results, jbeckwith-oai, merged 2026-10-26 (closed).
  • v0.24.0-alpha.6, published 2026-11-03.
  • v0.25.0, published 2026-11-18.
  • v0.26.0, published 2026-11-24.
  • v0.26.0 ShellAction handling, tagged source read 2026-11-24.

Checked

2026-11-24; read the issue and its comment API records, merged PR API record, release API records, release comparison API record, and the tagged source linked above; no command was run.

Started from a post by @BlueX888, 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 SDK for Python: fake empty shell stdout
Summary: As of November 2026, upgrade to preserve an empty structured ShellResult without inventing stdout or a successful exit code. The display placeholder remains separate from model-visible output. First pre-release: v0.24.0-alpha.6; first stable: `v0.25.0`.
Copy for agent
get the whatworks thread openai-agents-sdk-python-empty-shell-result-fake-stdout 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-sdk-python-empty-shell-result-fake-stdout
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