mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 16:45:01 +00:00
doctor: integrate shell completion check into doctor command
- Import and call `doctorShellCompletion` during doctor run - Checks/fixes completion issues before gateway health check
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
|||||||
maybeRepairAnthropicOAuthProfileId,
|
maybeRepairAnthropicOAuthProfileId,
|
||||||
noteAuthProfileHealth,
|
noteAuthProfileHealth,
|
||||||
} from "./doctor-auth.js";
|
} from "./doctor-auth.js";
|
||||||
|
import { doctorShellCompletion } from "./doctor-completion.js";
|
||||||
import { loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow.js";
|
import { loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow.js";
|
||||||
import { maybeRepairGatewayDaemon } from "./doctor-gateway-daemon-flow.js";
|
import { maybeRepairGatewayDaemon } from "./doctor-gateway-daemon-flow.js";
|
||||||
import { checkGatewayHealth } from "./doctor-gateway-health.js";
|
import { checkGatewayHealth } from "./doctor-gateway-health.js";
|
||||||
@@ -259,6 +260,11 @@ export async function doctorCommand(
|
|||||||
|
|
||||||
noteWorkspaceStatus(cfg);
|
noteWorkspaceStatus(cfg);
|
||||||
|
|
||||||
|
// Check and fix shell completion
|
||||||
|
await doctorShellCompletion(runtime, prompter, {
|
||||||
|
nonInteractive: options.nonInteractive,
|
||||||
|
});
|
||||||
|
|
||||||
const { healthOk } = await checkGatewayHealth({
|
const { healthOk } = await checkGatewayHealth({
|
||||||
runtime,
|
runtime,
|
||||||
cfg,
|
cfg,
|
||||||
|
|||||||
Reference in New Issue
Block a user