Repository navigation
Description
Problem
With Settings → Appearance → Agents under workspaces on (#773), every workspace lists all its agents under its row, all the time. My herdr has four workspaces with 8 to 15 agents each, so the PCs list runs several screens and the workspace I want is far down. There is no way to put one workspace's agents away: only a repository's worktrees, the background part and the whole PC fold. #773's acceptance already asks for this ("Collapsed groups preserve the active item and expose counts"), and #195 agreed the same fold for the older pane rows.
Proposal
While the tree is on, a workspace row with agents under it is a fold, the way a project row is in the Codex app or T3 Code.
- Click, Enter or Space on the row folds or unfolds what hangs under it, and opens nothing: the agent rows are what open panes. A workspace with no agent under it opens as today. On a phone the drawer stays open, so I can fold my way to the workspace I want (opening a pane closes the drawer,
lib/useSelection.ts). - ← folds and → unfolds, as in any tree, and the row carries
aria-expanded. - One fold per row. A repository's row already folds its worktrees with its face button and the menu's Collapse / Expand. The same fold, the same button and the same item fold the agents too, so a row never has two folds or two items of one name. The worktree fold's state, its storage and its filter rule are reused, not copied.
- While folded the row hides everything under it and keeps what it already shows: the selected agent's place (
has-selected-agent), the rolled-up status badge (a waiting agent shows there) and a+Ncount of what is put away. - Kept per PC on this device, as one list of folded workspaces pruned to the roster. It starts unfolded, so nothing changes for anyone who never folds, and with the tree off the row behaves exactly as today (the browser regressions that click
.workspace-selectrun with it off). - Under a filter, a match inside a folded workspace opens it for the filter's time only, as worktree folds do.
- Optional, as agreed in Collapse individual workspaces in the sidebar #195: Collapse all / Expand all in the command palette.
Where
Sidebar and navigation
Where it exists today
The Codex app and T3 Code list threads under each project, and a click on the project folds or unfolds them. herdr's TUI folds a repository's worktrees under its parent, the fold Ovis already mirrors.
Workarounds and alternatives
Turn the tree off, which loses the PC → workspace → agent view, or fold the whole PC. A click that both opens the workspace and folds it was considered: on a phone the drawer closes at the click, so the fold is never seen, and opening an unfolded workspace would fold it.
Activity
feat(sidebar): New tab with agent… in a workspace row's menu (#3838)
devswha commentedon Nov 14, 2026
Thanks for the detailed proposal. It is open in #3845: with Agents under workspaces on, a row with agents folds them from the row (click, Enter, Space, Left and Right), kept per PC on this device.
feat(sidebar): fold a workspace's agents from its row while Agents un…