Repository navigation
Description
Problem
herdr's own sidebar has two lists: spaces and agents. With ui.agent_panel_sort = "priority", the agents list is ordered by state first and most recent change next, so the agent that just finished or just started waiting is at the top, wherever its workspace sits. The web UI's sidebar has only the spaces list (one row per workspace, since #386), in herdr's workspace order.
With a few dozen workspaces open, that order gets in the way:
- What just happened is not where you look. A workspace that just finished keeps its place in the list, often below the fold. Needs you (An agent waiting for input can sit far down the sidebar #143) brings blocked agents up, but not one that is done and waiting to be read.
- A new workspace lands at the bottom. herdr appends it, so the session you just started is the one furthest from the top.
- Manual order does not scale. Drag and Alt+↑/↓ (
workspace.move) work, but keeping dozens of rows in a useful order by hand is constant upkeep, and the order is herdr's, so it also changes the TUI's spaces list.
There is also no way to tell done and read from done and not yet read. herdr keeps a done agent marked "until you view it" (herdr docs, State rollups), and its sidebar shows the difference. In the web UI a row says DONE until the agent's state changes again, whether or not you have opened it.
#143 already suggests designing the "Needs you" idea "together with a Focus view or an unseen-finished mark", so this issue proposes those two pieces.
Proposal
Both opt-in, with today's sidebar unchanged by default.
1. Sidebar order: Workspaces (default) | Activity. In Settings → Appearance, next to the grouping setting. Activity pins a blocked (INPUT) workspace on top and orders everything else by its most recent state change (state_change_seq), herdr's order breaking ties.
I first tried ranking states the way herdr's priority list does (blocked, done, working, idle), and it felt wrong in use: a pane you just sent a message to dropped below every DONE row while it ran, then jumped back to the top when it finished. With recency only, the row you are working in goes to the top when you send, stays there while it runs and after it finishes, and moves down only when another agent changes state. An unseen finish is shown by its mark (below), not by its place.
It is display-only: it never calls workspace.move, so herdr's own order and the TUI's spaces list stay as they are. The reorder grip is hidden while it is on, and worktree workspaces are rows of their own, as in herdr's agents panel. A new workspace lands at the top, because its state just changed.
session.snapshot leaves state_change_seq off panes but carries it on agents, which the client already receives, so this needs nothing new on the server or the wire.
2. Settings → Mark unseen finishes (off by default). A row that finished after it was last on screen gets a dot before its title and keeps its DONE in the done color; once opened, its DONE goes quiet, the way herdr keeps a done agent marked until it is viewed. A pane counts as seen while it is selected and the page is visible, so a finish that happens in front of you is never marked. The first time marks are turned on, everything already open counts as seen.
The open question is where "seen" lives:
- Per browser (localStorage), one record per PC, holding the
state_change_seqeach pane had when last viewed. This is what I built: simple, but your phone and your desktop each keep their own. - On the server, the same map shared by every device, so reading something on the phone clears it on the desktop. It would need an endpoint and a contract test, and I am happy to move it there if you prefer.
- herdr may already expose its own "viewed" state through the socket API. I could not find one, so the web UI tracks its own.
I have both built and have been using them on my own install; a PR follows so the shape can be judged concretely. I'm happy to change the approach, or to close it if you would rather keep the sidebar as it is.
Where
Sidebar and navigation
Workarounds and alternatives
- Today: drag rows by hand, and use Needs you and the command palette (recent first) to find what changed.
- Instead of a sort, an Activity group above the workspaces, like Needs you but for done-and-unseen. This is less disruptive, but it duplicates rows.
- Opt-in pane rows under a workspace's sidebar row #489 (pane rows under a workspace) is related: with several agents in one workspace, the Activity order would use the workspace's roll-up state and its most recent pane change.
Activity
phirschybar commentedon Oct 7, 2026
#521 landed while this was open and covers part of it: there is now an Agents list, and DONE is drawn as "finished, not looked at yet". I rebuilt #529 on top of it, so it is smaller now:
Both are opt-in. The question about where "opened" should live (per browser, as built, or on the server) still stands.
feat(sidebar): order Activity across PCs by the server's change times (…
feat(sidebar): order Activity across PCs by the server's change times (…