Repository navigation
Conversation
|
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. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change keeps empty remote workspaces empty during wake handling. The active web session subscription no longer bootstraps or respawns runtime terminals from session snapshots. The related decision helpers and exports were removed. Tests cover empty workspaces, snapshot synchronization, visibility recovery, and respawn tracking. Priority: ➖ Normal — Schedule this remote workspace behavior change because it prevents unwanted terminal creation and duplicate tabs while preserving manual creation and existing-tab recovery. Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Empty remote workspaces now remain empty during focus, wake, and snapshot synchronization rather than creating unwanted terminal tabs. The covered synchronization and recovery behavior is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 critical issues — the change cleanly collapses two redundant terminal-creation paths and makes empty remote workspaces behave like empty local ones. One minor cleanup suggestion below.
Reviewed changes
- Removed
shouldBootstrapInitialWebRuntimeTerminalandshouldRespawnWebRuntimeTerminalAfterWake— the two subscription-drivensession.tabs.createTerminalpaths inweb-session-tabs-syncthat were the source of the "sometimes two terminals" bug from #17681. - Added an empty guard to
ensureWebRuntimeWorktreeTerminalAfterWake— an emptytabsByWorktreenow returns early, so selecting an empty remote workspace no longer seeds a shell; therenderableTabCount === 0guard is simplified sincetabs.length === 0is excluded earlier. - Preserved recovery and manual creation — the after-wake path still respawns dead PTYs for existing (slept) tab rows, and the
+button path (openNewTerminalTabInActiveWorkspace→createWebRuntimeSessionTerminal) is untouched. - Updated/removed tests and a stale
providesInitialSurfacecomment accordingly.
ℹ️ Nitpicks
shouldSkipWebRuntimeWakeTerminalRespawninsrc/renderer/src/runtime/web-runtime-wake-terminal-respawn.tsis now dead — its only production caller was the removed respawn path inactive-session-subscription.ts, leaving just its own unit test. Consider deleting the export and its test cases while you're here. (beginWebRuntimeWakeTerminalRespawn/endWebRuntimeWakeTerminalRespawnremain in use viaweb-runtime-worktree-terminal-after-wake.ts, andclearWebRuntimeWakeTerminalRespawnForWorktree/clearAllWebRuntimeWakeTerminalRespawnare still used bytracking-lifecycle.ts.)
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Removed the dead
shouldSkipWebRuntimeWakeTerminalRespawnpredicate — its only production caller was the wake-respawn path deleted in the prior commit, so the export and its import are gone fromweb-runtime-wake-terminal-respawn.ts. - Reworked
web-runtime-wake-terminal-respawn.test.ts— assertions that previously probed the in-flight set throughshouldSkipWebRuntimeWakeTerminalRespawnnow assertbeginWebRuntimeWakeTerminalRespawnreturn values directly, and a new case coversclearAllWebRuntimeWakeTerminalRespawn(still used bytracking-lifecycle.ts).
This resolves the one nitpick from the prior review (shouldSkipWebRuntimeWakeTerminalRespawn was dead code). The predicate is gone everywhere, the remaining functions in the module are all still referenced, and the updated tests pass.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Re-aligned the empty-snapshot hydration test with the empty-workspace contract —
host-session-mirror-hydration-frame-ordering.test.tsxnow publishes an authoritative empty host snapshot and assertscreateTerminalis not called while the parked resume is still replayed, replacing the old test that mocked a wake-respawn spawn rejection — a scenario thetabs.length === 0guard made unreachable.
The delta is a single test file encoding the empty guard added in the earlier commits; production behavior was already reviewed and approved. The suite passes locally (16/16).
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
The same duplicate is reachable from the slept-agent path — and one producer survives this diff Waking a slept workspace on a paired runtime (
So it is not just extra tab chrome: every wake also leaves a real shell process on the host. Mechanism: One residual path not covered by the current diff:
Guarding that create on "the paused row is a slept agent pane" too, or folding it into the same removal, would close the family. One review question I can't answer from the diff: this predicate was added for a workspace whose tab chrome lost its PTYs ("sleep keeps tab rows but terminal.stop clears host PTYs"). Does the existing-tab recovery path still materialize a slept plain terminal on a runtime host once this create is gone? If not, that shape may regress to a permanently surface-less tab. Related closed reports: #19735, #13716. |

ELI5
Selecting an empty remote workspace leaves it empty.
What Changed
Remove activation/snapshot auto-creation and the unused wake predicate; preserve manual creation and existing-tab recovery.
Why
Workspace selection is not permission to create a shell.
Linked Issue
Fixes #17681.
Visual Proof
Actual Orca Electron UI in an isolated profile. The same empty folder workspace runs the pre-fix/final wake functions; remote transport is mocked and terminal creation uses an isolated local shell. Not live SSH validation.
Before — selection creates an unwanted terminal.
After — selection keeps the workspace empty.
Testing
443 tests passed on macOS, covering visibility races, wake recovery, manual creation and folder workspaces. Renderer typecheck, changed-file lint and formatting passed. Electron/CDP before/after capture passed.
Full macOS validation (Node 24, pnpm 12):
pnpm lint,pnpm typecheck,pnpm test --maxWorkers=4, andpnpm buildall executed. Typecheck and complete desktop/Web/native build passed.Full suite at
ad40e0bf2e: 76,604 passed / 10 failed / 391 skipped. Final-HEAD serial follow-ups: 48 passed; performance/timeout failures cleared without relaxing assertions or policies. Commit35da23979dfixes the missed empty-snapshot test expectation; all 16 frame-ordering tests pass.Still failing: 4 real Claude CLI startup checks (5/10-second initialization deadlines) and 1 English runtime-catalog test. All reproduced on base
bba68b1. Full lint fails on the same 7 catalog entries; later extraction/coverage gates passed separately. Full lint/test are not green.AI Disclosure
OpenAI Codex.
Review
Self-reviewed; Pullfrog reports no new issues. Human review pending.
Agent skill upstream boundary
Notes
No new permissions, platform-specific paths/shortcuts, Git commands or wire fields. Folder workspaces and remote ownership considered; full mobile/platform QA remains unrun.
Checklist