Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

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

garrytanaa6a65fd88a2
diff --cc src/core/persistence/sync-pass.ts
index b6b2e281e2,6922ac80d8..6b25f13214
--- a/src/core/persistence/sync-pass.ts
+++ b/src/core/persistence/sync-pass.ts
@@@ -348,11 -297,10 +348,11 @@@ 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 hashWorkingLevel(root, gitRoot, [...domain], tree)).probes : new Map();
+ const hashed = mode === 'working' ? await hashWorkingLevel(root, gitRoot, [...domain], tree) : null;
+ const probes = hashed?.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