Skip to content

fix(tools): allow BashOutput and ListShells without approval - #1625

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-1623
Oct 28, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-1623

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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

  • internal/tools/BashOutput.yaml: set require_approval: false, following the Wait.yaml precedent
  • internal/tools/ListShells.yaml: same, it is the same read-only monitoring class and would be the next refusal in the same run pattern
  • internal/agent/loop/testdata/tool_definitions.golden.json: regenerated, approval outcomes flip to false for BashOutput and ListShells in standard mode with global approval on
  • docs/tools-reference.md: approval column for BashOutput and ListShells now says No

Notes

  • KillShell intentionally stays approval-gated: sending SIGTERM/SIGKILL is an active destructive action, not read-only, and the issue scopes the fix to reading shell output
  • No downstream ripple: no schemas, SDK, gateway or Helm impact, the change is CLI-local policy in tool manifests
  • Docs ticket: [DOCS] BashOutput and ListShells no longer require approval docs#1031 mirrors this change on the docs site

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.
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Oct 28, 2026
@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review October 28, 2026 13:02
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner October 28, 2026 13:02
@edenreich
edenreich merged commit 2357af8 into main Oct 28, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1623 branch October 28, 2026 13:20
@edenreich edenreich moved this from Todo to Done in 2026 Oct 28, 2026
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.238.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] Bash detached description points at BashOutput, which is refused in runs nobody can approve

1 participant