Skip to content

test(render): add integration tests for subagent status bar processEvent lifecycle (#1329) - #1358

Merged
griffinwork40 merged 1 commit into
mainfrom
afk/iso-fix-1329-12-2ishzr
Aug 28, 2026
Merged

test(render): add integration tests for subagent status bar processEvent lifecycle (#1329)#1358
griffinwork40 merged 1 commit into
mainfrom
afk/iso-fix-1329-12-2ishzr

Conversation

@griffinwork40

Copy link
Copy Markdown
Owner

Fixes #1329.

Adds 9 integration tests for the processEvent path that populates and removes activeSubagents entries for the subagent status bar overlay.

Tests cover

  1. Entry addition -- first event adds entry with label + start time; orchestrator events excluded; duplicate events idempotent
  2. Entry removal -- done and error terminal events remove entries; parallel subagents only remove the terminated one; double-terminal is a safe no-op
  3. Label fallback -- falls back to subagentId when agentType is absent

Changes

  • src/cli/_lib/stream-renderer-process.test.ts -- new file, 9 tests

Verification

  • All tests pass
  • pnpm lint clean

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
agent-afk-docs Building Building Preview Aug 28, 2026 2:09am

@griffinwork40
griffinwork40 merged commit 5106a5e into main Aug 28, 2026
10 checks passed
@griffinwork40
griffinwork40 deleted the afk/iso-fix-1329-12-2ishzr branch August 28, 2026 03:20
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.

test: add integration tests for subagent status bar processEvent path

1 participant