Repository navigation
What does the sidepanel show? #283
Replies: 2 comments
|
I have multiple terminals open int this session and I don't think I've every seen that type of tree view in the sidepanel. |
|
Good question, and the reason you've never seen it is that it only shows up in a pretty narrow case. That tree is two different kinds of sub-lines that both hang off a workspace row. The first kind is one line per terminal pane in that workspace that wmux thinks is an agent session. A pane becomes a "session" if the agent reported its own state over the pipe (Claude Code, OpenCode, Codex and Qwen all do this through the hooks wmux installs), or if its TUI got detected on screen, or if it has hook history from earlier in the run. The name on the line is the tab's custom title if you set one, otherwise the folder name of that pane's cwd, which is usually why the names all look different. Next to it is the state: Needs you, Question for you, Reading file…, Idle, and so on. Here's the part that explains your screenshot: those lines only render when the workspace has 2 or more sessions, or one session that's blocked. A single agent in a workspace never draws the tree, the normal status line above already covers it. So you'd only have hit it once two panes in the same workspace were both running agents. Clicking one of those lines jumps you to that pane. And if a blocked agent declared the answers it accepts, you get them as buttons right there, so you can unblock it without switching panes. The second kind is the agent lines: things started with On the branches themselves: that's the third line of each workspace row, the context line, which is One thing I should be upfront about, because it's a bug and not something I want to explain away: the session lines aren't fully accurate right now. Session entries never expire on purpose, the idea was to keep "this agent ran and then stopped" (Idle) distinguishable from "this is just a shell" (no line at all). The side effect is that a session that's actually finished or exited keeps sitting there as Idle instead of going away, and the counts can go stale with it. So the panel is right about what's running and wrong about what's done. I've started on a fix so those lines retire on session end, the same way the spawned-agent lines already do. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are multiple branches showing in this screenshot.
Why and how does that work?
All reactions