feat: sub-agent tree — collapsible parent nodes with ▶/▼ toggle (closes #33)#497
Merged
vivekchand merged 1 commit intomainfrom Apr 2, 2026
Merged
feat: sub-agent tree — collapsible parent nodes with ▶/▼ toggle (closes #33)#497vivekchand merged 1 commit intomainfrom
vivekchand merged 1 commit intomainfrom
Conversation
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.
What\n\nAdds a dedicated Sub-Agent Tree page to the ClawMetry dashboard with collapsible parent nodes.\n\n## Changes\n\n- New route — filters sessions to sub-agent entries, adds
depth/parentfields, computes status (active/idle/stale) and runtime string\n- Nav tab — "Agents" tab added to both dashboard themes\n-page-subagentsdiv — follows the pattern ofpage-transcripts/page-clustersin both themes\n-loadSubagents()JS function — fetches/api/subagents, builds parent-child tree usingparent/depthfields, renders with ▶/▼ toggle buttons per node\n- Auto-refresh —setIntervalat 5s while Agents tab is active; clears on tab switch\n\n## UX\n\n- ▼/▶ toggle collapses/expands subtrees (state persisted in_subagentsExpandedmap)\n- Status dots: 🟢 active (<2min), 🟡 idle (<10min), ⬜ stale\n- Shows: agent name, model, token count, depth badge, runtime\n- Summary bar: total / active / idle / stale counts\n\nCloses #33