add slash resume (#7302)

`codex resume` isn't that discoverable. Adding it to the slash commands
can help
This commit is contained in:
Ahmed Ibrahim
2025-12-03 11:25:44 -08:00
committed by GitHub
parent 3ef76ff29d
commit 2ad980abf4
12 changed files with 346 additions and 14 deletions

View File

@@ -1185,6 +1185,15 @@ fn slash_exit_requests_exit() {
assert_matches!(rx.try_recv(), Ok(AppEvent::ExitRequest));
}
#[test]
fn slash_resume_opens_picker() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual();
chat.dispatch_command(SlashCommand::Resume);
assert_matches!(rx.try_recv(), Ok(AppEvent::OpenResumePicker));
}
#[test]
fn slash_undo_sends_op() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual();