Skip to content

feat: sub-agent tree — collapsible parent nodes with ▶/▼ toggle (closes #33)#497

Merged
vivekchand merged 1 commit intomainfrom
feat/gh-33-subagent-tree
Apr 2, 2026
Merged

feat: sub-agent tree — collapsible parent nodes with ▶/▼ toggle (closes #33)#497
vivekchand merged 1 commit intomainfrom
feat/gh-33-subagent-tree

Conversation

@vivekchand
Copy link
Copy Markdown
Owner

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/parent fields, computes status (active/idle/stale) and runtime string\n- Nav tab — "Agents" tab added to both dashboard themes\n- page-subagents div — follows the pattern of page-transcripts/page-clusters in both themes\n- loadSubagents() JS function — fetches /api/subagents, builds parent-child tree using parent/depth fields, renders with ▶/▼ toggle buttons per node\n- Auto-refreshsetInterval at 5s while Agents tab is active; clears on tab switch\n\n## UX\n\n- ▼/▶ toggle collapses/expands subtrees (state persisted in _subagentsExpanded map)\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

@vivekchand vivekchand merged commit f8fc422 into main Apr 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant