Repository navigation
fix(tools): allow BashOutput and ListShells without approval - #1625
Merged
Merged
Conversation
Reading the output of a background shell is read-only monitoring of a command the session already approved when it started through the Bash allow-list. It must not inherit tools.safety.require_approval. In unattended runs (infer-action, CI) with no approver, the inherited gate turned every BashOutput follow-up into a refusal right after a detached run, and the detached Bash description points the model at BashOutput. ListShells is the same read-only class. This matches the Wait manifest precedent, which already sets require_approval: false. KillShell stays approval-gated since SIGTERM/SIGKILL is an active destructive action.
2 tasks
inference-gateway-maintainer
Bot
marked this pull request as ready for review
October 28, 2026 13:02
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
October 28, 2026 13:02
Contributor
|
🎉 This PR is included in version 0.238.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Resolves #1623
Summary
BashOutput and ListShells carried no require_approval in their manifests, so they inherited the global tools.safety.require_approval gate. In unattended runs (infer-action, CI) with no approver, every BashOutput follow-up was refused with "Blocked: BashOutput requires approval and nobody can approve in this session" - exactly one turn after the detached Bash call, whose description tells the model to read output with BashOutput. Both tools are read-only monitoring of a command the session already approved when it started through the Bash allow-list, so they now declare require_approval: false in their manifests, matching the Wait precedent (Wait.yaml already sets it, which is why Wait worked in those same runs).
Changes
Notes