Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The pairing hint now preserves You can add or adjust custom eligibility rules. Learn more. |
Findings
|
| Layer / File(s) | Summary |
|---|---|
Resolve and display pairing command apps/server/src/cli/up.ts, apps/server/src/cli/up.test.ts |
setUp resolves the host-specific pair command with the selected base directory and passes it to next-step formatting. The foreground serve command reuses the base-directory arguments. The test checks the rendered command. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: t3dotgg
Merge Risk: 
Low · up to ec4c9
-
Users configuring T3CODE_HOME may follow a pairing hint that connects to the wrong project home.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title names the actual change: the
t3 uppairing hint now keeps--base-dir. It is specific and follows conventional-commit style. The raw summary and objectives both describe the same change to the pairing hint built withresolveHostCliCommand("pair", baseDirArgs).
Full details: Description check
-
Explanation
The description follows the template's sections: Problem, Change, Scope and approval, and Verification. The Problem section gives the wrong-home symptom and reproduction context. The Change section explains the builder reuse. Scope cites a very small obvious-bug fix and an overlap search. Verification gives a red-then-green test run, a full check run, and an explicit list of what was not checked. The description does not cite a triaged issue number or a maintainer approval comment. It relies on the small-obvious-fix exemption, and the reviewer must judge whether that exemption applies. The template also asks for the model and harness, and the description includes this.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Usage-based review receipt
- Mode: Continue automatically
- Reviewed files: 2
- Charged: $0.50
- View usage details
Note
This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.
|
Note Written by Verified in a real dev environmentVerified unchanged head Main printed The PR CLI printed this instead: Executed that emitted command against the PR's running dev server (a temporary PATH shim routed Started main and PR dev servers sequentially with isolated state and no seeding. Used repository Playwright with Nearby checks: a fresh browser accepted the pairing token; authentication and the thread survived reload. The path containing spaces stayed shell-quoted. Blacksmith passed 54 focused tests across Not verifiedNative desktop, iOS/Android, macOS launchd, Windows PowerShell, physical second-device LAN/tailnet access, T3 Connect, and installed npx/pnpm-dlx/bunx launcher variants were not exercised. The Linux browser and local server path were exercised directly. One-shot |


Problem
Running
t3 up --base-dir <dir>with local network access on ends with this next step: "Runt3 pair. Use the code on your other device." That command drops--base-dir, sot3 pairchecks the default~/.t3home and not the onet3 upjust set up. You then get one of two results:~/.t3.Change
The pairing hint is now built with
resolveHostCliCommand("pair", baseDirArgs). That is the same builder and the same--base-dirarguments the "Keep this command running" serve hint in the same function already uses. It also prints the runner form (npx t3 pair …) when the CLI ran through npx, pnpm dlx or bunx, as the serve hint does.Scope and approval
Very small, focused fix for an obvious bug, so no prior issue: a printed next step points at the wrong T3 home. It follows #23646, which kept
--base-dirin the browser setup command. The othert3 uphints on failure paths and the hints int3 service/t3 connectare not changed.Overlap search: I searched the local PR index for
base-dir,t3 up,t3 pairand "next step". The closest matches are #23646 (browser setup sudo command, merged), #23878 (t3 service installmoving a--base-dirservice, a different code path) and #27996 (addedt3 up). None of them touch this hint. The GitHub search API was rate-limited at the time.Verification
t3 up > restarts the service only when it must: the local network opensfails withexpected '…Runt3 pair. Use the code on your other device.' to contain 'Runt3 pair --base-dir /var/folders/…/t3-up-test-….'vp test run src/cli/up.test.tspasses 22/22.vp run check:changedpasses: format, lint, knip, graphql, typecheck (3 packages), tests 25/25.t3 upagainst launchd or systemd, because that would replace the machine's real background service. The test drives the realupcommand with a stubbed boot service.Reviewed with sol-loop: 1 round with GPT-6.1 Sol on high. Sol verdict: approved.
Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code