Skip to content

[Bug]: Folder workspaces vanish from the sidebar under every Group by mode except Project #15362

Closed

Description

@Javiervinus

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?

  1. Add a parent folder containing 2+ git repos → "Yes, import as group".
  2. Create a folder workspace on the group (New workspace → the group's parent folder).
  3. Set its card status to "In progress".
  4. Sidebar options → Group by: Status.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    os:macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions