From 5bd63b012c9c617edbcb9c5e5ab62a5e690661c9 Mon Sep 17 00:00:00 2001 From: Shakker Date: Wed, 4 Feb 2026 15:37:45 +0000 Subject: [PATCH] doctor: integrate shell completion check into doctor command - Import and call `doctorShellCompletion` during doctor run - Checks/fixes completion issues before gateway health check --- src/commands/doctor.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/doctor.ts b/src/commands/doctor.ts index bee6db021..4143d1186 100644 --- a/src/commands/doctor.ts +++ b/src/commands/doctor.ts @@ -26,6 +26,7 @@ import { maybeRepairAnthropicOAuthProfileId, noteAuthProfileHealth, } from "./doctor-auth.js"; +import { doctorShellCompletion } from "./doctor-completion.js"; import { loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow.js"; import { maybeRepairGatewayDaemon } from "./doctor-gateway-daemon-flow.js"; import { checkGatewayHealth } from "./doctor-gateway-health.js"; @@ -259,6 +260,11 @@ export async function doctorCommand( noteWorkspaceStatus(cfg); + // Check and fix shell completion + await doctorShellCompletion(runtime, prompter, { + nonInteractive: options.nonInteractive, + }); + const { healthOk } = await checkGatewayHealth({ runtime, cfg,