Group consecutive tool calls in the full-screen conversation (#60556)

## What changed

- Combine adjacent tool calls into one expandable summary, including calls that move from live output into history. Label successful command groups with summaries such as `Explored files` and `Ran 2 commands`.
- Include web searches in tool groups, hide duplicate provisional search entries, and show a single completed search directly. Preserve its reading position when it completes.
- Refresh summaries as history changes while preserving pinned content during selection and reading.

## Testing

Add regression coverage for web search completion, grouped search expansion, loading older history during selection, and command completion with an expanded summary.

GitOrigin-RevId: 98f4e0c49cbf8014c25874cf47d1c0c92ee6b30d
This commit is contained in:
Eric Traut
2026-11-10 08:35:36 +00:00
committed by copyberry
parent 7539b0a856
commit bcbb7f5a9c
9 changed files with 425 additions and 66 deletions
@@ -46,6 +46,7 @@ impl TranscriptView {
if range.is_empty() {
return;
}
self.invalidate_turn_details_from(range.start);
self.retain_search_origin(cells, range.clone());
if range.end == cells.len() && self.last_tail == cells.last().map(EntryKey::cell) {
self.last_tail = Some(EntryKey::cell(replacement));
@@ -93,6 +94,7 @@ impl TranscriptView {
if range.is_empty() {
return;
}
self.invalidate_turn_details_from(range.start);
self.retain_search_origin(cells, range.clone());
// Older history may extend the final group without introducing new activity.
if range.end == cells.len() && self.last_tail == cells.last().map(EntryKey::cell) {