feat(maestro): keep agent text visible, collapse only tool calls

Agent text and thought rows stay outside the collapsed tool group as
standalone transcript items instead of being absorbed into it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-09-10 21:55:06 +01:00
co-authored by Claude Opus 4.6
parent cd2184b128
commit cb25320ea0
3 changed files with 21 additions and 74 deletions
+7 -13
View File
@@ -190,19 +190,13 @@ choices, not daemon ones.
from the transcript; the TUI may show the current plan in its status line,
while the web client deliberately has no stats or plan rail.
- The web client groups two or more tool rows after the same `User` row into
one collapsed turn activity block. `AgentText` and `AgentThought` rows that
appear *between* tool rows in the same turn are absorbed into the group
(intermediate narration); the last `AgentText` with no subsequent tool stays
outside as the prominent final answer. While a turn is still active
(responding or thinking), the most recent trailing text or thought row is
kept outside as visible narration — the operator always sees the agent's
latest reasoning without opening the group. It is replaced by the next text
row when one arrives, and absorbed into the group when the turn ends (unless
it is `AgentText`, which stays outside as the final answer). The collapsed
header reads "N tool calls · Label 'arg'" where the label and argument come
from the last tool row's `splitToolTitle` — the operator sees which command
is current at a glance. Opening the group reveals tools and intermediate
text in chronological order, with the text rendered in a subdued style.
one collapsed turn activity block. `AgentText` and `AgentThought` rows stay
outside the group as standalone transcript items — the operator sees all
reasoning without expanding. Resolved approval rows between tools are
absorbed into the group. The collapsed header reads "N tool calls · Label
'arg'" where the label and argument come from the last tool row's
`splitToolTitle` — the operator sees which command is current at a glance.
Opening the group reveals tool rows in chronological order.
- The web client's user, agent, thought, tool-detail, and notice text blocks
copy their complete source text when clicked or keyboard-activated.
- The web client consumes `available_commands_update` notices as the live