Repository navigation
test(terminal): wait for decoy panes before host parking - #23729
Conversation
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe end-to-end test replaces inline host decoy-tab creation and a separate parking wait with Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The test’s parking setup now waits for decoy readiness, and no merge-blocking issue is identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 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.
✅ No new issues found.
Reviewed changes
- Decoy readiness before host parking — the inline loop that created two decoy tabs back-to-back is replaced by
parkHiddenTabBehindDecoy, whosecreateActiveTerminalTabwaits for each decoy's pane manager and a settledwaitForPaneIdentitySnapshot(page, 1)PTY binding before activating the next tab. This closes the race where an unmounted first decoy left the target holding the most-recently-hidden exemption.
Verified the host target is active at call time (setActiveTab(hostTabId) at host-parked-pane-remote-viewer.spec.ts:208), so the helper takes its two-decoy branch — equivalent coverage to the removed loop, now with readiness waits. waitForTabParked remains owned by other specs, and no production behavior, timeouts, or assertions changed.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
The host-parking test must actually visit its decoy tabs before it can expect the original terminal to park.
What Changed
Reuse
parkHiddenTabBehindDecoy, which waits for each decoy's pane manager and PTY identity before activating the next tab. Previously the test issued two tab changes without waiting for either pane to mount.Why
Parking keeps the most recently hidden tab warm. If the first decoy has not mounted before the second activates, the target can retain that exemption and the test waits five minutes for a park that never happens. The shared helper already establishes the intended setup; no production behavior, timeouts, or assertions change.
Linked Issue
STA-2854 (existing reproduction).
Visual Proof
N/A — test setup synchronization only; no product UI change.
Testing
Review
Reuses the existing cross-platform helper. All paired-client and host-side evidence remains required.
Agent skill upstream boundary
Checklist