Skip to content

[Bug]: Open workspace in the branch picker lands on a blank window when that workspace's tabs were closed #41929

Closed

Description

@mancunianez

Where were you using Orca?

Desktop only

Operating system

macOS

Remote host operating system

No response

Orca version

v1.4.258 (also v1.4.257)

Details

Short summary:
The main area goes completely blank when I use Open workspace in a branch picker to move to a workspace whose tabs I had closed earlier. Opening the same workspace from the sidebar works.

What happened?
I opened the branch picker (the branch name under the chat composer, or the Source Control header) and picked a branch that is checked out in another workspace. Its row says Open workspace. Orca switched to that workspace, but the window stayed blank: no tab strip, no terminal, no chat. It stays like that until I open the workspace from the sidebar.

How can we reproduce it?

  1. Open a project with two workspaces, A and B, on different branches.
  2. In B, close every tab, then switch to A.
  3. In A, open the branch picker, either from the branch name under the chat composer or from the Source Control header.
  4. Pick B's branch. Its row is marked Open workspace.
  5. B becomes the active workspace, but nothing renders.

Anything else that might help:
WorkspaceBranchPicker's onOpenWorkspace calls the raw store action setActiveWorktree(workspace.id, workspace.hostId). The sidebar goes through activateAndRevealWorktree(..., { navigationIntent: 'user-open' }), which seeds an empty workspace's default surface (shell or default agent chat) with reseedEmptiedWorkspace. After tabs are closed on purpose, the closed-terminal tombstone (30-day TTL) stops the automatic first-visit shell in useTerminalStartupActivation, so only an explicit open adds a surface again. The raw call never does that, so the workspace is selected with zero renderable tabs.

switchGitGraphWorkspace (Git Graph "open the workspace holding this ref") and the folder workspace Source Control header's open action make the same raw call.

Reproduced on current main with an E2E that closes a workspace's tabs, then uses Open workspace in the Source Control branch picker: no createTab happens and the workspace renders nothing.

Activity

  1. added
    os:macos
    on Nov 13, 2026
  2. AmethystLiang commented on Nov 13, 2026

    @AmethystLiang
    Contributor

    Triage: keeping @brennanb2025 assigned because the issue matches their ownership area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

os:macos

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions