You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Open workspace in the branch picker lands on a blank window when that workspace's tabs were closed #41929
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?
Open a project with two workspaces, A and B, on different branches.
In B, close every tab, then switch to A.
In A, open the branch picker, either from the branch name under the chat composer or from the Source Control header.
Pick B's branch. Its row is marked Open workspace.
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
AmethystLiang commentedon Nov 13, 2026
Triage: keeping @brennanb2025 assigned because the issue matches their ownership area.