Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Restore the saveLater doc comment from #5283 on the same line

milind-soni7f2d184c887b
diff --git a/server/routines.ts b/server/routines.ts
index 6b6851cc5a..ec27249270 100644
--- a/server/routines.ts
+++ b/server/routines.ts
@@ -1537,7 +1537,7 @@ export class RoutineManager {
}
}
- private saveLater() { saveSoon(this, () => this.save()); }
+ /** Lands at the end of the running save batch (server/save-batch.ts); what a caller rolls back on failure uses save. */ private saveLater() { saveSoon(this, () => this.save()); }
private save() {
if (this.unreadable) { this.progress.written(); return; }
// Evict only terminal receipts: an active one owns cancellation, timeout and event routing.