Skip to content

Commit edb593f

Browse files
committed
fix: make plugin verification restart guidance install-neutral
1 parent 75ef5ae commit edb593f

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { describe, expect, it } from "vitest";
2+
import { formatStartupPluginVerificationFailure } from "./doctor-config-preflight-plugin-verification.js";
3+
4+
describe("formatStartupPluginVerificationFailure", () => {
5+
it("uses install-neutral gateway restart guidance", () => {
6+
expect(
7+
formatStartupPluginVerificationFailure({
8+
kind: "plugin-verification",
9+
messages: ['Plugin "discord" has no install path.'],
10+
}),
11+
).toBe(
12+
[
13+
"OpenClaw plugin verification failed; refusing to report the gateway ready.",
14+
'- Plugin "discord" has no install path.',
15+
"Resolve the plugin verification errors above, then restart the gateway.",
16+
].join("\n"),
17+
);
18+
});
19+
});

‎src/commands/doctor-config-preflight-plugin-verification.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,6 @@ export function formatStartupPluginVerificationFailure(
221221
return [
222222
"OpenClaw plugin verification failed; refusing to report the gateway ready.",
223223
...diagnostic.messages.map((message) => `- ${message}`),
224-
"Resolve the plugin verification errors above, then restart the container.",
224+
"Resolve the plugin verification errors above, then restart the gateway.",
225225
].join("\n");
226226
}

0 commit comments

Comments
 (0)