fix: return to Orca landing screen after closing last terminal#677
Merged
brennanb2025 merged 1 commit intoApr 15, 2026
Merged
Conversation
- Fix blank screen after closing last terminal\n\n- fix: return to landing screen after closing last terminal tab
brennanb2025
force-pushed
the
brennanb2025/close-terminal-cmd-d-blank-screen
branch
from
April 15, 2026 22:38
2d50c8f to
8f30f13
Compare
brennanb2025
added a commit
that referenced
this pull request
Apr 19, 2026
Adds Playwright coverage for two high-regression areas identified from the last 200 PRs: - worktree-lifecycle.spec.ts: guards removeWorktree cleanup (#532), worktree switch with right sidebar open (#598/#628/#726), and cross-worktree tab isolation (#542/#554). - tab-close-navigation.spec.ts: guards visual-neighbor activation on editor/diff close (#693) and Landing fallback when the last visible surface closes (#677).
3 tasks
thomaszdxsn
pushed a commit
to thomaszdxsn/orca
that referenced
this pull request
Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closing the last terminal in the active worktree could leave Orca with the worktree still selected but no renderable surface. In the
Cmd+Dexit path, that state produced a blank workspace instead of returning to the Orca landing background.Solution
When
closeUnifiedTabremoves the final renderable surface for the active worktree, clear the active worktree and active surface fields so the renderer falls back to the landing state instead of trying to render an empty split-group workspace. Added a regression test that closes the last terminal tab in the active worktree and verifies the store returns to the landing-state selection.