Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Prompt before reverting thread checkpoint

Julius Marmingeec5c3c32cd2a
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx
index cfc5f81af..f4d0dcd0a 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);