From c46dfc84114b954bfcf9b2c8f73e58741437bb33 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 16 Jan 2026 19:28:48 +0000 Subject: [PATCH] chore: oxfmt doctor platform notes --- src/commands/doctor-platform-notes.ts | 7 +++++-- src/commands/doctor.ts | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/commands/doctor-platform-notes.ts b/src/commands/doctor-platform-notes.ts index 15bfa8b4c0..1fdcada1ac 100644 --- a/src/commands/doctor-platform-notes.ts +++ b/src/commands/doctor-platform-notes.ts @@ -38,7 +38,8 @@ async function launchctlGetenv(name: string): Promise { } function hasConfigGatewayCreds(cfg: ClawdbotConfig): boolean { - const localToken = typeof cfg.gateway?.auth?.token === "string" ? cfg.gateway?.auth?.token.trim() : ""; + const localToken = + typeof cfg.gateway?.auth?.token === "string" ? cfg.gateway?.auth?.token.trim() : ""; const localPassword = typeof cfg.gateway?.auth?.password === "string" ? cfg.gateway?.auth?.password.trim() : ""; const remoteToken = @@ -59,7 +60,9 @@ export async function noteMacLaunchctlGatewayEnvOverrides(cfg: ClawdbotConfig) { const lines = [ "- launchctl environment overrides detected (can cause confusing unauthorized errors).", envToken ? "- `CLAWDBOT_GATEWAY_TOKEN` is set; it overrides config tokens." : undefined, - envPassword ? "- `CLAWDBOT_GATEWAY_PASSWORD` is set; it overrides config passwords." : undefined, + envPassword + ? "- `CLAWDBOT_GATEWAY_PASSWORD` is set; it overrides config passwords." + : undefined, "- Clear overrides and restart the app/gateway:", envToken ? " launchctl unsetenv CLAWDBOT_GATEWAY_TOKEN" : undefined, envPassword ? " launchctl unsetenv CLAWDBOT_GATEWAY_PASSWORD" : undefined, diff --git a/src/commands/doctor.ts b/src/commands/doctor.ts index aaff51815d..b6a49229b1 100644 --- a/src/commands/doctor.ts +++ b/src/commands/doctor.ts @@ -26,7 +26,10 @@ import { maybeScanExtraGatewayServices, } from "./doctor-gateway-services.js"; import { noteSourceInstallIssues } from "./doctor-install.js"; -import { noteMacLaunchAgentOverrides, noteMacLaunchctlGatewayEnvOverrides } from "./doctor-platform-notes.js"; +import { + noteMacLaunchAgentOverrides, + noteMacLaunchctlGatewayEnvOverrides, +} from "./doctor-platform-notes.js"; import { createDoctorPrompter, type DoctorOptions } from "./doctor-prompter.js"; import { maybeRepairSandboxImages, noteSandboxScopeWarnings } from "./doctor-sandbox.js"; import { noteSecurityWarnings } from "./doctor-security.js";