feat(tui): show live progress for subagents and background tasks - #109
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
✓/✗ Used …,… Using …, capped at4 with a hidden count) instead of collapsing to one line.
that transitions in place to the terminal state, so a completed agent no longer produces a second
entry.
/tasksbrowser shows a running spinner and livemm:sselapsed on running rows.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 subagentactivity 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→ cleanoxlinton the changed files → 0 errors (the 2 warnings are pre-existing inkimi-tui.tsand unrelated to this change).changeset/agent-task-live-progress.md(@moonshot-ai/kimi-code, patch)