Problem
The V2 prompt footer shows live subagent and shell counts for foreground work that is currently blocking the session. The count appears while the user is already looking at that work, then repeatedly appears and disappears as foreground tools start and settle.
The footer should communicate work that has been moved out of the main interaction, not duplicate foreground execution state.
Current counting in packages/tui/src/component/prompt/index.tsx includes every running descendant session and every shell record associated with the session, without checking whether the work was explicitly backgrounded.
Expected
- Show footer counts only for subagents and shells explicitly moved to the background.
- Do not show counts for foreground tool calls that the session is currently awaiting.
- Avoid footer flicker as ordinary foreground work starts and finishes.
- Keep the background-work composer tabs/counts aligned to the same definition of background work.
Reproduction
- Start a foreground subagent or shell tool call in the V2 TUI.
- Leave it running or waiting for completion.
- Observe
1 subagent · 1 shell in the prompt footer despite neither task having been backgrounded.
Problem
The V2 prompt footer shows live
subagentandshellcounts for foreground work that is currently blocking the session. The count appears while the user is already looking at that work, then repeatedly appears and disappears as foreground tools start and settle.The footer should communicate work that has been moved out of the main interaction, not duplicate foreground execution state.
Current counting in
packages/tui/src/component/prompt/index.tsxincludes every running descendant session and every shell record associated with the session, without checking whether the work was explicitly backgrounded.Expected
Reproduction
1 subagent · 1 shellin the prompt footer despite neither task having been backgrounded.