mirror of
https://github.com/instructkr/claude-code.git
synced 2026-06-04 11:36:44 +00:00
fix(#704): DiagnosticCheck.json_value now emits stable snake_case id field; doctor checks addressable without scraping name prose
This commit is contained in:
@@ -536,6 +536,12 @@ fn doctor_and_resume_status_emit_json_when_requested() {
|
||||
assert!(check["status"].as_str().is_some());
|
||||
assert!(check["summary"].as_str().is_some());
|
||||
assert!(check["details"].is_array());
|
||||
// #704: each check must have a stable snake_case id
|
||||
assert!(
|
||||
check["id"].as_str().is_some(),
|
||||
"doctor check missing stable id field: {:?}",
|
||||
check["name"]
|
||||
);
|
||||
check["name"].as_str().expect("doctor check name")
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
Reference in New Issue
Block a user