Repository navigation
Description
Operating system
macOS
Orca version
v1.4.184
Details
Short summary:
Folder workspaces (the workspace entries that live on a project group and point at the group's parent folder) are only rendered when the sidebar is set to Group by: Project. Switching to Group by: Status (or PR status / no grouping) makes them disappear from every lane — even when they have a workspace status set — with no indication of why.
What happened?
I work from a folder workspace on a multi-repo project group (a parent folder with 4 git repos imported via "Yes, import as group"). The workspace card status is "In progress". When I group the sidebar by status, the folder workspace doesn't appear in the "In progress" lane, or anywhere else. Switching back to Group by: Project brings it back.
Confusingly, folder-kind projects (a parent folder added via "Open as Folder") DO show up under every grouping, because their synthetic workspace is a real worktree row. So it's the recommended multi-repo setup (project group + folder workspace) that loses visibility.
How can we reproduce it?
- Add a parent folder containing 2+ git repos → "Yes, import as group".
- Create a folder workspace on the group (New workspace → the group's parent folder).
- Set its card status to "In progress".
- Sidebar options → Group by: Status.
- The folder workspace is missing from every status lane. Group by: Project shows it again.
Anything else that might help:
Root cause (as of 2a760e310b): folder-workspace rows are emitted in exactly one place, appendProjectGroupSections (src/renderer/src/components/sidebar/worktree-list/grouping/project-group-sections.ts), and buildRows short-circuits before reaching it for every non-repo grouping:
// src/renderer/src/components/sidebar/worktree-list/grouping/build-rows.ts
if (groupBy !== 'repo' || projectGroups.length === 0) {
appendOrderedGroups(...)
return result
}
appendProjectGroupSections(sectionContext, { ..., folderWorkspaces, ... })Folder workspaces are also absent from worktreesByRepo (noted in src/renderer/src/components/tab-bar/open-tab-search-entries.ts), so any grouping path that walks worktrees misses them by construction.
FolderWorkspace already persists workspaceStatus (src/shared/folder-workspace-types.ts), so status grouping has a natural placement: the folder workspace's own status lane. For PR-status grouping, wherever no-PR worktrees land today seems consistent, and the flat "None" view could simply include them.
AGENTS.md says "All changes must consider folder workspaces as well as git worktrees" — this looks like one of the spots that predates that rule.
Happy to submit a PR for this if the placement above sounds right.
Activity
fix(sidebar): render folder workspaces under every Group by mode (#15362
fix(sidebar): render folder workspaces under every Group by mode (sta…
fix(sidebar): render folder workspaces under every Group by mode (sta…
fix(sidebar): render folder workspaces under every Group by mode (sta…