镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

fix: preserve empty structured shell results - #5423

Merged
jbeckwith-oai merged 1 commit into
mainfrom
fix/empty-shell-result
Oct 26, 2026
Merged

jbeckwith-oai merged 1 commit into
mainfrom
fix/empty-shell-result

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

Preserve ShellResult(output=[]) as an empty structured result instead of wrapping the display placeholder (no output) as stdout and inventing exit code zero. Display rendering and string-returning executors keep their existing behavior.

Add Runner-level regression coverage for ordinary and streamed runs, checking the next model request, retained raw output, metadata, and output limits.

Test plan

  • Both regression cases fail before the fix; all 24 shell tests pass after it.
  • Two consecutive clean adversarial review rounds, with two independent reviewers per round.
  • Full repository verification on an identical source snapshot with a writable XDG_STATE_HOME and a path without user, avoiding unrelated environment-sensitive assertions.

Issue number

Closes #5348

Checks

  • I've added new tests, if relevant
  • I've run .agents/skills/code-change-verification/scripts/run.sh
  • I've confirmed all verification steps pass
  • If using Codex, I've run /review before submitting this PR

@jbeckwith-oai
jbeckwith-oai requested review from a team, rm-openai and seratch as code owners October 26, 2026 21:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T21:26:28.090953Z c463d55 PR opened
🔒 Security Review ✅ Completed 2026-10-26T21:27:01.614461Z c463d55 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 26, 2026

@marcuswood-oai marcuswood-oai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 No changes requested.


Reviewed: c463d55 · Base: e00ea5c · sdk-pr-review

Merged via the queue into main with commit 963d032 Oct 26, 2026
27 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the fix/empty-shell-result branch October 26, 2026 21:46
@openai-sdks openai-sdks Bot mentioned this pull request Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ShellTool: empty ShellResult(output=[]) fabricates stdout "(no output)" in the model-visible shell_call_output and persisted shell_output

3 participants