Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore: keep cycle.ts within its size ceiling
garrytane65a36141bc1
diff --git a/src/core/cycle.ts b/src/core/cycle.tsindex 74bdfe5a30..0071785998 100644--- a/src/core/cycle.ts+++ b/src/core/cycle.ts@@ -2390,9 +2390,8 @@ async function runCycleUnscoped(const { result, duration_ms } = await timePhase(async () => (await import('./cycle/connector-extract.ts')).runPhaseExtractDatabaseOnly(engine, { dryRun, sourceId: cycleSourceId, timeBudgetMs: CYCLE_STALE_DRAIN_BUDGET_MS }), 'extract');phaseResults.push({ ...result, duration_ms });} else {- // If sync didn't run (phases exclude it) or failed, syncPagesAffected- // is undefined → extract falls back to full walk (safe default), unless- // the cycle has a source window (#8573: a checkout whose sync is skipped).+ // No sync (or a failed one) and no source window (#8573): syncPagesAffected+ // is undefined → extract falls back to full walk (safe default).progress.start('cycle.extract');const { result, duration_ms } = await timePhase(() => runPhaseExtract(engine, brainDir, dryRun, sourceWindow?.slugs ?? syncPagesAffected, cycleSignal, cycleSourceId), 'extract');result.duration_ms = duration_ms;