惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
Y
Y Combinator Blog
月光博客
月光博客
IT之家
IT之家
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
L
LangChain Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
博客园 - Franky
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
V
Visual Studio Blog
小众软件
小众软件
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(doctor): keep noninteractive service repair explicit ...
vincentkoc · 2026-05-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -57,6 +57,7 @@ Docs: https://docs.openclaw.ai

5757

- Setup/import: honor non-interactive `--import-from` onboarding flags by running the migration import path instead of silently completing normal setup without importing anything. Thanks @vincentkoc.

5858

- Discord/voice: run voice-channel turns under a voice-output policy that hides the agent `tts` tool and asks for spoken reply text, so `/vc join` sessions synthesize and play agent replies instead of ending with `NO_REPLY`. Fixes #61536. Thanks @aounakram.

5959

- Doctor/plugins: keep plain `doctor --non-interactive` from installing bundled plugin runtime dependencies, so headless health checks report missing deps while `doctor --fix` remains the explicit repair path. Thanks @vincentkoc.

60+

- Doctor/gateway: require an interactive confirmation before installing or rewriting the Gateway service, so `doctor --fix --non-interactive` can repair plugin/config drift without replacing the operator's launchd/systemd service from a temporary environment. Thanks @vincentkoc.

6061

- Plugins/runtime-deps: include packaged OpenClaw identity in bundled plugin loader cache keys, so same-path package upgrades stop reusing stale versioned runtime-deps mirrors. Fixes #75045. Thanks @sahilsatralkar.

6162

- Plugin SDK: restore reply-prefix and reply-pipeline helpers on the deprecated root/compat SDK surface so external plugins still using `openclaw/plugin-sdk` do not fail message dispatch after update. Fixes #75171. Thanks @zhangxiliang.

6263

- Plugins/runtime-deps: prune inactive same-package versioned runtime-deps roots after bundled dependency repair, so upgrades do not leave old `openclaw-<version>-<hash>` package caches behind after doctor runs. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -185,6 +185,10 @@ describe("maybeRepairGatewayDaemon", () => {

185185
186186

async function runNonInteractiveUpdateRepair() {

187187

process.env.OPENCLAW_UPDATE_IN_PROGRESS = "1";

188+

await runNonInteractiveRepair();

189+

}

190+
191+

async function runNonInteractiveRepair() {

188192

const runtime = { log: vi.fn(), error: vi.fn(), exit: vi.fn() };

189193

await maybeRepairGatewayDaemon({

190194

cfg: { gateway: {} },

@@ -256,6 +260,20 @@ describe("maybeRepairGatewayDaemon", () => {

256260

expect(service.restart).not.toHaveBeenCalled();

257261

});

258262
263+

it("skips gateway install during non-interactive doctor repairs", async () => {

264+

setPlatform("linux");

265+

service.isLoaded.mockResolvedValue(false);

266+
267+

await runNonInteractiveRepair();

268+
269+

expect(service.install).not.toHaveBeenCalled();

270+

expect(service.restart).not.toHaveBeenCalled();

271+

expect(note).toHaveBeenCalledWith(

272+

expect.stringContaining("openclaw gateway install"),

273+

"Gateway",

274+

);

275+

});

276+
259277

it("skips gateway restart during non-interactive update repairs", async () => {

260278

setPlatform("linux");

261279
Original file line numberDiff line numberDiff line change

@@ -199,9 +199,16 @@ export async function maybeRepairGatewayDaemon(params: {

199199

{

200200

message: "Install gateway service now?",

201201

initialValue: true,

202+

requiresInteractiveConfirmation: true,

202203

},

203204

serviceRepairPolicy,

204205

);

206+

if (!install) {

207+

note(

208+

`Run ${formatCliCommand("openclaw gateway install")} when you want to install the gateway service.`,

209+

"Gateway",

210+

);

211+

}

205212

if (install) {

206213

const daemonRuntime = await params.prompter.select<GatewayDaemonRuntime>(

207214

{

Original file line numberDiff line numberDiff line change

@@ -664,7 +664,7 @@ describe("maybeRepairGatewayServiceConfig", () => {

664664

expect(mocks.stage).not.toHaveBeenCalled();

665665

});

666666
667-

it("repairs entrypoint mismatch in non-interactive fix mode", async () => {

667+

it("skips entrypoint rewrite in non-interactive fix mode", async () => {

668668

setupGatewayEntrypointRepairScenario({

669669

currentEntrypoint: "/Users/test/Library/npm/node_modules/openclaw/dist/entry.js",

670670

installEntrypoint: "/Users/test/Library/npm/node_modules/openclaw/dist/index.js",

@@ -680,8 +680,12 @@ describe("maybeRepairGatewayServiceConfig", () => {

680680

expect.stringContaining("Gateway service entrypoint does not match the current install."),

681681

"Gateway service config",

682682

);

683+

expect(mocks.note).toHaveBeenCalledWith(

684+

expect.stringContaining("openclaw gateway install --force"),

685+

"Gateway service config",

686+

);

683687

expect(mocks.stage).not.toHaveBeenCalled();

684-

expect(mocks.install).toHaveBeenCalledTimes(1);

688+

expect(mocks.install).not.toHaveBeenCalled();

685689

});

686690
687691

it("stages service config repairs during non-interactive update repairs", async () => {

Original file line numberDiff line numberDiff line change

@@ -509,19 +509,32 @@ export async function maybeRepairGatewayServiceConfig(

509509

return;

510510

}

511511
512-

const repair = needsAggressive

513-

? await prompter.confirmAggressiveAutoFix({

514-

message: "Overwrite gateway service config with current defaults now?",

515-

initialValue: prompter.shouldForce,

516-

})

517-

: await prompter.confirmAutoFix({

518-

message: "Update gateway service config to the recommended defaults now?",

519-

initialValue: true,

512+

const updateRepairMode = isDoctorUpdateRepairMode(prompter.repairMode);

513+

const repairMessage = needsAggressive

514+

? "Overwrite gateway service config with current defaults now?"

515+

: "Update gateway service config to the recommended defaults now?";

516+

const repair = updateRepairMode

517+

? needsAggressive

518+

? await prompter.confirmAggressiveAutoFix({

519+

message: repairMessage,

520+

initialValue: prompter.shouldForce,

521+

})

522+

: await prompter.confirmAutoFix({

523+

message: repairMessage,

524+

initialValue: true,

525+

})

526+

: await prompter.confirmRuntimeRepair({

527+

message: repairMessage,

528+

initialValue: needsAggressive ? prompter.shouldForce : true,

529+

requiresInteractiveConfirmation: true,

520530

});

521531

if (!repair) {

532+

note(

533+

"Run `openclaw gateway install --force` when you want to replace the gateway service definition.",

534+

"Gateway service config",

535+

);

522536

return;

523537

}

524-

const updateRepairMode = isDoctorUpdateRepairMode(prompter.repairMode);

525538

const serviceEmbeddedToken = readEmbeddedGatewayToken(command);

526539

const gatewayTokenForRepair = expectedGatewayToken ?? serviceEmbeddedToken;

527540

const configuredGatewayToken =