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

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
Last Week in AI
Last Week in AI
罗磊的独立博客
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
博客园_首页
人人都是产品经理
人人都是产品经理
量子位
美团技术团队
The Cloudflare Blog
小众软件
小众软件
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net
博客园 - Franky

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): skip package no-op installs · openclaw/openc...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -1055,6 +1055,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

10551055

let downgradeRisk = false;

10561056

let fallbackToLatest = false;

10571057

let packageInstallSpec: string | null = null;

1058+

let packageAlreadyCurrent = false;

1058105910591060

if (updateInstallKind !== "git") {

10601061

currentVersion = switchToPackage ? null : await readPackageVersion(root);

@@ -1069,6 +1070,13 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

10691070

}

10701071

const cmp =

10711072

currentVersion && targetVersion ? compareSemverStrings(currentVersion, targetVersion) : null;

1073+

packageAlreadyCurrent =

1074+

updateInstallKind === "package" &&

1075+

!switchToPackage &&

1076+

currentVersion != null &&

1077+

targetVersion != null &&

1078+

currentVersion === targetVersion &&

1079+

(requestedChannel === null || requestedChannel === storedChannel);

10721080

downgradeRisk =

10731081

canResolveRegistryVersionForPackageTarget(tag) &&

10741082

!fallbackToLatest &&

@@ -1103,16 +1111,20 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

11031111

actions.push(`Switch install mode from git to package manager (${mode})`);

11041112

} else if (updateInstallKind === "git") {

11051113

actions.push(`Run git update flow on channel ${channel} (fetch/rebase/build/doctor)`);

1114+

} else if (packageAlreadyCurrent) {

1115+

actions.push(`Skip package update; current version already matches ${targetVersion}`);

11061116

} else {

11071117

actions.push(`Run global package manager update with spec ${packageInstallSpec ?? tag}`);

11081118

}

1109-

actions.push("Run plugin update sync after core update");

1110-

actions.push("Refresh shell completion cache (if needed)");

1111-

actions.push(

1112-

shouldRestart

1113-

? "Restart gateway service and run doctor checks"

1114-

: "Skip restart (because --no-restart is set)",

1115-

);

1119+

if (!packageAlreadyCurrent) {

1120+

actions.push("Run plugin update sync after core update");

1121+

actions.push("Refresh shell completion cache (if needed)");

1122+

actions.push(

1123+

shouldRestart

1124+

? "Restart gateway service and run doctor checks"

1125+

: "Skip restart (because --no-restart is set)",

1126+

);

1127+

}

1116112811171129

const notes: string[] = [];

11181130

if (opts.tag && updateInstallKind === "git") {

@@ -1183,6 +1195,25 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

11831195

);

11841196

}

118511971198+

if (packageAlreadyCurrent) {

1199+

const mode = isPackageManagerUpdateMode(updateStatus.packageManager)

1200+

? updateStatus.packageManager

1201+

: "unknown";

1202+

const result: UpdateRunResult = {

1203+

status: "skipped",

1204+

mode,

1205+

root,

1206+

reason: "already-current",

1207+

before: { version: currentVersion },

1208+

after: { version: currentVersion },

1209+

steps: [],

1210+

durationMs: 0,

1211+

};

1212+

printResult(result, opts);

1213+

defaultRuntime.exit(0);

1214+

return;

1215+

}

1216+11861217

if (updateInstallKind === "package") {

11871218

const runtimePreflightError = await resolvePackageRuntimePreflightError({

11881219

tag,