Bash tool overrides are not honored in the latest Copilot SDK/runtime
Description
Custom overrides for the Bash tool family are not honored with Copilot SDK 1.0.13 and @github/[email protected].
The custom handlers for bash, read_bash, stop_bash, and list_bash are never invoked. File and search tool overrides work correctly under the same configuration.
Versions tested
- Copilot SDK:
1.0.13 - CLI/runtime:
@github/[email protected]
The issue reproduces with both the SDK’s default entry point and the full CLI launched through index.js.
Steps to reproduce
- Register custom tools named
bash,read_bash,stop_bash, andlist_bash, with override enabled. - Add logging or invocation counters to each custom handler.
- Register a
createoverride as a control. - Create a session and invoke the tools.
- Observe that the
createhandler is called, but the Bash tool handlers are not.
The issue also reproduces when invoking bash directly through session.tools.execute, without model involvement.
Expected behavior
Overridden tools should use the custom tool schemas and invoke the registered custom handlers.
Actual behavior
| Tools | Override behavior |
|---|---|
view, create, edit |
Works as expected |
glob, grep, apply_patch |
Works as expected |
bash |
Custom handler is not invoked |
read_bash |
Custom handler is not invoked; built-in parameter validation is used instead of the custom schema |
stop_bash |
Custom handler is not invoked; built-in parameter validation is used instead of the custom schema |
list_bash |
Custom handler is not invoked |
Additional evidence
The tool-planning logic recognizes the overrides:
{
"validOverridingExternalToolNames": ["bash", "create"]
}
However, only the create override takes effect. The bash override is recognized but not honored during execution.
Could you confirm whether overriding the Bash tool family is still supported, and investigate why these overrides are not taking effect?
Thanks for the detailed repro and comparison table. Overrides for the shell tool family (bash, read_bash, stop_bash, list_bash) registered with overridesBuiltInTool are now dispatched to your handlers and use your schemas, just like the file and search tool overrides. This is fixed in Copilot CLI 1.0.89 and available in Copilot SDK v1.0.15 and later. If any of these overrides still isn't invoked on the latest version, please reopen with the SDK and CLI versions you're using.
Triaged as part of a Copilot SDK backlog review, with help from GitHub Copilot.