Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore: keep cycle.ts within its size ceiling (#7630)
garrytan16b1e447a9a3
diff --git a/src/core/cycle.ts b/src/core/cycle.tsindex 03e021f80c..50c96333b7 100644--- a/src/core/cycle.ts+++ b/src/core/cycle.ts@@ -1224,7 +1224,6 @@ export async function resolveSourceForDir(const matched: string[] = [];for (const row of candidates) {try {- // #7630: a relative path realpaths against the cwd, so it would match whatever directory gbrain runs from.if (isAbsolute(row.local_path) && realpathSync(row.local_path) === realDir) matched.push(row.id);} catch {// Stale/unreadable registered path — not a match, keep scanning.