Repository navigation
Fix Codex launch draft delivery after delayed setup - #12347
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PTY connection now reserves startup draft-paste ownership before deferred connection setup begins. The deferred startup scanner reuses this ownership claim. A regression test verifies that setup output does not deliver the draft and that the draft is sent after the terminal emits a ready prompt. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f461513c-eea4-48de-8ed7-75a0b90ec5a2
📒 Files selected for processing (2)
src/renderer/src/components/terminal-pane/pty-connection.test.tssrc/renderer/src/components/terminal-pane/pty-connection.ts
Electron QA — final pushed head
|
* fix: preserve Codex launch drafts through setup * test: enforce single startup draft delivery * test: name startup draft release behavior


Summary
Screenshots
The Linear pointer is visibly present as an unsent Codex draft after a 12-second setup delay:
Testing
Completed focused verification:
AI Review Report
Reviewed the delivery-claim lifecycle for duplicate writes, abandoned mounts, deferred PTY connection, and setup-to-agent ownership changes. The main risk was claiming too early and leaving the launch token consumed; the existing dispose path still releases any unattempted claim, and the regression verifies that the competing sidecar cannot steal the active pane's launch. Cross-platform compatibility was checked for macOS, Linux, and Windows: this changes no shortcuts, labels, paths, shell commands, process recognition, or platform-specific Electron behavior, and the ownership logic is shared by local, SSH, and folder-workspace terminal paths.
Security Audit
No new command execution, prompt parsing, IPC, authentication, dependency, or filesystem behavior is introduced. The change only advances when an existing launch-token claim occurs, retaining its worktree/tab/token scoping and existing cleanup. The regression uses inert test strings, and no credentials or private data were added to the diff.
Notes
The complete changed-file quality wrapper could not parse pnpm's Node-engine warning under local Node 26; its three underlying Oxlint scans were run directly and returned zero diagnostics. The repository requires Node 24. Production Orca was not touched during Electron validation.