doctor: integrate shell completion check into doctor command
- Import and call `doctorShellCompletion` during doctor run - Checks/fixes completion issues before gateway health checkmain
parent
3fae903863
commit
5bd63b012c
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue