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
[DOCS] Bash path-check text-value exemptions need documenting #1232
The Bash auto-approval path check in the CLI changed with inference-gateway/cli#1872 (resolves inference-gateway/cli#1870): values that a command never opens as a file are no longer treated as sandbox paths - the jq filter after gh -q/--jq, the free text after --title/--body, the message after git -m, the HTTP endpoint after gh api, and /dev/null as a read operand. docs/tools-reference.md, the paragraph "Paths stay inside the sandbox" (near line 579), still says arguments, --flag=value and -Xvalue values, ~, $VAR and globs "are all checked" without these exemptions, so the page now overstates what gets blocked.
Acceptance Criteria
The "Paths stay inside the sandbox" paragraph in docs/tools-reference.md lists the text-value exemptions (gh -q/--jq, --title/--body, git -m, the gh api endpoint, /dev/null for reads) alongside the existing echo/printf carve-out.
The page still states the hard limits: the values of file-opening options (--body-file, --input, glued --flag=path) and every other operand, including later operands after a skipped text value, still pass the sandbox check.
Any related example or configuration page that discusses Bash auto-approval wording matches the new behavior.
Write the exemptions into the Bash section of cli.md
Validate (lint:md, format:check, build)
Commit and open a PR
Finding: the paragraph the issue names, "Paths stay inside the sandbox" in docs/tools-reference.md near line 579, is in the inference-gateway/cli repository, not here. This site had no coverage of the Bash path check at all - cli.md documented the per-mode allowed-list and the clean-command guard only. So instead of editing the old text, I added the check and its exemptions to cli.md as a new ##### Paths stay inside the sandbox subsection under the Bash tool:
What is checked: operands, --flag=value and -Xvalue values, input redirections, ~, $VAR, globs - against filesystem.allowed / filesystem.denied with symlinks resolved.
The text-value exemptions: the jq filter after gh -q / --jq, the free text after --title / --body, the message after git -m, the gh api endpoint, /dev/null as a read operand, plus the existing echo / printf carve-out.
The hard limits: file-opening option values (--body-file, --input, a glued --flag=path) and every other operand - including operands after a skipped text value - still pass the check, and unknowable paths (${VAR:-x}, $1, {a,b}, ~user) or risky globs still ask.
No other page on this site repeats the old "are all checked" wording, so nothing else needed changing. The source paragraph in the CLI repository still overstates what gets blocked - that needs a separate PR there, which I cannot open from this run.
Activity
edenreich commentedon Nov 16, 2026
@claude can you document this?
inference-gateway-maintainer commentedon Nov 16, 2026
Claude finished @edenreich's task in 2m 23s —— View job •
docs/issue-1232-20261116-1441Documented the Bash path-check exemptions
cli.mdlint:md,format:check,build)Finding: the paragraph the issue names, "Paths stay inside the sandbox" in
docs/tools-reference.mdnear line 579, is in theinference-gateway/clirepository, not here. This site had no coverage of the Bash path check at all -cli.mddocumented the per-mode allowed-list and the clean-command guard only. So instead of editing the old text, I added the check and its exemptions tocli.mdas a new##### Paths stay inside the sandboxsubsection under the Bash tool:--flag=valueand-Xvaluevalues, input redirections,~,$VAR, globs - againstfilesystem.allowed/filesystem.deniedwith symlinks resolved.gh -q/--jq, the free text after--title/--body, the message aftergit -m, thegh apiendpoint,/dev/nullas a read operand, plus the existingecho/printfcarve-out.--body-file,--input, a glued--flag=path) and every other operand - including operands after a skipped text value - still pass the check, and unknowable paths (${VAR:-x},$1,{a,b},~user) or risky globs still ask.No other page on this site repeats the old "are all checked" wording, so nothing else needed changing. The source paragraph in the CLI repository still overstates what gets blocked - that needs a separate PR there, which I cannot open from this run.
Create a PR - already opened as #1234.
| branch
inference-gateway-releaser commentedon Nov 17, 2026
🎉 This issue has been resolved in version 0.9.27 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀