Chat: fold activity-only rows between messages into one summary line
Tool-only turns, thinking-only turns and background-task notices that sit between two content rows become one collapsible activity_group row, e.g. "Ran 7 commands · used 9 tools · 8 background tasks finished · 1 failed", the failure count in the error colour and never ellipsized. Expanding it shows the folded rows as they render on their own. A run's task notices fold into one chip at the newest notice; a notice whose id recurs later is counted only at its latest position. Grouping is a pure domain step (groupChatActivity) applied last in the thread view's row pipeline; group rows list every member id so ChatRowKeys keeps their identity, unchanged runs return the identical group object, and the transcript anchor accepts a group's agent-turn ids. The scroll fixture gains ?bgwork=1 for the shape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -191,6 +191,12 @@ void main() {
|
||||
greaterThan(width * 0.8),
|
||||
);
|
||||
|
||||
// A task notice folds into the activity summary on the agent's side and
|
||||
// shows as its own line once that is opened.
|
||||
final summary = find.text('1 background task finished');
|
||||
expect(summary, findsOneWidget);
|
||||
await tester.tap(summary);
|
||||
await _pump(tester);
|
||||
final notice = find.text(
|
||||
'Background task finished: Background command "Build" completed',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user