Agents: remove redundant bash tool alias #1571
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Agents: remove redundant bash tool alias
Why
bashtool definition was showing up in the request to the provider even though it is just an alias ofexec, which is redundant and confusing.exec/bashdefinitions):{ "name": "exec", "description": "Execute shell commands with background continuation. Use yieldMs/background to continue later via process tool. Use pty=true for TTY-required commands (terminal UIs, coding agents).", "input_schema": { "type": "object", "properties": { "command": { "description": "Shell command to execute", "type": "string" }, "workdir": { "description": "Working directory (defaults to cwd)", "type": "string" }, "env": { "type": "object" }, "yieldMs": { "description": "Milliseconds to wait before backgrounding (default 10000)", "type": "number" }, "background": { "description": "Run in background immediately", "type": "boolean" }, "timeout": { "description": "Timeout in seconds (optional, kills process on expiry)", "type": "number" }, "pty": { "description": "Run in a pseudo-terminal (PTY) when available (TTY-required CLIs, coding agents)", "type": "boolean" }, "elevated": { "description": "Run on the host with elevated permissions (if allowed)", "type": "boolean" }, "host": { "description": "Exec host (sandbox|gateway|node).", "type": "string" }, "security": { "description": "Exec security mode (deny|allowlist|full).", "type": "string" }, "ask": { "description": "Exec ask mode (off|on-miss|always).", "type": "string" }, "node": { "description": "Node id/name for host=node.", "type": "string" } }, "required": ["command"] } }, { "name": "bash", "description": "Execute shell commands with background continuation. Use yieldMs/background to continue later via process tool. Use pty=true for TTY-required commands (terminal UIs, coding agents).", "input_schema": { "type": "object", "properties": { "command": { "description": "Shell command to execute", "type": "string" }, "workdir": { "description": "Working directory (defaults to cwd)", "type": "string" }, "env": { "type": "object" }, "yieldMs": { "description": "Milliseconds to wait before backgrounding (default 10000)", "type": "number" }, "background": { "description": "Run in background immediately", "type": "boolean" }, "timeout": { "description": "Timeout in seconds (optional, kills process on expiry)", "type": "number" }, "pty": { "description": "Run in a pseudo-terminal (PTY) when available (TTY-required CLIs, coding agents)", "type": "boolean" }, "elevated": { "description": "Run on the host with elevated permissions (if allowed)", "type": "boolean" }, "host": { "description": "Exec host (sandbox|gateway|node).", "type": "string" }, "security": { "description": "Exec security mode (deny|allowlist|full).", "type": "string" }, "ask": { "description": "Exec ask mode (off|on-miss|always).", "type": "string" }, "node": { "description": "Node id/name for host=node.", "type": "string" } }, "required": ["command"] } }What
bashalias tool in the tool list.bashentry from tool display metadata.bashfrom the runtime tool group and adjust the test expectation.Notes
bash -> execalias normalization remains so existing configs usingbashcontinue to work.Testing