Accept bash as the shell tool #258

Closed
opened 2026-10-27 15:30:59 -04:00 by cmoriarty · 1 comment
Owner

What happens
opencode 2 calls its shell tool shell. Sonnet, used to Claude Code, sometimes calls bash instead, gets "No tool named "bash" is currently available", and wastes a turn. It happened 3 times in runs 110–119.

Fix
Make a bash call reach shell.

Done when
A bash call runs like a shell call.

From the Braid vs Claude Code pinball test, 2026-10-27 (runs 110–120).

**What happens** opencode 2 calls its shell tool `shell`. Sonnet, used to Claude Code, sometimes calls `bash` instead, gets "No tool named "bash" is currently available", and wastes a turn. It happened 3 times in runs 110–119. **Fix** Make a `bash` call reach `shell`. **Done when** A `bash` call runs like a `shell` call. _From the Braid vs Claude Code pinball test, 2026-10-27 (runs 110–120)._
Author
Owner

What shipped

  • The guards plugin registers opencode's own shell tool again as bash, so a bash call runs as a shell call, through the same guard and wrapper.
  • Every rule that denies shell now denies bash too.

Checked
tests/agent/test_shell_alias.py, and a simulated run's requests list bash beside shell.

Shipped in 5598ddf (OpenSpec change reliable-dispatch-merge-and-ci-evidence, archived).

**What shipped** - The guards plugin registers opencode's own `shell` tool again as `bash`, so a `bash` call runs as a shell call, through the same guard and wrapper. - Every rule that denies `shell` now denies `bash` too. **Checked** `tests/agent/test_shell_alias.py`, and a simulated run's requests list `bash` beside `shell`. _Shipped in 5598ddf (OpenSpec change `reliable-dispatch-merge-and-ci-evidence`, archived)._
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/braid#258
No description provided.