diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index cfc5f81af0f7147119c05aaf770ac51de6c67e69..f4d0dcd0a438c1ea201c1ae15e7d830c0abfd8ac 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1533,6 +1533,16 @@ export default function ChatView() { setThreadError(activeThread.id, "Interrupt the current turn before reverting checkpoints."); return; } + const confirmed = await api.dialogs.confirm( + [ + `Revert this thread to checkpoint ${turnCount}?`, + "This will discard newer messages and turn diffs in this thread.", + "This action cannot be undone.", + ].join("\n"), + ); + if (!confirmed) { + return; + } setIsRevertingCheckpoint(true); setThreadError(activeThread.id, null);