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

推荐订阅源

N
Netflix TechBlog - Medium
罗磊的独立博客
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
博客园 - Franky
F
Fortinet All Blogs
D
Docker
博客园 - 司徒正美
腾讯CDC
Recent Announcements
Recent Announcements
The Cloudflare Blog
B
Blog RSS Feed
GbyAI
GbyAI
T
Tailwind CSS Blog
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志

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
test(package): expand upgrade survivor baselines · opencl...
vincentkoc · 2026-05-01 · via Recent Commits to openclaw:main

@@ -35,6 +35,28 @@ function readConfigSection(fileName) {

3535

return JSON.stringify(JSON.parse(fs.readFileSync(fileUrl, "utf8")));

3636

}

373738+

function parseReleaseVersion(version) {

39+

const match = /^([0-9]{4})\.([0-9]+)\.([0-9]+)/u.exec(String(version ?? ""));

40+

if (!match) {

41+

return null;

42+

}

43+

return match.slice(1).map((part) => Number.parseInt(part, 10));

44+

}

45+46+

function isReleaseBefore(version, minimum) {

47+

const parsed = parseReleaseVersion(version);

48+

const minimumParsed = parseReleaseVersion(minimum);

49+

if (!parsed || !minimumParsed) {

50+

return false;

51+

}

52+

for (let index = 0; index < parsed.length; index += 1) {

53+

if (parsed[index] !== minimumParsed[index]) {

54+

return parsed[index] < minimumParsed[index];

55+

}

56+

}

57+

return false;

58+

}

59+3860

function configSetJsonFile(id, intent, configPath, fileName) {

3961

return {

4062

id,

@@ -112,6 +134,45 @@ function selectedScenario() {

112134

return process.env.OPENCLAW_UPGRADE_SURVIVOR_SCENARIO || "base";

113135

}

114136137+

function adaptStepForBaseline(step, baselineVersion, summary) {

138+

if (!isReleaseBefore(baselineVersion, "2026.4.0")) {

139+

return step;

140+

}

141+

if (step.id === "plugins-feishu" || step.id === "channels-feishu") {

142+

if (!summary.skippedIntents.includes("feishu-channel")) {

143+

summary.skippedIntents.push("feishu-channel");

144+

}

145+

return null;

146+

}

147+

if (step.id === "agents") {

148+

const agents = JSON.parse(step.argv[3]);

149+

delete agents.defaults?.skills;

150+

for (const agent of agents.list ?? []) {

151+

delete agent.thinkingDefault;

152+

delete agent.fastModeDefault;

153+

delete agent.skills;

154+

}

155+

summary.skippedIntents.push("agent-modern-preferences");

156+

return {

157+

...step,

158+

argv: [...step.argv.slice(0, 3), JSON.stringify(agents), ...step.argv.slice(4)],

159+

};

160+

}

161+

if (step.intent === "plugins") {

162+

const plugins = JSON.parse(step.argv[3]);

163+

plugins.allow = (plugins.allow ?? []).filter((id) => id !== "memory");

164+

delete plugins.entries?.memory;

165+

if (!summary.skippedIntents.includes("memory-plugin-allow")) {

166+

summary.skippedIntents.push("memory-plugin-allow");

167+

}

168+

return {

169+

...step,

170+

argv: [...step.argv.slice(0, 3), JSON.stringify(plugins), ...step.argv.slice(4)],

171+

};

172+

}

173+

return step;

174+

}

175+115176

function runOpenClaw(step) {

116177

const result = spawnSync("openclaw", step.argv, {

117178

encoding: "utf8",

@@ -156,7 +217,11 @@ function applyRecipe() {

156217

};

157218158219

for (const step of [...recipe.slice(0, -1), ...scenarioSteps, recipe.at(-1)]) {

159-

const outcome = runOpenClaw(step);

220+

const adaptedStep = adaptStepForBaseline(step, baselineVersion, summary);

221+

if (!adaptedStep) {

222+

continue;

223+

}

224+

const outcome = runOpenClaw(adaptedStep);

160225

summary.steps.push(outcome);

161226

writeJson(summaryPath, summary);

162227

if (!outcome.ok) {