Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

refactor(#6712 PR 4b lane C): stop freezing a cursor's path slice into its checkpoint intent (only non-company discovery set it; the preparer keeps reading it for older queued intents)

garrytan91a482383d7f
diff --git a/src/core/persistence/sync-run.ts b/src/core/persistence/sync-run.ts
index b411adf049..4ad6335a69 100644
--- a/src/core/persistence/sync-run.ts
+++ b/src/core/persistence/sync-run.ts
@@ -459,7 +459,7 @@ async function freezeEntry(engine: BrainEngine, cursor: Cursor, key: string, ass
processingOptions: cursor.processingOptions,
// A cursor created before its options were recorded has the same key, so this run's options are its options.
...(!entry ? { syncOptions: cursor.syncOptions ?? run.syncOptions, ...(run.repoPath ? { repoPath: run.repoPath } : {}) } : {}),
- ...(!entry && cursor.overtaken ? { overtaken: true } : {}), ...(!entry && cursor.slice ? { slice: cursor.slice } : {}),
+ ...(!entry && cursor.overtaken ? { overtaken: true } : {}),
ownerEpoch: String(cursor.binding.owner_epoch), syncAuthority: cursor.authority, ...cursorIntent(cursor, key),
...(cursor.passId ? { level: passLevel ?? null, ...(!entry && cursor.stamp ? { stamp: cursor.stamp } : {}) } : {}),
slugMode: cursor.slugMode, from: cursor.from, target: cursor.target, working: entry?.working ?? false,