feat: /resume per ID/name (#17222)

Support `/resume 00000-0000-0000-00000000` from the TUI (equivalent for
the name)
This commit is contained in:
jif-oai authored and GitHub committed 2026-04-09 14:21:27 +01:00
1 parent 8f705b0702
commit 6c5471feb2
5 files changed
+155 -89

No files matched your search

+11
View File
@@ -5452,6 +5452,17 @@ impl ChatWidget {
}));
self.bottom_pane.drain_pending_submission_state();
}
SlashCommand::Resume if !trimmed.is_empty() => {
let Some((prepared_args, _prepared_elements)) = self
.bottom_pane
.prepare_inline_args_submission(/*record_history*/ false)
else {
return;
};
self.app_event_tx
.send(AppEvent::ResumeSessionByIdOrName(prepared_args));
self.bottom_pane.drain_pending_submission_state();
}
SlashCommand::SandboxReadRoot if !trimmed.is_empty() => {
let Some((prepared_args, _prepared_elements)) = self
.bottom_pane