Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(doctor): derive ok from findings in unusable default config outcome

Steven Enamakeldc4eb97eb316
diff --git a/crates/openhuman-core/src/doctor/ops.rs b/crates/openhuman-core/src/doctor/ops.rs
index d36376231b..e3ced2c327 100644
--- a/crates/openhuman-core/src/doctor/ops.rs
+++ b/crates/openhuman-core/src/doctor/ops.rs
@@ -270,6 +270,8 @@ fn unusable_default_config_outcome(
"Use a registered exact check id from the doctor report.",
));
}
+ let summary = DoctorSummary::from_findings(&findings);
+ let ok = summary.error == 0;
let (layout_version, resolution_source) = config.doctor_profile_metadata();
let report = DoctorReport {
schema_version: 2,
@@ -287,9 +289,9 @@ fn unusable_default_config_outcome(
Vec::new()
},
checks_skipped: Vec::new(),
- summary: DoctorSummary::from_findings(&findings),
+ summary,
findings,
- ok: false,
+ ok,
};
Ok(Some(Outcome::single_log(
report,