Skip to content

feat: topology Phase 4, richer cards, project grouping and filters - #89

Merged
DowLucas merged 1 commit into
mainfrom
feat/topology-cards
Oct 7, 2026
Merged

DowLucas merged 1 commit into
mainfrom
feat/topology-cards

Conversation

@DowLucas

@DowLucas DowLucas commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Summary

Phase 4 (last) of the Topology improvements. Stacked on #88.

API

  • /api/sessions/active adds toolCalls (tool.complete + tool.fail) and toolFailures per session: correlated counts on idx_events_session_created (EXPLAIN: index scan, 0.08 ms locally). Not in the activity allowlist, so teammates without sharing get neither.

Dashboard

  • Session cards: "N tools · M failed" (failures in red) next to "active Xm ago", plus a meta line with the short model id and, for your own sessions only, tokens and cost. The detail panel shows tool calls too.
  • Tool counts are seeded from the API and incremented from live tool.complete / tool.fail events, reset on every /active fetch.
  • Project grouping: when a developer has 2+ visible sessions in the same project they hang under a project node ("devscope · 2 sessions"); single-session projects attach directly. Edges carry the sessions below them and animate while any of them works.
  • Filters: "Hide inactive" and "Hide finished subagents" toggles (top-left), remembered per browser in localStorage (wrapped in try/catch). Developer counts still include hidden sessions.
  • Session state is now derived once per session (stage 0) and shared by the filter and the decoration stage; the dagre layout re-runs only when the set of hidden sessions changes, not on each clock tick.
  • sessionTokenTotal moves to lib/utils (card + panel).

Test Coverage

  • New backend test: tool counts returned for own sessions, absent for an activity-only session. bun test: 0 fail.
  • Dashboard: tsc -b, eslint, vite build. Manual: posted tool events locally; /active returned toolCalls: 3, toolFailures: 1.

🤖 Generated with Claude Code
DevScope-Session: 7ed92b1f-21e5-4a3b-b933-e2ce8af3a7ee

- /api/sessions/active returns toolCalls / toolFailures per session
  (index-backed counts; redacted for activity-only viewers)
- session cards show model, own-session tokens and cost, and tool and
  failure counts, kept live from events between fetches
- a developer's sessions sharing a project group under a project node;
  edges animate while any session below them works
- "Hide inactive" and "Hide finished subagents" toggles, remembered in
  localStorage; the layout re-runs only when the hidden set changes
- sessionTokenTotal moves to lib/utils, shared by card and panel

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DevScope-Session: 7ed92b1f-21e5-4a3b-b933-e2ce8af3a7ee
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7539cb16-2412-48f7-b860-cd969da407a6
📥 Commits

Reviewing files that changed from the base of the PR and between bdb2d46 and be2a0e2.

📒 Files selected for processing (17)
  • CHANGELOG.md
  • packages/backend/src/db/queries.ts
  • packages/backend/src/routes/__tests__/sessions.test.ts
  • packages/backend/src/routes/sessions.ts
  • packages/dashboard/src/components/flow/DetailPanel.tsx
  • packages/dashboard/src/components/flow/FlowView.tsx
  • packages/dashboard/src/components/flow/ProjectNode.tsx
  • packages/dashboard/src/components/flow/SessionNode.tsx
  • packages/dashboard/src/components/flow/flowTypes.ts
  • packages/dashboard/src/components/flow/layout.ts
  • packages/dashboard/src/components/flow/nodeTypes.ts
  • packages/dashboard/src/components/flow/useFlowLayout.ts
  • packages/dashboard/src/components/landing/demoTopologyData.ts
  • packages/dashboard/src/hooks/useWebSocket.ts
  • packages/dashboard/src/lib/utils.ts
  • packages/dashboard/src/stores/activityStore.ts
  • packages/shared/src/models.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DowLucas
DowLucas changed the base branch from feat/topology-panel to main October 7, 2026 20:39
@DowLucas
DowLucas merged commit 461f6ee into main Oct 7, 2026
2 checks passed
@DowLucas
DowLucas deleted the feat/topology-cards branch October 7, 2026 20:39
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