TypeScript
Prompt before reverting thread checkpoint
Julius Marmingeec5c3c32cd2a
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex cfc5f81af0f..f4d0dcd0a43 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);