Use the shared composer in the agent command center (#42428)

## What changed

- Replace the command center's single-line new-task input with the shared chat composer, including multiline editing, paste handling, Vim mode, configured keybindings, cursor behavior, and input validation.
- Keep task drafts and editor state across dashboard refreshes and reconnects while separating composer focus from list, search, and rename actions.
- Preserve whitespace in dispatched task prompts, block submission while offline, and restore unsent prompts after dispatch failures when the composer is still available.

## Testing

- Add coverage for focus routing, draft retention, multiline pastes, custom keybindings, Vim mode, offline editing, failed-dispatch recovery, and responsive rendering.

GitOrigin-RevId: a609ae95d497cbae0ebcac4cdcc50fe49d74832a
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-03 03:16:24 +00:00
1 parent cac96cd7b1
commit 62f553bfd0
20 files changed
+717 -145

No files matched your search

@@ -21,8 +21,8 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
│
│
│
│
│
│
New task › task draft!
ctrl+c quit · actions paused until the list is refreshed
New task
› task draft!
esc tasks · dispatch paused
@@ -21,8 +21,8 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
│
│
│
│
│
│
New task › Keep this task draft!
ctrl+c quit · actions paused until the list is refreshed
New task
› Keep this task draft!
esc tasks · dispatch paused
@@ -21,8 +21,8 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
│
│
│
│
│
│
New task › Keep this task draft!
ctrl+c quit · actions paused until the list is refreshed
New task
› Keep this task draft!
esc tasks · dispatch paused
@@ -21,8 +21,8 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
│
│
│
│
│
New task › Describe a task and press enter to dispatch it
↑↓ navigate ctrl+o resume enter open ctrl+f search ctrl+s group ctrl+r rename ctrl+x stop esc
back
New task
› Describe a new task
enter create task ctrl+j newline esc tasks