Skip to content

Keep user workspaces separate from worker and worktree workspaces #770

Open

Description

@vibewriter-hand

Problem

The main sidebar follows the herdr workspace roster. The Agents section is a separate cross-PC list. Automated workers and linked worktrees can therefore push user workspaces out of view, and the user cannot tell which workspaces are safe to keep pinned. This should build on the workspace grouping work in #673 and the recent-folder work in #640.

Proposal

Add a core-backed workspace origin (user, worker, worktree, or unknown). Show user workspaces first. Put worker and worktree groups under a collapsible automation section. Preserve current workspace and worktree actions. Do not guess origin from folder names.

Acceptance

  • Origin is stable across reconnect and restart.
  • User workspaces have a pin action and a clear visual label.
  • Automation groups can collapse without hiding the active workspace.
  • Keyboard and screen-reader labels expose the group and count.
  • A large roster remains scrollable and responsive.

Screenshots

Add before/after desktop and phone sidebar screenshots here.

Activity

  1. added
    enhancement
    on Oct 17, 2026
  2. vibewriter-hand commented on Oct 19, 2026

    @vibewriter-hand
    ContributorAuthor

    Update with a measurement on v0.4.12 (herdr 0.9.5, one PC), and a concrete signal for the origin this issue asks for.

    Still reproduces on v0.4.12. herdr workspace list has 174 workspaces. 1 is a workspace a person opened by hand; 27 are made by a desktop-app mirror tool; 146 are one-per-worker workspaces that an orchestrator opens for background runs. None of them carries herdr's worktree field, so the worktree fold added in v0.4.12 (src/components/Sidebar.tsx:38, :231; it reads workspace.worktree) does not apply. Pinning keeps the few user workspaces at the top, which helps, but the list under the pinned card is still mostly automation.

    A herdr-backed origin. The issue says not to guess origin from folder names. herdr already has a channel for this: herdr workspace report-metadata <workspace_id> --source <id> --token <name>=<value> (workspace tokens, drawn by herdr's own Space rows as $name). Since #1209 the bridge reads pane tokens; reading workspace tokens the same way would let a launcher mark its workspaces, for example origin=worker, and the sidebar could put those under the collapsible automation section proposed above. A workspace without the token stays where it is today.

    On our side we are also reducing what our tools create (the mirror tool will stop keeping workspaces for desktop threads that are no longer open). The Agents-list half of the same problem is in a separate request: #1369.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions