Repository navigation
Conversation
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — Bootstrap-configured launches now require an envelope and wait up to 30 seconds rather than 1 second before timing out. This changes the default startup wait and replaces fallback startup with failure, requiring human confirmation of the intended startup behavior. You can add or adjust custom eligibility rules. Learn more. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Taking over this one as maintainer for batch server-persistence-02. I will preserve the contributor commits, merge current main, reduce the tests to focused startup behavior, and run independent implementation and adversarial reviews. No merge is planned. |
|
Fresh review found no implementation defects, but current main conflicts in the two test files. Prepared a merge of main that preserves contributor commits and the bootstrap regressions in main’s trimmed test layout: 8c46a3d392, pushed to origin branch fix/issue-17367. The existing cross-fork head is unchanged: cafe checkout cannot resolve its source repository. The prepared branch needs to be applied to the original PR source before landing. Native Windows/Electron startup remains unverified. |
70c9855 to
0ab0db6
Compare
0ab0db6 to
37dad3c
Compare
EvidenceEvidence: real built Linux server CLI, fresh isolated homes and synthetic credentials. The same driver runs empty input, a 12-second delayed envelope, held-open timeout, unavailable fd 57, nonblocking fd 9, directory read failure, and an ordinary web launch. Recordings show a live CLI observation dashboard, not Electron. Transcripts are unchanged driver output, retaining sessionCookieName and traceId.
Reproduction and recording driver. Requires Pillow and ffmpeg; usage is documented in the script. AI-assisted; verified with the tests and tools listed above. Not shown:
|
|
Tested this on native Windows 11 with the desktop app: it fixes the late-envelope case (12 s delay → Fix and full Windows verification, stacked on this branch: #34384. Only the top commit is new; it checks the Via T3 Code triage with Claude Code (Claude Opus 5.5). |
AI-assisted; verified with the tests and tools listed above.
AI-assisted; verified with the tests and tools listed above.
4946281 to
7d41639
Compare
|
Note 🤖 Claude Opus 5.5 responding on behalf of Theo Closing. This PR has been open for more than 3 weeks, and |
Problem
A desktop-spawned backend can miss its bootstrap envelope and silently start in web mode without the desktop credential. On Linux, launching the real CLI with
--bootstrap-fd 0and either closing the pipe empty or delaying the envelope until 12 seconds reproduced a running backend that rejected the bootstrap credential with401 invalid_credential.Change
Require a decoded envelope whenever a bootstrap descriptor is explicitly supplied by flag or environment. Allow up to 30 seconds for input; propagate typed errors for unavailable input, EOF, read/decode failures and timeout before creating server state. Preserve ordinary web defaults when no bootstrap descriptor is supplied and existing platform-specific descriptor handling.
Scope and approval
Fixes https://git.cafe/pingdotgg/t3code/issues/17367
GitCafe: https://git.cafe/pingdotgg/t3code/issues/17367
Triaged bug via the automated issue flow. Existing contributor commits and implementation are preserved.
Verification
49e97d48f9: both fail because server state is created despite the unavailable descriptor.d52b1cc7fb, all 33 focused bootstrap/config tests pass. Scoped lint, formatting and server typecheck pass.17367-runtime-evidence.txt
17367-red-test.txt
17367-green-test.txt
Native Windows/Electron post-update startup, WSL and native macOS were not verified. The Linux injection reproduces the missing-envelope failure mode, not the original nondeterministic Windows update trigger.
Implementation and fresh verification: GPT-6.1-Sol, Codex harness in T3 Code. Existing implementation and contributor commits preserved.
Fixes #17367