Integrate asynchronous questions into the TUI (#42891)

## What changed

- Display questions from live agent messages with a collapsed question count and an expandable answer editor.
- Support navigating, answering, queueing, and skipping questions while preserving the main composer draft. Expose question navigation and skip actions in the keymap picker.
- Route answers through existing input delivery and consume them only after an accepted send or queue operation. Keep questions editable while disconnected, with delivery and skipping disabled.

## Testing

Add tests for answer delivery, queued answers, retained drafts, disconnected editing, Vim undo, buffered input, constrained layouts, and question shortcut descriptions.

GitOrigin-RevId: 084b54dceb8c0100aefbf9f0b7897bf8d26eac47
This commit is contained in:
Ian MacLeod authored and copyberry committed 2026-09-05 00:15:42 +00:00
1 parent 6ae8dcf6e1
commit 218e8df926
26 files changed
+765 -34

No files matched your search

+3
View File
@@ -278,3 +278,6 @@ pub(crate) use helpers::make_chatwidget_manual_with_sender;
pub(crate) use helpers::set_chatgpt_auth;
pub(crate) use helpers::set_fast_mode_test_catalog;
pub(super) use helpers::*;
#[path = "tests/questions_tests.rs"]
mod questions_tests;