Skip to content

feat(tui): pre-register specialists on PARALLEL_STARTED event#489

Merged
JeremyDev87 merged 1 commit intomasterfrom
feat/tui-parallel-started-preregister-475
Feb 17, 2026
Merged

feat(tui): pre-register specialists on PARALLEL_STARTED event#489
JeremyDev87 merged 1 commit intomasterfrom
feat/tui-parallel-started-preregister-475

Conversation

@JeremyDev87
Copy link
Owner

Summary

Closes #475

  • Pre-register specialist agents as idle nodes in the dashboard agents Map when PARALLEL_STARTED event is received, so they appear in FlowMap early before individual AGENT_ACTIVATED events arrive
  • Guard against overwriting already-active agents (idempotency via agents.has(id) check)
  • Align integration test agentIds to use specialist:${name} convention, consistent with response-event-extractor.ts and ensuring proper idle→running state transitions

Changes

File Change
use-dashboard-state.ts Replace PARALLEL_STARTED no-op with pre-registration logic (+15 lines)
use-dashboard-state.spec.ts Replace no-op test with 3 tests: pre-register, idempotency, empty array edge case
eventbus-ui.integration.spec.tsx Align specialist agentIds to specialist:${name} format

Design Decisions

  • ID format: specialist:${name} to avoid collision with general agent IDs and stay consistent with AGENT_RELATIONSHIP events
  • Idempotency: Skip pre-registration if agent already exists (preserves running/done status)
  • Stage source: Uses event payload mode for stage field (not state.currentMode)

Test Plan

  • Unit: pre-register specialists as idle agents on PARALLEL_STARTED
  • Unit: do not overwrite already running specialist
  • Unit: handle empty specialists array as no-op
  • Integration: FlowMap renders specialists after PARALLEL_STARTED + AGENT_ACTIVATED
  • Integration: globalState transitions (RUNNING → IDLE) with specialist lifecycle
  • Full suite: 159 files, 3689 tests passed

@vercel
Copy link

vercel bot commented Feb 17, 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 17, 2026 0:59am

@JeremyDev87 JeremyDev87 self-assigned this Feb 17, 2026
@JeremyDev87 JeremyDev87 added feat tui TUI Agent Monitor labels Feb 17, 2026
@JeremyDev87 JeremyDev87 merged commit 2dac3de into master Feb 17, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/tui-parallel-started-preregister-475 branch February 17, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat tui TUI Agent Monitor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TUI] Task 4: Pre-register specialists on PARALLEL_STARTED event

1 participant