Skip to content

wire activeStage to FlowMap and add per-stage agent statistics (#571)#584

Merged
JeremyDev87 merged 2 commits intomasterfrom
feat/tui-flowmap-active-stage-stats
Feb 19, 2026
Merged

wire activeStage to FlowMap and add per-stage agent statistics (#571)#584
JeremyDev87 merged 2 commits intomasterfrom
feat/tui-flowmap-active-stage-stats

Conversation

@JeremyDev87
Copy link
Owner

Summary

Closes #571

Fixes the missing activeStage prop wiring and adds per-stage agent statistics to the FlowMap pipeline header.

Changes

  • Bug fix: Pass activeStage={state.currentMode} to both FlowMap usages in dashboard-app.tsx (narrow and wide layouts)
  • Enhancement: renderPipelineHeader now accepts agents and displays per-stage running/done counts (e.g. ▸ PLAN (2↑ 1✓))
  • Enhancement: Inactive stage columns render agents, edges, and labels with dim: true to visually de-emphasize non-active stages
  • Enhancement: Glow effect suppressed for agents in inactive stages
  • Enhancement: renderFlowMapSimplified gains optional activeStage parameter for consistent behavior across layout modes
  • Refactor: Extract DIMMED_STYLE constant to consolidate dim rendering
  • Refactor: Pre-compute inactiveIds Set once per render pass (avoids repeated per-node checks)
  • Increase STAGE_SLOT_WIDTH from 818 to accommodate stats string

Test Coverage

  • New tests for countStageRunningDone helper (running/done counts per stage)
  • New tests for per-stage stats display in renderPipelineHeader
  • New tests for inactive stage dimming in drawAgentNode and edge rendering
  • All 1042 existing TUI tests pass

Test Plan

  • activeStage prop propagates from state.currentMode to both FlowMap usages
  • Pipeline header shows per-stage counts: ▸ ACT (2↑ 1✓) when agents are running/done
  • Inactive stage agents render with dim: true, active stage at full brightness
  • Glow effect only appears for running primary agents in the active stage
  • Edges between inactive-stage nodes render dimmed
  • renderFlowMapSimplified respects activeStage for stage label and node dimming
  • All existing FlowMap tests pass
  • TypeScript strict mode — no any, no type errors

- Update agent_indicator rule to reflect dynamic agent selection
  instead of hardcoded Frontend Developer reference
- Update verification_guide to match dynamic agent display
- Add resolution_order to delegate_agent documenting the 5-step
  agent selection process (explicit > context > config > intent > default)

Completes #560 cleanup (final doc accuracy fix after #561-#568)
…tics (#571)

- Pass activeStage={state.currentMode} to both FlowMap usages in dashboard-app.tsx
- Add countStageRunningDone helper to count running/done agents per stage
- Update renderPipelineHeader to accept agents and display stage stats (e.g. ▸ PLAN (2↑ 1✓))
- Add dimmed parameter to drawAgentNode; inactive stage agents render with dim:true
- Suppress glow effect for agents in inactive stages
- Apply dim style to edges when both endpoints are in inactive stages
- Apply dim style to stage labels in renderFlowMapSimplified
- Add activeStage parameter to renderFlowMapSimplified for consistency
- Increase STAGE_SLOT_WIDTH from 8 to 18 to accommodate stats display
- Add DIMMED_STYLE constant to consolidate dim rendering style
- Add tests for per-stage statistics and inactive stage dimming
@JeremyDev87 JeremyDev87 added bug Something isn't working feat tui TUI Agent Monitor mcp-server apps/mcp-server labels Feb 19, 2026
@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Feb 19, 2026 1:15pm

@JeremyDev87 JeremyDev87 self-assigned this Feb 19, 2026
@JeremyDev87 JeremyDev87 changed the title feat(tui): wire activeStage to FlowMap and add per-stage agent statistics (#571) wire activeStage to FlowMap and add per-stage agent statistics (#571) Feb 19, 2026
@JeremyDev87 JeremyDev87 merged commit 222fdcc into master Feb 19, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/tui-flowmap-active-stage-stats branch February 19, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feat mcp-server apps/mcp-server tui TUI Agent Monitor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TUI] FlowMap: PLAN/ACT/EVAL pipeline stages not connected to live state

1 participant