Skip to content

feat(tui): show live progress for subagents and background tasks - #109

Merged
mbuckaway merged 1 commit into
fork/mainfrom
feat/agent-task-live-progress
Sep 15, 2026
Merged

mbuckaway merged 1 commit into
fork/mainfrom
feat/agent-task-live-progress

Conversation

@mbuckaway

Copy link
Copy Markdown
Owner

feat(tui): show live progress for subagents and background tasks

Problem

The AgentSwarm tool renders a live progress grid, but the single-subagent Agent tool and the
background-task surfaces gave little feedback while running: the single-agent card collapsed every
sub-tool to one "Using X" line, background subagents showed only a static "started in background"
line with no updates until they finished, and the WaitFor header sat static with no running
indicator.

What changed

  • The single Agent card lists each sub-tool the subagent runs (✓/✗ Used …, … Using …, capped at
    4 with a hidden count) instead of collapsing to one line.
  • Background subagents get a live transcript line — spinner, elapsed time, and current activity —
    that transitions in place to the terminal state, so a completed agent no longer produces a second
    entry.
  • The /tasks browser shows a running spinner and live mm:ss elapsed on running rows.
  • The WaitFor card header animates a spinner while the wait is in flight.

No engine, protocol, or wire changes: the change reuses the activity signals already emitted
(subagent.*, assistant.delta, tool.call.started, tool.progress) and the in-memory subagent
activity store.

Commits in this PR

  • c10328474 — feat(tui): show live progress for subagents and background tasks (Mark Buckaway, 2026-09-13)

Testing

  • npx vitest run test/tui → 2321/2321 passed (149 files)
  • npx tsc -p tsconfig.json --noEmit → clean
  • oxlint on the changed files → 0 errors (the 2 warnings are pre-existing in kimi-tui.ts and unrelated to this change)
  • Changeset added: .changeset/agent-task-live-progress.md (@moonshot-ai/kimi-code, patch)

The single Agent card now lists each sub-tool the subagent runs instead of only the current one. Background subagents get a live transcript line with a spinner, elapsed time, and current activity that transitions in place to the terminal state. The /tasks list shows a running spinner and elapsed time on running rows, and the WaitFor header animates while the wait is in flight.
@mbuckaway
mbuckaway merged commit 60f6eeb into fork/main Sep 15, 2026
13 checks passed
@mbuckaway
mbuckaway deleted the feat/agent-task-live-progress branch September 15, 2026 13: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.

1 participant