mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Return focus to the agents overview composer on Escape (#44360)
## Why Pressing `Esc` in the agents overview task list dismissed the overview or exited Codex when no primary thread existed, instead of returning to the draft. ## What changed Make list cancellation return focus to the composer, including while reconnecting, preserving the draft and cursor position. ## Testing Add regression coverage for returning from the list to the composer with Vim mode enabled or disabled, both online and reconnecting. Verify draft and cursor preservation, resumed text entry, and the absence of app events. GitOrigin-RevId: 8920677c42b0c9ff5023979e198f069abcfcf54b
This commit is contained in:
1 parent
d996b4f02a
commit
a62e98d18c
4 files changed
+74
-15
No files matched your search
@@ -415,6 +415,12 @@ async fn reconnect_daemon_command_center_after_socket_replacement_without_a_conv
|
||||
)
|
||||
.await?;
|
||||
|
||||
assert!(app.chat_widget.has_active_view());
|
||||
// Esc returns to the overview composer. Dismiss the retained view explicitly
|
||||
// to inspect the unavailable conversation and its cached draft below.
|
||||
app.agents_overview.view_state.lock().unwrap().completion =
|
||||
Some(crate::bottom_pane::ViewCompletion::Accepted);
|
||||
app.chat_widget.handle_key_event(KeyCode::Null.into());
|
||||
assert!(!app.chat_widget.has_active_view());
|
||||
assert_eq!(app.current_displayed_thread_id(), Some(id));
|
||||
let history = drain_history(&mut app, &mut tui, &mut session, &mut events).await?;
|
||||
|
||||
Reference in new issue
Block a user