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

推荐订阅源

博客园 - 叶小钗
爱范儿
爱范儿
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
博客园 - 聂微东
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
罗磊的独立博客
Jina AI
Jina AI

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(config): parse quoted bracket paths · openclaw/opencl...
steipete · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -82,6 +82,12 @@ install method aligned:

8282
8383

The Gateway core auto-updater (when enabled via config) reuses this same update path.

8484
85+

For package-manager installs, `openclaw update` resolves the target package

86+

version before invoking the package manager. If the installed version exactly

87+

matches the target and no update-channel change needs to be persisted, the

88+

command exits as skipped before package install, plugin sync, completion refresh,

89+

or gateway restart work.

90+
8591

## Git checkout flow

8692
8793

Channels:

Original file line numberDiff line numberDiff line change

@@ -273,6 +273,41 @@ describe("config cli", () => {

273273

});

274274

});

275275
276+

it("dry-runs nested plugin install updates without dropping sibling fields", async () => {

277+

const resolved = {

278+

plugins: {

279+

installs: {

280+

"openclaw-web-search": {

281+

source: "npm",

282+

spec: "@ollama/openclaw-web-search",

283+

installPath: "/tmp/openclaw-web-search",

284+

version: "0.2.2",

285+

resolvedName: "@ollama/openclaw-web-search",

286+

resolvedVersion: "0.2.2",

287+

resolvedSpec: "@ollama/openclaw-web-search@0.2.2",

288+

integrity: "sha512-test",

289+

resolvedAt: "2026-04-22T10:33:58.083Z",

290+

installedAt: "2026-04-22T10:33:58.240Z",

291+

},

292+

},

293+

},

294+

} as unknown as OpenClawConfig;

295+

setSnapshot(resolved, resolved);

296+
297+

await runConfigCommand([

298+

"config",

299+

"set",

300+

'plugins.installs["openclaw-web-search"].spec',

301+

'"@ollama/openclaw-web-search@0.2.2"',

302+

"--strict-json",

303+

"--dry-run",

304+

]);

305+
306+

expect(mockWriteConfigFile).not.toHaveBeenCalled();

307+

expect(mockError).not.toHaveBeenCalled();

308+

expect(mockLog).toHaveBeenCalledWith(expect.stringContaining("Dry run successful"));

309+

});

310+
276311

it("writes agents.defaults.llm.idleTimeoutSeconds without disturbing sibling defaults", async () => {

277312

const resolved: OpenClawConfig = {

278313

agents: {

Original file line numberDiff line numberDiff line change

@@ -108,6 +108,25 @@ function isIndexSegment(raw: string): boolean {

108108

return /^[0-9]+$/.test(raw);

109109

}

110110
111+

function parseBracketPathSegment(raw: string, fullPath: string): string {

112+

const trimmed = raw.trim();

113+

if (!trimmed) {

114+

throw new Error(`Invalid path (empty "[]"): ${fullPath}`);

115+

}

116+

if (trimmed.startsWith('"') || trimmed.startsWith("'")) {

117+

try {

118+

const parsed = JSON5.parse(trimmed) as unknown;

119+

if (typeof parsed === "string" && parsed.trim()) {

120+

return parsed;

121+

}

122+

} catch (err) {

123+

throw new Error(`Invalid path bracket string (${trimmed}): ${fullPath}`, { cause: err });

124+

}

125+

throw new Error(`Invalid path bracket string (${trimmed}): ${fullPath}`);

126+

}

127+

return trimmed;

128+

}

129+
111130

function parsePath(raw: string): PathSegment[] {

112131

const trimmed = raw.trim();

113132

if (!trimmed) {

@@ -147,7 +166,7 @@ function parsePath(raw: string): PathSegment[] {

147166

if (!inside) {

148167

throw new Error(`Invalid path (empty "[]"): ${raw}`);

149168

}

150-

parts.push(inside);

169+

parts.push(parseBracketPathSegment(inside, raw));

151170

i = close + 1;

152171

continue;

153172

}