mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
6ae8dcf6e1
commit
218e8df926
26 files changed
+765
-34
No files matched your search
@@ -14,6 +14,9 @@ impl ChatWidget {
|
||||
}
|
||||
|
||||
pub(crate) fn handle_key_event(&mut self, key_event: KeyEvent) {
|
||||
if self.handle_question_key(key_event) {
|
||||
return;
|
||||
}
|
||||
if self.bottom_pane.has_active_view()
|
||||
&& !matches!(
|
||||
key_event,
|
||||
@@ -521,7 +524,7 @@ impl ChatWidget {
|
||||
///
|
||||
/// When the double-press quit shortcut is enabled, pressing the same shortcut again before
|
||||
/// expiry requests a shutdown-first quit.
|
||||
fn on_ctrl_c(&mut self) {
|
||||
pub(super) fn on_ctrl_c(&mut self) {
|
||||
let key = key_hint::ctrl(KeyCode::Char('c'));
|
||||
let modal_or_popup_active = !self.bottom_pane.no_modal_or_popup_active();
|
||||
let should_pause_active_goal = self
|
||||
|
||||
Reference in new issue
Block a user