From 2c3bf4ea793aa5c590932553d242a287380e9cec Mon Sep 17 00:00:00 2001 From: jif Date: Mon, 31 Aug 2026 22:27:06 +0000 Subject: [PATCH] Open the agents overview directly in the reconnect test (#41929) ## What changed Dispatch `AppEvent::OpenAgentsOverview` in the daemon reconnect navigation test instead of simulating the Alt+A keyboard shortcut. GitOrigin-RevId: 99729a39496ffb96747f6d0c4be0edf52d1ef3f6 --- codex-rs/tui/src/app/tests/navigation_reconnect_tests.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/codex-rs/tui/src/app/tests/navigation_reconnect_tests.rs b/codex-rs/tui/src/app/tests/navigation_reconnect_tests.rs index 81c69b9199..17cc593a79 100644 --- a/codex-rs/tui/src/app/tests/navigation_reconnect_tests.rs +++ b/codex-rs/tui/src/app/tests/navigation_reconnect_tests.rs @@ -377,12 +377,8 @@ async fn reconnect_daemon_command_center_after_socket_replacement_without_a_conv app.chat_widget.composer_text_with_pending(), "latest draft!" ); - app.handle_tui_event( - &mut tui, - &mut session, - TuiEvent::Key(KeyEvent::new(KeyCode::Char('a'), KeyModifiers::ALT)), - ) - .await?; + app.handle_event(&mut tui, &mut session, AppEvent::OpenAgentsOverview) + .await?; assert!(app.chat_widget.has_active_view()); app.handle_tui_event( &mut tui,