Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(sync): drop a debug log left in promoteWindow by d700c7081
garrytan069024005c73
diff --git a/src/core/persistence/sync-cursor-moves.ts b/src/core/persistence/sync-cursor-moves.tsindex 13b66ccb0b..ba665c5a80 100644--- a/src/core/persistence/sync-cursor-moves.ts+++ b/src/core/persistence/sync-cursor-moves.ts@@ -53,7 +53,6 @@ export function promoteWindow(cursor: Cursor): Cursor {// A pass's intents carry no index (cursorIntent): its window head is the entry at the cursor's index by path, never frozen again under the same request.const head = first[0]!.intent;if (typeof head.index === 'number' ? head.index !== cursor.index : head.path == null || head.path !== cursor.entries[cursor.index]?.path) return cursor;- console.log('ZZW', cursor.index, cursor.passId, first.map(m => [m.intent.path, m.intent.index, m.intent.group, m.requestId]), cursor.entries.map((e: { path?: string }) => e.path));const next: Cursor = { ...cursor, pending: first[0], group: first };if (rest.length) next.window = rest; else delete next.window;return next;