Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge remote-tracking branch 'origin/capy/6712-pr4a' into capy/6712-pr4b
garrytanb300ff85de81
diff --cc src/core/persistence/sync-pass.tsindex 27939ce08e,add9f3558a..6922ac80d8--- a/src/core/persistence/sync-pass.ts+++ b/src/core/persistence/sync-pass.ts@@@ -292,10 -299,10 +297,10 @@@ export async function readShadowLevel(e// Working mode rehashes every path (the full round's unconditional rehash); committed mode probes candidates only.t = timer();- const probes = mode === 'working' ? await probeDirtiness(root, gitRoot, [...domain], tree, index) : new Map();+ const probes = mode === 'working' ? (await hashWorkingLevel(root, gitRoot, [...domain], tree)).probes : new Map();timings.Dp = t();- const levelOf = (path: string, probe: { dp: string; rawOid: string | null } | undefined): string | null => {+ const levelOf = (path: string, probe: { dp: string; rawOid: string | null; rawSha256: string | null } | undefined): string | null => {const committed = tree.get(path) ?? null;return mode === 'committed' ? committed?.oid ?? null: !probe || probe.dp === 'deleted' ? null