Show successful TUI commands individually (#41893)

## What changed

- Emit a separate history cell for each completed command instead of grouping
  consecutive successes into a `Ran N commands` summary.
- Preserve `Explored` grouping for related file reads, searches, and listings.
- Replay completed commands as individual entries so their output and failure
  status remain visible.

## Testing

- Update TUI tests and snapshots for live exploration and replayed commands.

GitOrigin-RevId: 7dafe0b7846fc89784093791a6be137a1b1ab8ff
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-08-31 18:34:10 +00:00
1 parent e51b54b4c0
commit 32f48598a0
16 files changed
+110 -480

No files matched your search

@@ -2,4 +2,6 @@
source: tui/src/chatwidget/tests.rs
expression: active_blob(&chat)
---
• Ran 2 commands · ctrl + t to view transcript
• Explored
└ List ls -la
Read foo.txt
@@ -2,4 +2,6 @@
source: tui/src/chatwidget/tests.rs
expression: active_blob(&chat)
---
• Ran 3 commands · ctrl + t to view transcript
• Explored
└ List ls -la
Read foo.txt
@@ -2,4 +2,6 @@
source: tui/src/chatwidget/tests.rs
expression: active_blob(&chat)
---
• Ran 4 commands · ctrl + t to view transcript
• Explored
└ List ls -la
Read foo.txt, bar.txt