doctor.ps1 already exited 1 on failure but relied on the implicit process exit code on success, which a stale $LASTEXITCODE from an earlier native call (e.g. codex --version) could turn into a false failure in CI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>