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:
Eric Traut authored and copyberry committed 2026-09-03 02:18:43 +00:00
1 parent b27a6321fa
commit 1d741742c5
25 files changed
+712 -170

No files matched your search

+2 -2
View File
@@ -1158,7 +1158,7 @@ impl App {
.await;
}
Err(err) => {
self.chat_widget.add_error_message(format!(
self.add_session_picker_error(format!(
"Failed to attach to resumed app-server thread: {err}"
));
}
@@ -1166,7 +1166,7 @@ impl App {
}
Err(err) => {
let path_display = target_session.display_label();
self.chat_widget.add_error_message(format!(
self.add_session_picker_error(format!(
"Failed to resume session from {path_display}: {err}"
));
}