Uh oh!
There was an error while loading. Please reload this page.
fix(tui): restore agent name in task progress display - #15946
Conversation
The v1.2.16 refactor (PR anomalyco#15607) replaced BlockTool with InlineTool for task rendering. The old code showed the agent type (subagent_type) in the BlockTool title as "# AgentName Task". The new inline format only shows "Task description", dropping the agent name entirely. Restore the agent name prefix so the output reads: │ Explore: Task Verify Refit cancellation behavior └ 22 toolcalls · 1m 1s Falls back to plain "Task description" when subagent_type is not set. Fixesanomalyco#15915 Co-Authored-By: Claude <noreply@anthropic.com>
zerone0x
commented
Mar 4, 2026
The e2e failure is unrelated to this change. The failing test is: It throws |
Cherry-picked from upstream PR anomalyco#15946. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Issue for this PR
Closes#15915
Type of change
What does this PR do?
The v1.2.16 TUI refactor (PR #15607) replaced
BlockToolwithInlineToolfor task rendering. The oldBlockTooltitle was"# AgentName Task"— it showed thesubagent_type(e.g. "Explore", "General"). The new inline renderer only buildsTask ${description}, so the agent name is gone.Fix: compute an
agentPrefixfromprops.input.subagent_type(titlecased) and prepend it. The output becomes:Falls back to plain
Task descriptionwhensubagent_typeis absent.Locale.titlecaseis already used on the same line for the tool name in the running-state line, so the pattern is identical to existing code.How did you verify your code works?
Code diff reviewed against the old
BlockTooltitle format and the newInlineToolcontent memo. TheLocale.titlecasehelper is already called in the samecontentmemo (line 1982 forcurrent().tool), so no new imports are needed.Screenshots / recordings
UI change; no terminal recording attached but the format is text-only.
Checklist