You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Bash detached description points at BashOutput, which is refused in runs nobody can approve #1623
The Bash tool's detached parameter tells the model to read the job with BashOutput (internal/tools/Bash.yaml: "Use BashOutput to read output and Wait to wait for completion"), but BashOutput is approval-gated (docs/tools-reference.md lists it as requiring approval). In an unattended run (infer-action, CI) no approver exists, so every call the description invites is refused. #1583 / PR 1588 made the refusal text honest but left the tool description pointing at a tool that can never succeed in that session.
Seen in the week ending 2026-10-28 session analysis: 2 of 6 infer runs (inference-gateway/cli#1603 and inference-gateway/desktop#321) hit Blocked: BashOutput requires approval and nobody can approve in this session, each right after a foreground command was killed by the 120 s Bash timeout and re-run detached. Wait worked in the same runs (cli 2 calls, desktop 1, adk 3).
Steps to Reproduce
Run infer agent headless with the default safety config and no approver (for example through infer-action).
Run a slow command with detached: true.
Follow the tool description and call BashOutput on the returned shell id.
Expected Behavior
Either the detached description names only tools that work without approval in that session (Wait), or reading a background shell's output is not approval-gated at all, since it is read-only and the shell was already approved when it started.
Actual Behavior
BashOutput is refused, the agent spends a turn on the refusal, then falls back to Wait.
Done. Issue #1623 is resolved in PR #1625 (ready for review).
What changed
The root cause: BashOutput and ListShells had no require_approval in their manifests, so they inherited the global tools.safety.require_approval gate. In unattended runs with no approver, every BashOutput follow-up was refused exactly where the detached Bash description sends the model. Wait worked in those same runs because Wait.yaml already carries require_approval: false. The fix applies that same precedent to the two read-only shell tools, rather than rewriting the description to dodge the question:
internal/tools/BashOutput.yaml: added require_approval: false - reading output of a shell the session already approved when it started is read-only monitoring
internal/tools/ListShells.yaml: same, the identical read-only class that would have been the next refusal in the same run pattern
internal/agent/loop/testdata/tool_definitions.golden.json: regenerated; the approval snapshot flips only BashOutput/ListShells to false in standard mode with global approval on
docs/tools-reference.md: approval column for both tools now says No
The detached description in Bash.yaml needed no edit - with the gate removed it is accurate in every session. Checks: task precommit:run (mod tidy, fmt, imports, golangci-lint 0 issues, markdownlint) plus the golden test and targeted tests for internal/agent/loop and internal/tools all pass.
Tracking: the issue was added to Roadmap board project #8 and moved to QA after PR #1625 opened; downstream docs ticket filed as inference-gateway/docs#1031 since this changes public-facing approval behavior.
Skipped deliberately: KillShell stays approval-gated (SIGTERM/SIGKILL is destructive, not read-only, and out of the issue's scope), no per-tool "re-gate via config" knob was added for the shell trio, and BashOutput remains unoffered in plan/readonly modes - a pre-existing availability gap, not an approval one. Risk: a user with tools.safety.require_approval: true expecting every tool gated now gets the two read-only monitor tools ungated - that is the change the issue asks for.
Activity
edenreich commentedon Oct 28, 2026
@infer can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Oct 28, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.1· CLI:v0.237.0· Gateway:v0.60.1· View JobTodos
Pull Request
#1625
✅ Infer Result: Success
Done. Issue #1623 is resolved in PR #1625 (ready for review).
What changed
The root cause:
BashOutputandListShellshad norequire_approvalin their manifests, so they inherited the globaltools.safety.require_approvalgate. In unattended runs with no approver, everyBashOutputfollow-up was refused exactly where thedetachedBash description sends the model.Waitworked in those same runs becauseWait.yamlalready carriesrequire_approval: false. The fix applies that same precedent to the two read-only shell tools, rather than rewriting the description to dodge the question:internal/tools/BashOutput.yaml: addedrequire_approval: false- reading output of a shell the session already approved when it started is read-only monitoringinternal/tools/ListShells.yaml: same, the identical read-only class that would have been the next refusal in the same run patterninternal/agent/loop/testdata/tool_definitions.golden.json: regenerated; the approval snapshot flips only BashOutput/ListShells to false in standard mode with global approval ondocs/tools-reference.md: approval column for both tools now says NoThe
detacheddescription in Bash.yaml needed no edit - with the gate removed it is accurate in every session. Checks:task precommit:run(mod tidy, fmt, imports, golangci-lint 0 issues, markdownlint) plus the golden test and targeted tests forinternal/agent/loopandinternal/toolsall pass.Tracking: the issue was added to Roadmap board project #8 and moved to QA after PR #1625 opened; downstream docs ticket filed as inference-gateway/docs#1031 since this changes public-facing approval behavior.
Skipped deliberately: KillShell stays approval-gated (SIGTERM/SIGKILL is destructive, not read-only, and out of the issue's scope), no per-tool "re-gate via config" knob was added for the shell trio, and BashOutput remains unoffered in plan/readonly modes - a pre-existing availability gap, not an approval one. Risk: a user with
tools.safety.require_approval: trueexpecting every tool gated now gets the two read-only monitor tools ungated - that is the change the issue asks for.Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.1· CLI:v0.237.0· Gateway:v0.60.1· Exit Code:0· Duration: 6m 21sTokens: 2,504,362 in · 24,116 out · 2,528,478 total (44 requests)
Tool calls: 74 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
fix(tools): allow BashOutput and ListShells without approval (#1625)
inference-gateway-releaser commentedon Oct 28, 2026
🎉 This issue has been resolved in version 0.238.0 🎉
The release is available on:
Your semantic-release bot 📦🚀