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

推荐订阅源

Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
V
Visual Studio Blog
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
IT之家
IT之家
Vercel News
Vercel News
C
Check Point Blog
Google DeepMind News
Google DeepMind News
月光博客
月光博客
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog

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(plugins): follow beta channel for plugin updates · op...
steipete · 2026-05-03 · via Recent Commits to openclaw:main

@@ -170,13 +170,14 @@ function createClawHubInstallConfig(params: {

170170

clawhubPackage: string;

171171

clawhubFamily: "bundle-plugin" | "code-plugin";

172172

clawhubChannel: "community" | "official" | "private";

173+

spec?: string;

173174

}): OpenClawConfig {

174175

return {

175176

plugins: {

176177

installs: {

177178

[params.pluginId]: {

178179

source: "clawhub" as const,

179-

spec: `clawhub:${params.clawhubPackage}`,

180+

spec: params.spec ?? `clawhub:${params.clawhubPackage}`,

180181

installPath: params.installPath,

181182

clawhubUrl: params.clawhubUrl,

182183

clawhubPackage: params.clawhubPackage,

@@ -1029,6 +1030,115 @@ describe("updateNpmInstalledPlugins", () => {

10291030

},

10301031

);

103110321033+

it("tries npm beta for default npm specs on beta channel without persisting the beta tag", async () => {

1034+

installPluginFromNpmSpecMock.mockResolvedValue(

1035+

createSuccessfulNpmUpdateResult({

1036+

pluginId: "openclaw-codex-app-server",

1037+

targetDir: "/tmp/openclaw-codex-app-server",

1038+

version: "0.2.0-beta.4",

1039+

npmResolution: {

1040+

name: "openclaw-codex-app-server",

1041+

version: "0.2.0-beta.4",

1042+

resolvedSpec: "openclaw-codex-app-server@0.2.0-beta.4",

1043+

},

1044+

}),

1045+

);

1046+1047+

const result = await updateNpmInstalledPlugins({

1048+

config: createCodexAppServerInstallConfig({

1049+

spec: "openclaw-codex-app-server",

1050+

}),

1051+

pluginIds: ["openclaw-codex-app-server"],

1052+

updateChannel: "beta",

1053+

});

1054+1055+

expectNpmUpdateCall({

1056+

spec: "openclaw-codex-app-server@beta",

1057+

expectedPluginId: "openclaw-codex-app-server",

1058+

});

1059+

expectCodexAppServerInstallState({

1060+

result,

1061+

spec: "openclaw-codex-app-server",

1062+

version: "0.2.0-beta.4",

1063+

resolvedSpec: "openclaw-codex-app-server@0.2.0-beta.4",

1064+

});

1065+

});

1066+1067+

it("falls back to the default npm spec when a beta tag is unavailable", async () => {

1068+

installPluginFromNpmSpecMock

1069+

.mockResolvedValueOnce({

1070+

ok: false,

1071+

error:

1072+

"npm ERR! code ETARGET\nnpm ERR! No matching version found for openclaw-codex-app-server@beta.",

1073+

})

1074+

.mockResolvedValueOnce(

1075+

createSuccessfulNpmUpdateResult({

1076+

pluginId: "openclaw-codex-app-server",

1077+

targetDir: "/tmp/openclaw-codex-app-server",

1078+

version: "0.2.6",

1079+

npmResolution: {

1080+

name: "openclaw-codex-app-server",

1081+

version: "0.2.6",

1082+

resolvedSpec: "openclaw-codex-app-server@0.2.6",

1083+

},

1084+

}),

1085+

);

1086+1087+

const warnMessages: string[] = [];

1088+

const result = await updateNpmInstalledPlugins({

1089+

config: createCodexAppServerInstallConfig({

1090+

spec: "openclaw-codex-app-server",

1091+

}),

1092+

pluginIds: ["openclaw-codex-app-server"],

1093+

updateChannel: "beta",

1094+

logger: { warn: (msg) => warnMessages.push(msg) },

1095+

});

1096+1097+

expect(installPluginFromNpmSpecMock).toHaveBeenNthCalledWith(

1098+

1,

1099+

expect.objectContaining({

1100+

spec: "openclaw-codex-app-server@beta",

1101+

}),

1102+

);

1103+

expect(installPluginFromNpmSpecMock).toHaveBeenNthCalledWith(

1104+

2,

1105+

expect.objectContaining({

1106+

spec: "openclaw-codex-app-server",

1107+

}),

1108+

);

1109+

expect(warnMessages).toEqual([expect.stringContaining("has no beta npm release")]);

1110+

expectCodexAppServerInstallState({

1111+

result,

1112+

spec: "openclaw-codex-app-server",

1113+

version: "0.2.6",

1114+

resolvedSpec: "openclaw-codex-app-server@0.2.6",

1115+

});

1116+

});

1117+1118+

it("preserves explicit npm tags when updating on the beta channel", async () => {

1119+

installPluginFromNpmSpecMock.mockResolvedValue(

1120+

createSuccessfulNpmUpdateResult({

1121+

pluginId: "openclaw-codex-app-server",

1122+

targetDir: "/tmp/openclaw-codex-app-server",

1123+

version: "0.2.0-rc.1",

1124+

}),

1125+

);

1126+1127+

await updateNpmInstalledPlugins({

1128+

config: createCodexAppServerInstallConfig({

1129+

spec: "openclaw-codex-app-server@rc",

1130+

}),

1131+

pluginIds: ["openclaw-codex-app-server"],

1132+

updateChannel: "beta",

1133+

dryRun: true,

1134+

});

1135+1136+

expectNpmUpdateCall({

1137+

spec: "openclaw-codex-app-server@rc",

1138+

expectedPluginId: "openclaw-codex-app-server",

1139+

});

1140+

});

1141+10321142

it("updates ClawHub-installed plugins via recorded package metadata", async () => {

10331143

installPluginFromClawHubMock.mockResolvedValue({

10341144

ok: true,

@@ -1098,6 +1208,130 @@ describe("updateNpmInstalledPlugins", () => {

10981208

});

10991209

});

110012101211+

it("tries ClawHub beta for default ClawHub specs on beta channel without persisting the beta tag", async () => {

1212+

installPluginFromClawHubMock.mockResolvedValue(

1213+

createSuccessfulClawHubUpdateResult({

1214+

pluginId: "demo",

1215+

targetDir: "/tmp/demo",

1216+

version: "1.3.0-beta.1",

1217+

clawhubPackage: "demo",

1218+

}),

1219+

);

1220+1221+

const result = await updateNpmInstalledPlugins({

1222+

config: createClawHubInstallConfig({

1223+

pluginId: "demo",

1224+

installPath: "/tmp/demo",

1225+

clawhubUrl: "https://clawhub.ai",

1226+

clawhubPackage: "demo",

1227+

clawhubFamily: "code-plugin",

1228+

clawhubChannel: "official",

1229+

}),

1230+

pluginIds: ["demo"],

1231+

updateChannel: "beta",

1232+

});

1233+1234+

expect(installPluginFromClawHubMock).toHaveBeenCalledWith(

1235+

expect.objectContaining({

1236+

spec: "clawhub:demo@beta",

1237+

baseUrl: "https://clawhub.ai",

1238+

expectedPluginId: "demo",

1239+

}),

1240+

);

1241+

expect(result.config.plugins?.installs?.demo).toMatchObject({

1242+

source: "clawhub",

1243+

spec: "clawhub:demo",

1244+

installPath: "/tmp/demo",

1245+

version: "1.3.0-beta.1",

1246+

clawhubPackage: "demo",

1247+

});

1248+

});

1249+1250+

it("falls back to the default ClawHub spec when a beta release is unavailable", async () => {

1251+

installPluginFromClawHubMock

1252+

.mockResolvedValueOnce({

1253+

ok: false,

1254+

code: "version_not_found",

1255+

error: "version not found: beta",

1256+

})

1257+

.mockResolvedValueOnce(

1258+

createSuccessfulClawHubUpdateResult({

1259+

pluginId: "demo",

1260+

targetDir: "/tmp/demo",

1261+

version: "1.2.4",

1262+

clawhubPackage: "demo",

1263+

}),

1264+

);

1265+1266+

const warnMessages: string[] = [];

1267+

const result = await updateNpmInstalledPlugins({

1268+

config: createClawHubInstallConfig({

1269+

pluginId: "demo",

1270+

installPath: "/tmp/demo",

1271+

clawhubUrl: "https://clawhub.ai",

1272+

clawhubPackage: "demo",

1273+

clawhubFamily: "code-plugin",

1274+

clawhubChannel: "official",

1275+

}),

1276+

pluginIds: ["demo"],

1277+

updateChannel: "beta",

1278+

logger: { warn: (msg) => warnMessages.push(msg) },

1279+

});

1280+1281+

expect(installPluginFromClawHubMock).toHaveBeenNthCalledWith(

1282+

1,

1283+

expect.objectContaining({

1284+

spec: "clawhub:demo@beta",

1285+

}),

1286+

);

1287+

expect(installPluginFromClawHubMock).toHaveBeenNthCalledWith(

1288+

2,

1289+

expect.objectContaining({

1290+

spec: "clawhub:demo",

1291+

}),

1292+

);

1293+

expect(warnMessages).toEqual([expect.stringContaining("has no beta ClawHub release")]);

1294+

expect(result.config.plugins?.installs?.demo).toMatchObject({

1295+

source: "clawhub",

1296+

spec: "clawhub:demo",

1297+

installPath: "/tmp/demo",

1298+

version: "1.2.4",

1299+

clawhubPackage: "demo",

1300+

});

1301+

});

1302+1303+

it("preserves explicit ClawHub tags when updating on the beta channel", async () => {

1304+

installPluginFromClawHubMock.mockResolvedValue(

1305+

createSuccessfulClawHubUpdateResult({

1306+

pluginId: "demo",

1307+

targetDir: "/tmp/demo",

1308+

version: "1.3.0-rc.1",

1309+

clawhubPackage: "demo",

1310+

}),

1311+

);

1312+1313+

await updateNpmInstalledPlugins({

1314+

config: createClawHubInstallConfig({

1315+

pluginId: "demo",

1316+

installPath: "/tmp/demo",

1317+

clawhubUrl: "https://clawhub.ai",

1318+

clawhubPackage: "demo",

1319+

clawhubFamily: "code-plugin",

1320+

clawhubChannel: "official",

1321+

spec: "clawhub:demo@rc",

1322+

}),

1323+

pluginIds: ["demo"],

1324+

updateChannel: "beta",

1325+

dryRun: true,

1326+

});

1327+1328+

expect(installPluginFromClawHubMock).toHaveBeenCalledWith(

1329+

expect.objectContaining({

1330+

spec: "clawhub:demo@rc",

1331+

}),

1332+

);

1333+

});

1334+11011335

it("skips ClawHub plugin update when bundled version is newer", async () => {

11021336

resolveBundledPluginSourcesMock.mockReturnValue(

11031337

new Map([