Show live task details in the agent command center (#42455)

## What changed

- Add bounded detail previews for the selected task, including pending approval or user-input requests, live reasoning headings, and the latest agent message.
- Prefer the most urgent child task with useful detail while keeping the task list compact.
- Populate historical last messages from existing thread reads and update live details from already-delivered events without attaching to additional threads.
- Clear stale previews after reverts, event-stream gaps, reconnects, and thread lifecycle changes.

## Testing

- Add coverage and snapshots for attention requests, live activity, historical messages, stale refreshes, and attachment changes.

GitOrigin-RevId: 5de4b8aa3bc5bf9653a40c44b827f7aa85c8cf89
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-03 05:33:57 +00:00
1 parent c9fecd3fa0
commit 8ff74cc9b1
20 files changed
+757 -42

No files matched your search

@@ -13,7 +13,7 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
│ Project
│ /tmp/project
│
│ Latest activity
│ Prompt
│ Selected task
│
│
@@ -13,7 +13,7 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
│ Project
│ /tmp/project
│
│ Latest activity
│ Prompt
│ Selected task
│
│
@@ -13,7 +13,7 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
│ Project
│ /tmp/project
│
│ Latest activity
│ Prompt
│ New task
│
│