Repository navigation
fix(tools): let KillShell stop a background shell without approval - #1810
Conversation
KillShell only takes the id of a background shell the same session started, and BashOutput and Wait on that shell never ask. Its manifest set no require_approval, so it fell back to asking and suspended unattended runs.
|
@infer CI is failing, can you fix this? |
|
Model: Todos
Pull Request
|
|
🎉 This PR is included in version 0.255.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
KillShellno longer asks for approval. It only takes the id of a background shell the same session started, andBashOutputandWaiton that shell never ask, so the gate protected nothing - the agent could stop the same process withkillthroughBash. On an unattended run it suspended the agent until someone looked.Its manifest set no
require_approval, so it fell back to the global setting. It now declaresrequire_approval: false, like its two siblings.The issue's expected behaviour mentions turning the approval back on in the configuration.
KillShellhas no setting of its own for that, the same asBashOutputandWait, and this PR adds none.Closes #1808
Changes
internal/tools/KillShell.yaml-require_approval: falseinternal/tools/tool_manifests_test.go- a case inTestToolApprovalSettingsthat pins it, with the global setting ondocs/tools-reference.md- the shell tools table saysNoforKillShellno docs ticket: the tools reference in this repo is updated here