fix(tui): restore agent name in task progress display#15946
Open
zerone0x wants to merge 1 commit intoanomalyco:devfrom
Open
fix(tui): restore agent name in task progress display#15946zerone0x wants to merge 1 commit intoanomalyco:devfrom
zerone0x wants to merge 1 commit intoanomalyco:devfrom
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. Fixes anomalyco#15915 Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
|
The e2e failure is unrelated to this change. The failing test is: It throws |
IgorTavcar
added a commit
to IgorTavcar/opencode
that referenced
this pull request
Mar 4, 2026
Cherry-picked from upstream PR anomalyco#15946. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
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