GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — fix(server): pin the Claude CLI verbose setting for text generation by sti0 · Pull Request #7735 · pingdotgg/t3code Conversation
|
call (user + project verbose: true) |
output |
|---|---|
without --settings |
[{"type":"system",… — array |
with --settings {"verbose":false} |
{"is_error":false,… — flat object |
The second test holds that assumption in place: if the CLI ever streams events despite the pinned setting, it fails loudly instead of silently.
Other providers are unaffected — Codex, Cursor, Grok and OpenCode parse the response text straight against the output schema, without an envelope.
Claude Opus 5 via Claude Code.
Created with AI assistance (Claude), reviewed by Timo.
Note
Low Risk
Small, targeted change to Claude CLI invocation flags for text generation; no auth, data, or cross-provider behavior changes.
Overview
Claude text generation now always passes --settings with verbose: false when invoking the Claude CLI, so user or project verbose settings cannot make the CLI return a stream-event JSON array instead of the single { structured_output } envelope the server parses.
Because verbose is always present in the settings object, --settings is sent on every Claude text-generation call, not only when thinking, fast mode, or ultracode flags are set. Existing tests were updated to expect verbose:false alongside those flags.
New tests cover the minimal --settings {"verbose":false} case and assert that stream-style CLI output surfaces a TextGenerationError with an unexpected output format message instead of failing silently and falling back to placeholders.
Reviewed by Cursor Bugbot for commit a4ab429. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
verbose:false in Claude CLI --settings for text generationverbose:false in the settings object before merging optional flags, so --settings is always passed to the Claude CLI.verbose:false in the settings JSON and adds a new test verifying --settings {"verbose":false} is sent even when no other settings are specified.TextGenerationError containing 'unexpected output format'.--settings with at least {"verbose":false}, whereas previously --settings could be omitted when no optional flags were set.Macroscope summarized a4ab429.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f581de8 to
44a4a61
Compare
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Small defensive bug fix that pins You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Text generation through the Claude CLI failed silently whenever a
user- or project-level `verbose` setting was enabled: `claude -p
--output-format json` then prints an array of stream events instead of
the flat `{ structured_output }` envelope the decoder expects. The
resulting `SchemaError` was swallowed as a log warning, so thread
titles, worktree branch names, commit messages and PR bodies fell back
to their placeholders (`t3code/<hex>`) forever.
`settings` now always carries `verbose: false`, which also means the
`--settings` payload goes out on every call instead of only when
thinking, fastMode or ultracode are set. Measured against Claude CLI
2.1.233, `--settings` beats both user and project settings, so no
tolerant parsing of the event array is needed. A test pins the
assumption: streamed events must fail loudly.
44a4a61 to
a4ab429
Compare
|
Superseded by #10446, which landed on That PR fixes the same Claude verbose-mode text-generation failure by accepting either CLI output shape and reading |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.