Show a PC to workspace to worker tree in the sidebar
Problem
The sidebar shows PCs and workspaces in separate sections, while workers appear in a separate cross-PC Agents list. This makes it hard to see which workers belong to which workspace and machine. Linked worktrees also appear apart from the worker context.
Proposal
Offer an optional hierarchy of PC > workspace > worker. Keep the current workspace and worktree actions, selection state, and cross-PC access. A worker should appear under its owning workspace and machine, with a clear status and an accessible path back to the existing Agents view. Reuse the grouping context from #640 and #673 instead of inferring ownership from folder names.
Acceptance
- The tree shows each machine, its workspaces, and the workers known for each workspace.
- A workspace or worker can be opened without losing the current selection.
- Collapsed groups preserve the active item and expose counts to keyboard and screen-reader users.
- Offline machines and workers keep their current offline treatment.
- Large trees remain scrollable and responsive on desktop and phone widths.
- The existing cross-PC Agents view remains available during the transition.
Screenshots
Add before/after desktop and phone sidebar screenshots here.
Thanks for the proposal. This shipped in #3069 (198e463d12) as an opt-in PC > workspace > agent tree in the PCs list (Settings turns it on), and #3845 added per-workspace folding. Closing as completed; please open a new issue for anything it still misses.