Skip to content

feat(tui): show running subagents in the prompt status row - #53612

Closed
moritzWa wants to merge 3 commits into
anomalyco:devfrom
moritzWa:subagent-footer
Closed

moritzWa wants to merge 3 commits into
anomalyco:devfrom
moritzWa:subagent-footer

Conversation

@moritzWa

@moritzWa moritzWa commented Oct 6, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #53611

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Lists running subagents on the left of the row under the prompt, so you can see one is still working after its inline task line scrolls away.

  • While the parent is busy they follow esc interrupt; when it's idle (background subagents) they take the place of the directory, which comes back once they finish.
  • Each shows a spinner and its description: up to 40 characters for one, 24 each for two. Three or more collapse to ⠧ 3 subagents.
  • Click one to open its session. Clicking the count opens the oldest.

"Running" comes from the child session's status (busy or retry), not the parent's task tool part. Background tasks complete their part as soon as the child spawns. Also, with at least one provider (cursor-opencode-provider), the running part doesn't carry metadata.sessionId until it completes. Child sessions by parentID are what the existing subagent navigation already uses.

The first commit adds a session_prompt_footer plugin slot at the same spot, so plugins can put things in this row too.

How did you verify your code works?

Unit tests for the running-subagent selection in packages/tui/test/routes/running-subagents.test.ts, the TUI test suite, and bun typecheck in packages/tui and packages/plugin. Ran it locally with two subagents: each showed while it ran and the row cleared when both finished.

Screenshots / recordings

running subagents in the prompt row

Two subagents run in parallel; both show after esc interrupt while they work, and the row goes back to the directory when they finish. Played at 2x. (mp4)

Running Finished
subagent running subagents finished

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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.

[FEATURE]: Show running subagents under the prompt

2 participants