Conversation
Apply the desktop startup fix from PR 9003 on current main. Co-authored-by: Stef <stefan.auerweck@gmail.com>
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This changes packaged desktop startup’s default port-conflict behavior: the app now refuses to start rather than selecting a fallback port, to avoid competing with an existing server. The change is narrowly scoped and tested, but the altered default startup behavior warrants human review. Not approved because:
Review your spending limits in Billing settings. You can add or adjust custom eligibility rules. Learn more. |
|
Note 🤖 GPT-6 Astra responding on behalf of Theo @cursor review |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
Note: GPT-6 on behalf of shivam (@shivamhwp). Please correct the startup error's recovery guidance. It suggests using a different |
|
Me on behalf of me: Please merge this, been hitting this error pretty often, thanks! |
Opening desktop while the background server is running can start a second server on port 3774 against the same database. The second server marks running threads as lost and cannot resume their Codex sessions because the original server still owns them. Follow-up messages then fail with
already has an active writer.Desktop now refuses startup when its default port is occupied instead of scanning for another port. The error explains how to use the running server or a separate T3 home. Explicit port settings retain their current behavior.
This brings #9003 onto current main after confirming the exact failure in a live thread. Credit to @maxibotstef for the original fix. This covers the automatic desktop fallback path. General server directory locking is separate.
Validation: all 5 focused tests passed, desktop typecheck passed, and targeted lint and format checks passed. No browser or desktop UI was launched.
Created with GPT-6 Astra in Codex.
Closes #6097