fix: doctor boot preflight detail shows Some(false) for trust_gate_allowed; use Display instead of Debug

This commit is contained in:
YeonGyu-Kim
2026-05-25 15:21:15 +09:00
parent 0581894b7e
commit f2a90228fb

View File

@@ -2591,7 +2591,12 @@ fn check_boot_preflight_health(context: &StatusContext) -> DiagnosticCheck {
format!("Worktree exists {}", preflight.worktree_exists),
format!("Git dir exists {}", preflight.git_dir_exists),
format!("Branch behind {}", preflight.branch_freshness.behind),
format!("Trust allowlist {:?}", preflight.trust_gate_allowed),
format!(
"Trust allowlist {}",
preflight
.trust_gate_allowed
.map_or("unknown".to_string(), |v| v.to_string())
),
format!("Trusted roots {}", preflight.trusted_roots_count),
format!(
"MCP eligible {} · servers {}",