You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(doctor): host TLS repair runs under --no-interactive
The step delegates to hack global trust, which is itself
non-interactive-safe (sudo preflight; keychain-only skip; host trust
env always written) — classifying the whole repair as destructive
denied non-interactive runs the safe env/bundle writes. From PR
review.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/commands/doctor.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3138,11 +3138,13 @@ async function maybeRepairMacHostTlsTrust(): Promise<void> {
3138
3138
}
3139
3139
3140
3140
note(hostTlsTrust.message,"doctor");
3141
+
// Not classified destructive: `hack global trust` is itself
3142
+
// non-interactive-safe — it preflights sudo and skips only the System
3143
+
// keychain step, while the safe host trust env/bundle writes always run.
3141
3144
constokRepair=awaitdoctorConfirm({
3142
3145
message:
3143
-
"Repair macOS host TLS trust now? (Bun/Node/curl/git trust for https://*.hack; may prompt for sudo to update the System keychain)",
3146
+
"Repair macOS host TLS trust now? (Bun/Node/curl/git trust for https://*.hack; the sudo System-keychain step is skipped automatically when it would prompt)",
0 commit comments