Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge origin/capy/6712-pr4b-cursors (lane C phase 1-2) into capy/6712-pr4b-core

garrytan862feae91e27
diff --cc src/core/persistence/sync-run.ts
index e5f2dd2584,5e69b3f1ee..5c94d534c7
--- a/src/core/persistence/sync-run.ts
+++ b/src/core/persistence/sync-run.ts
@@@ -1718,9 -1500,8 +1504,9 @@@ async function runManagedSync(engine: B
drainBatch: async (batchKey, batch, sliceBase) => {
key = batchKey;
setPassBatch(batchKey, batch, JSON.stringify(header(batch)));
- try { return await drainCursor(batch, await preparationConfigView(engine), false, sliceBase); }
+ try { return await drainCursor(batch, await preparationConfigView(engine), sliceBase); }
catch (error) {
+ assertSyncDispatchActive();
// An abort mid-batch stops the pass with what the batch committed before it.
if (signal?.aborted && error instanceof Error && error.name === 'AbortError') return result(live.cursor ?? batch, 'partial', 'timeout');
throw error;