Skip to content

fix: honor --quiet for --print tool-call stderr output - #294

Merged
Patel230 merged 1 commit into
mainfrom
feat/print-quiet-tools
Sep 7, 2026
Merged

fix: honor --quiet for --print tool-call stderr output#294
Patel230 merged 1 commit into
mainfrom
feat/print-quiet-tools

Conversation

@Patel230

@Patel230 Patel230 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

--print already honors --quiet for the usage footer (PR #289) and exec now honors it for tool activity (PR #293), but --print's [ToolName] stderr labels were emitted unconditionally.

Gate them on !IsQuiet() so --print --quiet is fully clean — machine-parseable stdout and no decoration on stderr — matching exec and the --quiet contract. stream-json output is unchanged.

Verification

  • go build ./..., go vet ./cmd/, gofumpt -l clean.
  • go test ./... exit 0 (ran with -p 1 due to shared-machine process pressure).
  • Targeted TestParseConfirm/TestRenderPrintResponse/TestGoldenHelp pass.

--print already honored --quiet for the usage footer (PR #289) and exec now
honors it for tool activity (PR #293), but --print's [ToolName] stderr labels
were emitted unconditionally. Gate them on !IsQuiet() so --print --quiet is
fully clean (machine-parseable stdout and no decoration on stderr), matching
exec and the --quiet contract. stream-json output is unchanged.
@Patel230
Patel230 merged commit 379a2d4 into main Sep 7, 2026
25 of 26 checks passed
@Patel230
Patel230 deleted the feat/print-quiet-tools branch September 7, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant