-
Notifications
You must be signed in to change notification settings - Fork 393
TUI: background-agent visibility (+ optional depth nesting) #3103
Copy link
Copy link
Open
Labels
area/agentFor work that has to do with the general agent loop/agentic features of the appFor work that has to do with the general agent loop/agentic features of the apparea/toolsFor features/issues/fixes related to the usage of built-in and MCP toolsFor features/issues/fixes related to the usage of built-in and MCP toolsarea/tuiFor features/issues/fixes related to the TUIFor features/issues/fixes related to the TUIkind/featPR adds a new feature (maps to feat: commit prefix)PR adds a new feature (maps to feat: commit prefix)
Metadata
Metadata
Assignees
Labels
area/agentFor work that has to do with the general agent loop/agentic features of the appFor work that has to do with the general agent loop/agentic features of the apparea/toolsFor features/issues/fixes related to the usage of built-in and MCP toolsFor features/issues/fixes related to the usage of built-in and MCP toolsarea/tuiFor features/issues/fixes related to the TUIFor features/issues/fixes related to the TUIkind/featPR adds a new feature (maps to feat: commit prefix)PR adds a new feature (maps to feat: commit prefix)
Type
Fields
Give feedbackNo fields configured for Enhancement.
Part of #3104
run_background_agentwork is essentially invisible in the UI: no live progress, no count, generic tool cards, and a single-agent sidebar. This is the strongest "multiple agents" case.Proposed changes
pkg/tui/components/tool/backgroundagent/renderers forrun/list/view/stop_background_agent, registered inpkg/tui/components/tool/factory.go, rendering compact cards (agent badge + status chip + elapsed) instead of raw text. Pure presentation; no runtime change.runCollectingdeliberately drops child events — prefer emitting coarse lifecycle events (started/finished with task id + agent name + final status) without forwarding the full stream.streamDepth. High blast radius inpkg/tui/components/messages/(width/wrap/selection/scroll math); only pursue if Phases 1–2 prove insufficient.Acceptance criteria
Validation
task build && task test && task lintgreen.