Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Fix lane N: extract_health keeps checks.push(check) so the doctor registry walker still sees it

garrytan584f2a3f64e0
diff --git a/src/commands/doctor/checks/local-audits.ts b/src/commands/doctor/checks/local-audits.ts
index b34ea8d117..53ca4348d5 100644
--- a/src/commands/doctor/checks/local-audits.ts
+++ b/src/commands/doctor/checks/local-audits.ts
@@ -214,7 +214,8 @@ async function runExtractionBacklogs(ctx: DoctorContext): Promise<Check[]> {
const backlog = await readFactsReconcileBacklog(engine).catch(() => null);
if (backlog) { applyFactsReconcileBacklog(check, backlog); skippedSegmented = backlog.skipped_segmented ?? 0; }
}
- checks.push(withSkippedSegmented(check, skippedSegmented));
+ Object.assign(check, withSkippedSegmented(check, skippedSegmented));
+ checks.push(check);
} catch {
// Best-effort; rollup-table missing on pre-v106 brains is normal
// and is already handled inside computeExtractHealthCheck.