Skip to content

fix: return to Orca landing screen after closing last terminal#677

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/close-terminal-cmd-d-blank-screen
Apr 15, 2026
Merged

fix: return to Orca landing screen after closing last terminal#677
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/close-terminal-cmd-d-blank-screen

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Problem

Closing the last terminal in the active worktree could leave Orca with the worktree still selected but no renderable surface. In the Cmd+D exit path, that state produced a blank workspace instead of returning to the Orca landing background.

Solution

When closeUnifiedTab removes 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.

- Fix blank screen after closing last terminal\n\n- fix: return to landing screen after closing last terminal tab
@brennanb2025
brennanb2025 force-pushed the brennanb2025/close-terminal-cmd-d-blank-screen branch from 2d50c8f to 8f30f13 Compare April 15, 2026 22:38
@brennanb2025 brennanb2025 changed the title Fix blank screen after closing the last terminal fix: return to Orca landing screen after closing last terminal Apr 15, 2026
@brennanb2025
brennanb2025 merged commit e73f831 into main Apr 15, 2026
1 check passed
@brennanb2025
brennanb2025 deleted the brennanb2025/close-terminal-cmd-d-blank-screen branch April 15, 2026 23:08
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).
thomaszdxsn pushed a commit to thomaszdxsn/orca that referenced this pull request Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant