Skip to content

fix(tools): surface non-zero bash exits as tool errors#118

Merged
frostming merged 2 commits intomainfrom
fix/bash-exit-tool-error
Mar 17, 2026
Merged

fix(tools): surface non-zero bash exits as tool errors#118
frostming merged 2 commits intomainfrom
fix/bash-exit-tool-error

Conversation

@PsiACE
Copy link
Copy Markdown
Collaborator

@PsiACE PsiACE commented Mar 16, 2026

  • BUB_MAX_STEPS=5
  • BUB_API_FORMAT=responses
  • BUB_MODEL=openai:openai/gpt-5.4

Before Fix

result=EXCEPTION: max_steps_reached=5
tool_result={'results': ['boom']}
step=1 status=continue
step=2 status=continue
step=3 status=continue
step=4 status=continue
step=5 status=continue

After Fix

result=The bash tool reported an execution failure: the command exited with code 7 and output `boom`. Per
your instruction, I’m stopping here.
tool_result={'results': [{'kind': 'tool', 'message': "Tool 'bash' execution failed.", 'details': {'error':
"RuntimeError('command exited with code 7\\noutput:\\nboom')"}}]}
step=1 status=continue
step=2 status=ok

This comment was marked as resolved.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@frostming frostming merged commit 86a4526 into main Mar 17, 2026
5 checks passed
@frostming frostming deleted the fix/bash-exit-tool-error branch March 17, 2026 00:30
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.

3 participants