feat(coding-agent/tools): added bash.enabled setting to hide model-facing bash tool

- Added a `bash.enabled` boolean setting with a default of `true` in the settings schema.
- Updated tool generation to include the `bash` model tool only when `bash.enabled` is enabled.
- Extended createTools tests to assert `bash` is omitted when disabled and omitted from requested disabled tool lists.
This commit is contained in:
can1357
2026-06-09 01:25:19 +02:00
parent 1a2602ce92
commit 7a6ce12bdf
5 changed files with 18 additions and 1 deletions
+2
View File
@@ -16,6 +16,8 @@ There are two different bash execution surfaces in coding-agent:
Both eventually use `executeBash()` in `src/exec/bash-executor.ts` for non-PTY execution, but only the tool-call path runs normalization/interception, optional managed background-job handling, and tool renderer logic.
Set `bash.enabled: false` in settings to remove the model-facing `bash` tool from the active tool registry. This does not disable user-initiated bang commands or RPC `bash` requests.
## End-to-end tool-call pipeline
## 1) Input handling and parameter merge