mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add session resume to the agent command center (#42419)
## What changed - Add a configurable `agents.resume` action, bound to `Ctrl+O` by default, that opens the session resume picker from the agent command center. - Preserve command-center state when the picker is cancelled, and preserve per-thread composer and queued-input state when switching sessions. - Keep resume failures within the command-center flow and wrap footer shortcuts on narrow terminals. ## Testing - Add coverage for picker cancellation, active-session selection, resume failures, per-thread input restoration, custom keybindings, and narrow footer layout. GitOrigin-RevId: 59159f838a0c642200cd164e3af45b0971d29bf8
This commit is contained in:
1 parent
b27a6321fa
commit
1d741742c5
25 files changed
+712
-170
No files matched your search
@@ -218,6 +218,7 @@ async fn disconnected_command_center_keeps_input_and_blocks_actions() -> Result<
|
||||
KeyEvent::new(KeyCode::Esc, KeyModifiers::NONE),
|
||||
KeyEvent::new(KeyCode::Char('f'), KeyModifiers::CONTROL),
|
||||
KeyEvent::new(KeyCode::Char('f'), KeyModifiers::CONTROL),
|
||||
KeyEvent::new(KeyCode::Char('o'), KeyModifiers::CONTROL),
|
||||
] {
|
||||
app.handle_tui_event(&mut tui, &mut session, TuiEvent::Key(key))
|
||||
.await?;
|
||||
@@ -235,8 +236,10 @@ async fn disconnected_command_center_keeps_input_and_blocks_actions() -> Result<
|
||||
"task draft!"
|
||||
);
|
||||
assert!(
|
||||
!std::iter::from_fn(|| events.try_recv().ok())
|
||||
.any(|event| matches!(event, AppEvent::DispatchAgentsOverviewTask { .. }))
|
||||
!std::iter::from_fn(|| events.try_recv().ok()).any(|event| matches!(
|
||||
event,
|
||||
AppEvent::DispatchAgentsOverviewTask { .. } | AppEvent::OpenResumePicker
|
||||
))
|
||||
);
|
||||
assert_snapshot!(
|
||||
"offline_command_center",
|
||||
|
||||
+2
-2
@@ -23,6 +23,6 @@ expression: "render_bottom_popup(&app.chat_widget, 100)"
|
||||
│
|
||||
│
|
||||
│
|
||||
│
|
||||
New task › Describe a task and press enter to dispatch it
|
||||
↑↓ navigate enter open ctrl+f search ctrl+s group ctrl+r rename ctrl+x stop esc back
|
||||
↑↓ navigate ctrl+o resume enter open ctrl+f search ctrl+s group ctrl+r rename ctrl+x stop esc
|
||||
back
|
||||
Reference in new issue
Block a user