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

推荐订阅源

MyScale Blog
MyScale Blog
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
博客园 - 司徒正美
Martin Fowler
Martin Fowler
T
Tailwind CSS Blog
B
Blog RSS Feed
Vercel News
Vercel News
博客园 - 聂微东
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
GbyAI
GbyAI
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
B
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(update): forward finalize --channel only when configu...
masatohoshin · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -119,19 +119,17 @@ describe("runPostCoreFinalizeAfterGatewayUpdate", () => {

119119

expect(env.OPENCLAW_GATEWAY_SERVICE_PID).toBeUndefined();

120120

});

121121
122-

it("defaults to the git/dev channel and omits --timeout when not provided", async () => {

122+

it("omits --channel (no config mutation) and --timeout when not provided", async () => {

123123

const spawnFinalize = vi.fn<PostCoreFinalizeSpawner>(async () => ({ code: 0 }));

124124

await runPostCoreFinalizeAfterGatewayUpdate({

125125

result: gitOkResult(),

126126

resolveEntrypoint: resolveEntrypointOk,

127127

spawnFinalize,

128128

});

129129

const call = spawnFinalize.mock.calls[0][0];

130-

// git/source updates default to the dev channel (matches runGatewayUpdate),

131-

// not the package (stable) channel.

132-

const channelIdx = call.argv.indexOf("--channel");

133-

expect(channelIdx).toBeGreaterThan(-1);

134-

expect(call.argv[channelIdx + 1]).toBe("dev");

130+

// No `--channel` unless the caller has a configured channel: `update finalize`

131+

// persists any `--channel`, so a defaulted one would mutate openclaw.json.

132+

expect(call.argv).not.toContain("--channel");

135133

expect(call.argv).not.toContain("--timeout");

136134

// No per-step timeout requested → outer backstop is the floor.

137135

expect(call.timeoutMs).toBe(30 * 60_000);

Original file line numberDiff line numberDiff line change

@@ -21,7 +21,7 @@ import { GATEWAY_SERVICE_RUNTIME_PID_ENV } from "../daemon/constants.js";

2121

import { resolveGatewayInstallEntrypoint } from "../daemon/gateway-entrypoint.js";

2222

import { runCommandWithTimeout } from "../process/exec.js";

2323

import { resolveStableNodePath } from "./stable-node-path.js";

24-

import { DEFAULT_GIT_CHANNEL, type UpdateChannel } from "./update-channels.js";

24+

import type { UpdateChannel } from "./update-channels.js";

2525

import type { UpdateRunResult } from "./update-runner.js";

2626
2727

// Whole-process backstop for the finalizer. `update finalize` runs several timed

@@ -158,16 +158,17 @@ export async function runPostCoreFinalizeAfterGatewayUpdate(params: {

158158

typeof params.timeoutMs === "number" && Number.isFinite(params.timeoutMs)

159159

? params.timeoutMs

160160

: undefined;

161-

// This helper only runs for git/source updates, where `runGatewayUpdate`

162-

// defaults the core update to the git/dev channel (`opts.channel ?? "dev"`).

163-

// Match it so the finalizer converges official plugins on the same channel as

164-

// the core update instead of falling back to the package (stable) channel.

165-

const channel = params.channel ?? DEFAULT_GIT_CHANNEL;

161+

// Only forward `--channel` when the caller actually has a configured channel.

162+

// `update finalize` treats any `--channel` as an explicit request and persists

163+

// it to `openclaw.json` (`persistRequestedUpdateChannel`); emitting a defaulted

164+

// channel here would write a channel the user never requested. When omitted,

165+

// the finalizer converges on the stored/default channel — the reconcile still

166+

// resolves a host-compatible version, it just does not mutate config.

166167

const nodePath = await resolveStableNodePath(process.execPath);

167168

const argv = buildFinalizeArgv({

168169

nodePath,

169170

entrypoint,

170-

channel,

171+

...(params.channel ? { channel: params.channel } : {}),

171172

...(perStepTimeoutMs === undefined ? {} : { timeoutMs: perStepTimeoutMs }),

172173

});

173174

// Pin the finalizer's host-compat resolution to the just-installed core