This commit is contained in:
jimmyfraiture
2025-10-02 15:39:39 +01:00
parent 01f74b5ee6
commit 5095aca10b

View File

@@ -1100,6 +1100,10 @@ impl ChatWidget {
self.app_event_tx.send(AppEvent::ExitRequest);
}
SlashCommand::Undo => {
self.add_info_message(
"Restoring workspace to the last Codex snapshot...".to_string(),
Some("This may take a few seconds.".to_string()),
);
// Delegate undo to core which manages the snapshot ring.
self.submit_op(Op::UndoLastSnapshot);
}