Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Skips the optional CLI installation prompt when --token-only is supplied, preserving machine-readable output. Normal interactive behavior and token issuance remain unchanged. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate 1447fc5
EvidenceOn each commit, build the real standalone CLI with Linux x64; identical 110×30 foreground PTYs and dark terminal rendering. Real CLI output and observed timing were recorded, then bearer tokens were redacted before rendering. No provider or service stand-ins. All six commands exited 0.
Reproduction driver · Terminal renderer · Redacted timed streams and transcripts The JSON control remained prompt-free on both commits. Captures and recordings were inspected before upload. |






Problem
In a foreground terminal,
npx t3 auth session issue --token-onlycan ask to installt3and print prompt and status text to stdout before the bearer token. The npm launcher identifies the runner torunCli, which callsofferCliInstallbeforeCommand.run; the auth handler's quiet logging applies only later and cannot remove text already written to stdout.Deterministic repro on
origin/main(0353e276be35d8ab1a84d0d009db8c5bb7388cdd)Build the standalone CLI with
vp run build:exefromapps/serverunder Node26.13.1. In a fresh temporaryHOME, place the builtt3at$HOME/.t3/runtime/versions/$VERSION/t3and write$VERSIONto.install-completebeside it. Copyscripts/npm-launcher/t3.mjsto$HOME/.npm/_npx/fixture/node_modules/t3/bin/t3.mjswith a package manifest containingname: "t3"and the matchingversion. In a foreground PTY withTERM=xterm, no installedt3onPATH, and no CI or npm auto-yes flags, run:node "$HOME/.npm/_npx/fixture/node_modules/t3/bin/t3.mjs" auth session issue --token-onlyRepeat with
--token-only=truein a fresh home so the saved decline cannot mask the bug. Observed: An install question appears; answeringnprintsSkipped. Run `npx t3 install` any time.before the token. Expected: No prompt or status text; the token is the only nonblank line on stdout.Change
Add
--token-onlyto the server CLI's existing install-prompt skip set. The existing argument normalization covers--token-only=trueas well; both forms are covered by the install-offer test. No client, provider, or wire changes are needed.Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
AssertionError: expected 2 to equal +0(two prompt invocations, expected zero) and passes with the fix.vp run check:changedexits 0; six affected tests pass.Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).