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

+4
View File
@@ -1719,6 +1719,10 @@ impl ChatWidget {
self.bottom_pane.composer_is_empty() && !self.bottom_pane.is_in_paste_burst()
}
pub(crate) fn composer_is_vim_enabled(&self) -> bool {
self.bottom_pane.composer_is_vim_enabled()
}
#[cfg(test)]
pub(crate) fn is_task_running_for_test(&self) -> bool {
self.bottom_pane.is_task_running()