Skip to content

perf(render): gate subagent status ticker flush on second-boundary change (#1330) - #1354

Merged
griffinwork40 merged 1 commit into
mainfrom
afk/iso-fix-1330-4-umz8vy
Aug 28, 2026
Merged

perf(render): gate subagent status ticker flush on second-boundary change (#1330)#1354
griffinwork40 merged 1 commit into
mainfrom
afk/iso-fix-1330-4-umz8vy

Conversation

@griffinwork40

Copy link
Copy Markdown
Owner

Fixes #1330.

The subagent status ticker called markDirty + flush every 250ms unconditionally, but formatElapsed has 1-second granularity -- 3 of 4 ticks produced identical output. Now tracks the sum of whole elapsed seconds across all active subagents and only flushes when a second boundary is crossed.

Changes

  • src/cli/_lib/stream-renderer.ts -- lastSubagentTotalSec field + second-boundary guard in the ticker interval

Verification

  • 226/226 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 Ready Ready Preview Aug 28, 2026 2:02am

@griffinwork40
griffinwork40 merged commit 70520b7 into main Aug 28, 2026
10 checks passed
@griffinwork40
griffinwork40 deleted the afk/iso-fix-1330-4-umz8vy branch August 28, 2026 03:23
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.

perf: subagent status ticker flushes unconditionally every 250ms

1 participant