Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/capy/6712-pr4b-cursors' into capy/6712-pr4b-cursors

garrytandc4f7f72081a
diff --cc src/core/persistence/sync-pass-run.ts
index 248e9df8c8,26390d03fd..2e92d7081d
--- a/src/core/persistence/sync-pass-run.ts
+++ b/src/core/persistence/sync-pass-run.ts
@@@ -521,9 -527,8 +528,10 @@@ export async function runSyncPass(engin
if (r.settled) continue;
if (r.inFlight) { inFlight.push(entry); continue; }
if (S.has(settledKey(entry.path, entry.state.level))) {
- // A hold this pass wrote or re-screened at L is that path's fate here, even when its code re-screens every pass.
- if (entry.state.hold?.atLevel || legacyWaived.has(settledKey(entryPaths(level, entry.path).path, entry.state.level))) continue;
+ // A hold this pass wrote or re-screened at L, or a slug collision it skipped, is that path's fate here, even when
+ // its code re-screens every pass or the skipped twin still classifies as an import.
- if (entry.state.hold?.atLevel || S.get(settledKey(entry.path, entry.state.level)) === 'collision') continue;
++ if (entry.state.hold?.atLevel || S.get(settledKey(entry.path, entry.state.level)) === 'collision'
++ || legacyWaived.has(settledKey(entryPaths(level, entry.path).path, entry.state.level))) continue;
// Design §3.1: admitted at most once more per (path, level) in this pass, then counted as a settle mismatch.
const again = settledKey(entry.path, entry.state.level);
if (readmitted.has(again)) { mismatch.push(entry); continue; }