Skip to content

Omit shell exit codes after timeout or cancellation - #1180

Merged
SamSaffron merged 1 commit into
SamSaffron:mainfrom
davidtaylorhq:fix/shell-timeout-exit-code
Sep 25, 2026
Merged

SamSaffron merged 1 commit into
SamSaffron:mainfrom
davidtaylorhq:fix/shell-timeout-exit-code

Conversation

@davidtaylorhq

Copy link
Copy Markdown
Contributor

Interrupted shell commands return before their exit status is populated, so the formatter misleadingly reports exit_code: 0 alongside the timeout or cancellation message.

Only display an exit code for commands that completed without interruption. Preserve the timeout/cancellation markers and tool error flags.

Interrupted shell commands return before their exit status is populated, so the formatter misleadingly reports exit_code: 0 alongside the timeout or cancellation message.

Only display an exit code for commands that completed without interruption. Preserve the timeout/cancellation markers and tool error flags.
@SamSaffron
SamSaffron merged commit 5f9985e into SamSaffron:main Sep 25, 2026
5 of 6 checks passed
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.

2 participants