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

推荐订阅源

D
DataBreaches.Net
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
博客园 - 聂微东
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog RSS Feed
小众软件
小众软件
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
B
Blog
H
Help Net Security
D
Docker
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
月光博客
月光博客
博客园 - 司徒正美

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(update): keep plugin repair fetch failures nonblockin...
steipete · 2026-06-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -301,31 +301,35 @@ describe("runPostCorePluginConvergence", () => {

301301

]);

302302

});

303303
304-

it("marks convergence errored when repair reports failed plugin ids", async () => {

304+

it("keeps failed configured-plugin repair fetches nonblocking", async () => {

305305

mocks.repairMissingConfiguredPluginInstalls.mockResolvedValue({

306306

changes: [],

307307

warnings: [

308-

'Failed to install missing configured plugin "discord" from @openclaw/discord: ENETUNREACH.',

308+

'Failed to install missing configured plugin "matrix" from clawhub:@openclaw/matrix@beta: ClawHub ClawPack download for @openclaw/matrix@2026.6.1-beta.1 body stalled after 30000ms.',

309309

],

310-

failedPluginIds: ["discord"],

310+

failedPluginIds: ["matrix"],

311311

records: {},

312312

});

313313

const result = await runPostCorePluginConvergence({

314314

cfg: {

315-

plugins: { entries: { discord: { enabled: true } } },

315+

plugins: { entries: { matrix: { enabled: true } } },

316316

} as unknown as OpenClawConfig,

317317

env: {},

318318

});

319-

expect(result.errored).toBe(true);

319+

expect(result.errored).toBe(false);

320320

expect(result.warnings).toStrictEqual([

321321

{

322322

reason:

323-

'Failed to install missing configured plugin "discord" from @openclaw/discord: ENETUNREACH.',

323+

'Failed to install missing configured plugin "matrix" from clawhub:@openclaw/matrix@beta: ClawHub ClawPack download for @openclaw/matrix@2026.6.1-beta.1 body stalled after 30000ms.',

324324

message:

325-

'Failed to install missing configured plugin "discord" from @openclaw/discord: ENETUNREACH.',

325+

'Failed to install missing configured plugin "matrix" from clawhub:@openclaw/matrix@beta: ClawHub ClawPack download for @openclaw/matrix@2026.6.1-beta.1 body stalled after 30000ms.',

326326

guidance: ["Run `openclaw doctor --fix` to retry plugin repair."],

327327

},

328328

]);

329+

expect(mocks.runPluginPayloadSmokeCheck).toHaveBeenCalledWith({

330+

records: {},

331+

env: expect.any(Object),

332+

});

329333

});

330334
331335

it("keeps inactive repair failures nonblocking", async () => {

Original file line numberDiff line numberDiff line change

@@ -46,35 +46,6 @@ const REPAIR_GUIDANCE = "Run `openclaw doctor --fix` to retry plugin repair.";

4646

const inspectGuidance = (pluginId: string) =>

4747

`Run \`openclaw plugins inspect ${pluginId} --runtime --json\` for details.`;

4848
49-

function isBlockingRepairFailure(params: {

50-

cfg: OpenClawConfig;

51-

pluginId: string;

52-

records: Record<string, PluginInstallRecord>;

53-

smokeRecords: Record<string, PluginInstallRecord>;

54-

}): boolean {

55-

if (Object.hasOwn(params.smokeRecords, params.pluginId)) {

56-

return true;

57-

}

58-

const normalizedPluginConfig = normalizePluginsConfig(params.cfg.plugins);

59-

const enableState = resolveEffectiveEnableState({

60-

id: params.pluginId,

61-

origin: "global",

62-

config: normalizedPluginConfig,

63-

rootConfig: params.cfg,

64-

});

65-

if (enableState.enabled) {

66-

return true;

67-

}

68-

const record = params.records[params.pluginId];

69-

if (!record) {

70-

return false;

71-

}

72-

return Boolean(

73-

resolveTrustedSourceLinkedOfficialNpmSpec({ pluginId: params.pluginId, record }) ||

74-

resolveTrustedSourceLinkedOfficialClawHubSpec({ pluginId: params.pluginId, record }),

75-

);

76-

}

77-
7849

async function repairManagedNpmOpenClawPeerLinks(params: {

7950

env: NodeJS.ProcessEnv;

8051

}): Promise<{ changes: string[]; warnings: PostCoreConvergenceWarning[] }> {

@@ -114,8 +85,10 @@ async function repairManagedNpmOpenClawPeerLinks(params: {

11485

/**

11586

* Mandatory post-core convergence pass. Runs AFTER the core package files

11687

* are swapped and the in-update doctor pass has already returned, but BEFORE

117-

* the gateway is restarted. Failures here must block the restart so we

118-

* never restart with a configured plugin whose payload is unloadable.

88+

* the gateway is restarted. Missing-plugin repair failures stay nonblocking:

89+

* an external package fetch may be transient, and failing the core update

90+

* would strand the user. Payload smoke failures still block the restart so we

91+

* never restart with an installed active plugin whose payload is unloadable.

11992

*/

12093

export async function runPostCorePluginConvergence(params: {

12194

cfg: OpenClawConfig;

@@ -165,14 +138,6 @@ export async function runPostCorePluginConvergence(params: {

165138

// configured plugin whose payload was deleted on disk would block the

166139

// entire update — even though the gateway will never load that plugin.

167140

const smokeRecords = filterRecordsToActive({ cfg: params.cfg, records });

168-

const blockingFailedPluginIds = (repair.failedPluginIds ?? []).filter((pluginId) =>

169-

isBlockingRepairFailure({

170-

cfg: params.cfg,

171-

pluginId,

172-

records,

173-

smokeRecords,

174-

}),

175-

);

176141

const smoke = await runPluginPayloadSmokeCheck({ records: smokeRecords, env });

177142

for (const failure of smoke.failures) {

178143

warnings.push({

@@ -192,7 +157,7 @@ export async function runPostCorePluginConvergence(params: {

192157

...peerLinkRepair.changes,

193158

],

194159

warnings,

195-

errored: blockingFailedPluginIds.length > 0 || smoke.failures.length > 0,

160+

errored: smoke.failures.length > 0,

196161

smokeFailures: smoke.failures,

197162

installRecords: records,

198163

};