fix: address code review feedback for doctor health check

- Fix TypeScript error: extract host field for getDaemonHost call
- Use async execFile + Promise.all for parallel provider checks
- Load config once in runConfigChecks instead of twice
This commit is contained in:
Zi Makki
2026-03-09 13:08:15 +01:00
parent 15d7763d0b
commit 59e0b2ec62
3 changed files with 57 additions and 47 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export async function runDoctorCommand(
let report: DoctorReport
if (remote) {
const host = getDaemonHost(options)
const host = getDaemonHost({ host: options.host as string | undefined })
report = await fetchRemoteReport(host)
} else {
report = await runDoctorChecks()