You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI ! bash commands should surface non-zero exit codes #31935
When running a direct shell command via the TUI's ! prefix (Bash commands), there is no visible warning or indicator when the command exits with a non-zero code. The exit code is silently absorbed.
Current behavior
User types !some-command in the TUI, it exits with code 1, and the user has no way to know the command failed unless they read every line of the tool output (which may be truncated). The output does not prominently flag the failure.
Expected behavior
When a ! bash command exits with a non-zero code, the output should include a visible warning, e.g.:
[WARNING] Command exited with code 1
This should be appended to or prepended to the tool output so the user can see it immediately.
Why this matters
! commands are direct user input — the user explicitly asked to run this command
Users cannot tell if the command succeeded or failed without reading every line of output
Long sessions with many commands make it easy to miss silent failures
The output is added to the conversation as a tool result, but the non-zero exit code is not surfaced
changed the title [-]Shell tool should surface non-zero exit codes to the user[/-][+]TUI `!` bash commands should surface non-zero exit codes[/+]on Jun 11, 2026
Activity
[-]Shell tool should surface non-zero exit codes to the user[/-][+]TUI `!` bash commands should surface non-zero exit codes[/+]github-actions commentedon Aug 11, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.