Repository navigation
Organize the Agents session list by origin - #628
Merged
Merged
Conversation
Sessions are gathered under their task or automation, ordered so the ones waiting on the user come first, and each section and group folds, with the fold state kept per project. The selected pane now measures its row, since headers sit between rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A task never holds two live sessions, since starting a stage closes the one before it, so its header could never show. Task sessions now render as one row each and only an automation's live runs gather under a header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sessions the user started need no header to explain them, so they sit at the top of the list with no fold line; Tasks and Automations follow as sections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Agents tab listed every session in one flat list, so a session a task started, an automation run and a session you opened yourself all looked alike, and you had to read each row to find the one you wanted.
The list is now organized by where a session came from:
Run #Nto match run history.Within each part, a session waiting on you comes first, then one at work, then the newest. Section headers show a count and either a "needs you" badge or a working dot, so a folded section still says whether something needs attention. Folds are remembered per project; a search shows every match regardless of folds.
Tasks are deliberately not nested: starting a stage closes the task's previous session (
finish_spawn), so a task never has two live sessions to group.The selected-row highlight used to move by
index * 56px. With headers between rows it now measures the selected row instead.The grouping and ordering live in a pure
groupSessionshelper with its own tests, andAgentMonitor.test.tsxcovers the automation nesting, folding, and your sessions sitting first without a header.BEGIN_COMMIT_OVERRIDE
feat(agents): organize the session list by origin, with your own sessions first
END_COMMIT_OVERRIDE
Release Notes:
🤖 Generated with Claude Code