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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Vercel News
Vercel News
F
Fortinet All Blogs
月光博客
月光博客
G
Google Developers Blog
博客园 - Franky
GbyAI
GbyAI
The Cloudflare Blog
I
InfoQ
雷峰网
雷峰网
WordPress大学
WordPress大学
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
小众软件
小众软件
腾讯CDC
B
Blog
量子位
V
V2EX
S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News

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(cli): route plugin packaging recovery hints · opencla...
brokemac79 · 2026-05-26 · via Recent Commits to openclaw:main

@@ -19,6 +19,14 @@ const invalidConfigRecoveryHint = [

1919

'Run "openclaw doctor --fix" to repair, then retry.',

2020

"If startup is still blocked, inspect the adjacent .bak backup before restoring it manually.",

2121

].join("\n");

22+

const pluginPackagingRecoveryHints = [

23+

"This is a plugin packaging issue, not a local config problem.",

24+

"Update or reinstall the plugin after the publisher ships compiled JavaScript, or disable/uninstall the plugin until then.",

25+

];

26+

const pluginPackagingHintItems = pluginPackagingRecoveryHints.map((text) => ({

27+

kind: "generic",

28+

text,

29+

}));

22302331

function expectLatestRuntimeJson(payload: unknown) {

2432

const calls = defaultRuntime.writeJson.mock.calls;

@@ -47,6 +55,8 @@ function setConfigSnapshot(params: {

4755

exists: boolean;

4856

valid: boolean;

4957

issues?: Array<{ path: string; message: string }>;

58+

warnings?: Array<{ path: string; message: string }>;

59+

legacyIssues?: Array<{ path: string; message: string }>;

5060

lastTouchedVersion?: string;

5161

}) {

5262

const config = params.lastTouchedVersion

@@ -58,6 +68,28 @@ function setConfigSnapshot(params: {

5868

config,

5969

sourceConfig: config,

6070

issues: params.issues ?? [],

71+

warnings: params.warnings ?? [],

72+

legacyIssues: params.legacyIssues ?? [],

73+

});

74+

}

75+76+

function setPluginPackagingInvalidSnapshot() {

77+

setConfigSnapshot({

78+

exists: true,

79+

valid: false,

80+

issues: [

81+

{

82+

path: "plugins.slots.memory",

83+

message: "plugin not found: source-only-pack",

84+

},

85+

],

86+

warnings: [

87+

{

88+

path: "plugins",

89+

message:

90+

"plugin source-only-pack: installed plugin package requires compiled runtime output for TypeScript entry index.ts: expected ./dist/index.js. This is a plugin packaging issue, not a local config problem.",

91+

},

92+

],

6193

});

6294

}

6395

@@ -107,6 +139,22 @@ describe("runServiceRestart config pre-flight (#35862)", () => {

107139

});

108140

});

109141142+

it("points restart at plugin packaging recovery for packaging-only invalid config", async () => {

143+

setPluginPackagingInvalidSnapshot();

144+145+

await expect(runServiceRestart(createServiceRunArgs())).rejects.toThrow("__exit__:1");

146+147+

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

148+

expectLatestRuntimeJson({

149+

action: "restart",

150+

ok: false,

151+

error: "Gateway restart blocked: plugins.slots.memory: plugin not found: source-only-pack",

152+

hints: pluginPackagingRecoveryHints,

153+

hintItems: pluginPackagingHintItems,

154+

warnings: undefined,

155+

});

156+

});

157+110158

it("blocks restart from an older binary when config was written by a newer one", async () => {

111159

setConfigSnapshot({ exists: true, valid: true, lastTouchedVersion: "9999.1.1" });

112160

@@ -185,6 +233,22 @@ describe("runServiceStart config pre-flight (#35862)", () => {

185233

});

186234

});

187235236+

it("points start at plugin packaging recovery for packaging-only invalid config", async () => {

237+

setPluginPackagingInvalidSnapshot();

238+239+

await expect(runServiceStart(createServiceRunArgs())).rejects.toThrow("__exit__:1");

240+241+

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

242+

expectLatestRuntimeJson({

243+

action: "start",

244+

ok: false,

245+

error: "Gateway start blocked: plugins.slots.memory: plugin not found: source-only-pack",

246+

hints: pluginPackagingRecoveryHints,

247+

hintItems: pluginPackagingHintItems,

248+

warnings: undefined,

249+

});

250+

});

251+188252

it("aborts before not-loaded start recovery when config is invalid", async () => {

189253

const onNotLoaded = vi.fn(async () => ({

190254

result: "started" as const,