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

推荐订阅源

U
Unit 42
V
V2EX
Martin Fowler
Martin Fowler
博客园 - Franky
P
Proofpoint News Feed
P
Palo Alto Networks Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog
The Register - Security
The Register - Security
Latest news
Latest news
S
Security @ Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
M
Microsoft Research Blog - Microsoft Research
Scott Helme
Scott Helme
T
Tailwind CSS Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
True Tiger Recordings
有赞技术团队
有赞技术团队
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Tenable Blog
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
Hacker News: Ask HN
Hacker News: Ask HN
S
Security Archives - TechRepublic
F
Future of Privacy Forum
爱范儿
爱范儿
PCI Perspectives
PCI Perspectives
H
Help Net Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
MongoDB | Blog
MongoDB | Blog
Security Latest
Security Latest
美团技术团队
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
量子位
C
CERT Recently Published Vulnerability Notes
SecWiki News
SecWiki News

Recent Commits to openclaw:main

perf(whatsapp): narrow runtime setter entry (#85589) fix: smooth chat focus mode layout · openclaw/openclaw@bb5abef Fix Telegram missing harness spool poison (#85605) · openclaw/openclaw@b745082 fix(session): surface previous-transcript archive failures on /new ro… Policy: add agent workspace conformance checks (#85096) fix(codex): honor node exec policy for native surfaces (#85534) · openclaw/openclaw@e0405ec fix(qa-lab): stabilize codex runtime parity fixtures fix(github): preserve sufficient proof against negative relabel (#85567) · openclaw/openclaw@6b52dff docs: add changelog for context pressure preflight · openclaw/openclaw@5ca734f Fix context pressure preflight for tool-heavy sessions (#85541) · openclaw/openclaw@c08400e fix(doctor): classify codex asset notice as info (#85119) · openclaw/openclaw@959b935 fix(ui): keep chat picker search current (#85547) fix: preserve message-tool delivery evidence · openclaw/openclaw@f022b05 fix(codex): add API key paste auth (#85533) fix: satisfy openai video test typecheck · openclaw/openclaw@743caed fix: route openai video edits to edits endpoint · openclaw/openclaw@6c3fcb8 fix(qmd): normalize direct file collection paths (#65212) · openclaw/openclaw@227b4bf fix(testbox): preserve clean sparse checkouts · openclaw/openclaw@58e9628 fix(ui): run ui script through junction paths (#85525) · openclaw/openclaw@ad19dd8 docs: fix troubleshooting logs link (#85545) · openclaw/openclaw@60582b6 Revert chat session picker inline search (#85527) · openclaw/openclaw@d69bcfd fix: preserve guarded video operation cleanup · openclaw/openclaw@ed7d99a fix: honor openai video provider request network policy fix: retry guarded video downloads · openclaw/openclaw@efbf9f3 fix: thread openai video request policy · openclaw/openclaw@31b5145 docs(changelog): note heartbeat message-tool fix · openclaw/openclaw@c127334 fix: use fs-safe trash for agent delete (#84394) · openclaw/openclaw@951bbe6 Fix heartbeat message-tool delivery policy (#85357) · openclaw/openclaw@bd9c78f Scope config preflight note suppression (#84439) · openclaw/openclaw@91d85e7 fix(cron): document best-effort edit delivery mode (#84526) fix(dreaming): open report cards from memory palace (#85144) · openclaw/openclaw@2e15830 fix(openai-codex): preserve image input capability (#85393) · openclaw/openclaw@49ce171 fix(codex): stabilize heartbeat dynamic tool schema (#84681) · openclaw/openclaw@c52daa4 docs: absorb small documentation PRs · openclaw/openclaw@658be7f fix(scripts): preserve bws resolver parse errors (#85528) · openclaw/openclaw@13a4c57 fix(telegram): honor outbound media max bytes (#83478) · openclaw/openclaw@f2d4f93 fix(skills): restore executable bit on bundled whisper script + relea… · openclaw/openclaw@1dd3b52 fix(google): print Gemini OAuth URL before browser launch (#71469) · openclaw/openclaw@2d5bda9 docs: absorb contributor documentation fixes docs: tighten landable bug sweep gates · openclaw/openclaw@8f86383 fix: reuse provider auth lookup facts (#85499) · openclaw/openclaw@299ed80 fix: keep session picker focus separate · openclaw/openclaw@7e12370 feat: start onboarding for fresh CLI installs (#85519) · openclaw/openclaw@464ffc1 docs: refresh contributor docs · openclaw/openclaw@64d13c0 fix(update): prepack npm git update specs · openclaw/openclaw@84f6b5c fix: simplify chat session search · openclaw/openclaw@7e16a50 fix: use native mac settings sidebar · openclaw/openclaw@0556958 chore: ignore antigravity cli state · openclaw/openclaw@dd07fb4 fix(media): replace Gemini CLI fallback with sandboxed Antigravity (#… · openclaw/openclaw@0622fb6 docs: add bugbash landing changelog entries · openclaw/openclaw@faad2b0 fix(diffs): continue after card hydration errors (#84775) · openclaw/openclaw@9b5c281 fix(proxy): add missing clientSocket error handler in CONNECT tunnel … · openclaw/openclaw@e008bc9 fix(memory): report qmd workspace cwd probe failures (#63167) · openclaw/openclaw@7134a95 fix(agents): handle parallel tool call deltas in openai-completions s… test: align release validation package acceptance check (#85515) · openclaw/openclaw@423f525 fix: recover stuck Codex compaction · openclaw/openclaw@44d5330 docs: require visual proof for control ui e2e (#85513) · openclaw/openclaw@8174bfc Policy: add gateway exposure checks (#81981) · openclaw/openclaw@dcc5e45 ci: unblock advisory Tideclaw alpha release checks · openclaw/openclaw@dcfc7e5 fix(installer): tolerate WSL UNC launch cwd · openclaw/openclaw@684a9b2 docs: absorb docs sweep · openclaw/openclaw@bb5010b fix: cancel stale provider auth prewarms (#85503) · openclaw/openclaw@60e3749 Add TUI PTY integration coverage (#85485) · openclaw/openclaw@0a50cbd fix(security): escape entry.id in HTML export to prevent attribute XS… · openclaw/openclaw@7bc4a33 fix: guard openai-completions tool payload with supportsTools compat … · openclaw/openclaw@76a025c fix(slack): surface auth.test failure + normalize explicit-bot mentio… · openclaw/openclaw@995a020 chore(release): bump version to 2026.5.22 fix(ui): keep chat session search inline (#85490) · openclaw/openclaw@2601453 Policy: add secret and auth conformance checks (#81974) · openclaw/openclaw@c85feac fix(delivery): log failDelivery errors instead of silently swallowing… · openclaw/openclaw@f75789f fix(cli): validate debug proxy numeric options (#84260) · openclaw/openclaw@5c866a1 fix(daemon): use exit code instead of localized text for schtasks fal… · openclaw/openclaw@501e74d fix(auto-reply): enforce word boundary in slash command prefix match … · openclaw/openclaw@5c614de fix(message-tool): normalize send body aliases (#84102) docs: absorb maintainer docs sweep · openclaw/openclaw@e0fda55 fix(gateway): coalesce provider auth rewarms docs(voyage): clarify API key setup (#81803) · openclaw/openclaw@57178b1 docs(config): quote bracket config paths (#83058) · openclaw/openclaw@88f50e8 docs: link Copilot model availability (#76252) · openclaw/openclaw@14b2b8a test(telegram): await watchdog registration event · openclaw/openclaw@9fae5f7 ci: run binding command escape in release checks · openclaw/openclaw@4b63502 fix(tui): dismiss watchdog notice when response actually arrives (#77… · openclaw/openclaw@b741ddb test: add docker proof for plugin binding command escape · openclaw/openclaw@d756e1c test(telegram): wait for polling watchdog deterministically · openclaw/openclaw@7c9127c ci: skip pnpm auto repair in Crabbox shell · openclaw/openclaw@0241a6e fix(gateway): add .catch() to SIGTERM/SIGUSR1 signal handlers (#83131) fix: release cron runtime state after isolated runs (#85053) · openclaw/openclaw@247e536 fix(cron): suppress fatal error completion announce (#83724) · openclaw/openclaw@0c7220f fix(exec): parse nested approval metadata in async followups (#72268) · openclaw/openclaw@34c441c ci: share Crabbox hydrate pnpm store · openclaw/openclaw@7552634 chore(release): refresh plugin SDK baseline · openclaw/openclaw@736e7de ci(release): harden node setup before pnpm cache · openclaw/openclaw@a26aba6 ci(release): pass node pin to pnpm setup ci: use stable pnpm wrapper for Crabbox hydrate · openclaw/openclaw@b00d306 docs: refine maintainer docs sweep docs(memory): add guidance for action-sensitive memories (#82788) · openclaw/openclaw@bd04b1e docs(feishu): add dynamicAgentCreation and per-user isolation docs (#… docs(secrets): clarify agent-readable plaintext boundary (#84574) · openclaw/openclaw@ce5dcb0 docs(channels): document ackReactionScope for Slack & Telegram (DM go… · openclaw/openclaw@bbbed26 build(pnpm): use packageManager as pnpm source · openclaw/openclaw@a0702e1
fix(installer): fail failed Windows git builds · openclaw/openclaw@2edd6e2
vincentkoc · 2026-05-23 · via Recent Commits to openclaw:main

@@ -6,7 +6,12 @@ import { createScriptTestHarness } from "./test-helpers";

6677

const SCRIPT_PATH = "scripts/install.ps1";

88

const ENTRYPOINT_RE =

9-

/\r?\n\$mainResults = @\(Main\)\r?\n\$installSucceeded = \$mainResults\.Count -gt 0 -and \$mainResults\[-1\] -eq \$true\r?\nComplete-Install -Succeeded:\$installSucceeded\s*$/m;

9+

/\r?\n\$mainResults = @\(Main\)\r?\n\$installSucceeded = Test-BooleanSuccessResult -Results \$mainResults\r?\nComplete-Install -Succeeded:\$installSucceeded\s*$/m;

10+

const ENTRYPOINT_LINES = [

11+

"$mainResults = @(Main)",

12+

"$installSucceeded = Test-BooleanSuccessResult -Results $mainResults",

13+

"Complete-Install -Succeeded:$installSucceeded",

14+

];

10151116

function extractFunctionBody(source: string, name: string): string {

1217

const match = source.match(

@@ -50,9 +55,7 @@ function createFailingNodeFixture(source: string): string {

5055

"function Check-Node { return $false }",

5156

"function Install-Node { return $false }",

5257

"",

53-

"$mainResults = @(Main)",

54-

"$installSucceeded = $mainResults.Count -gt 0 -and $mainResults[-1] -eq $true",

55-

"Complete-Install -Succeeded:$installSucceeded",

58+

...ENTRYPOINT_LINES,

5659

"",

5760

].join("\n");

5861

}

@@ -77,9 +80,12 @@ describe("install.ps1 failure handling", () => {

77807881

it("keeps failure termination in the top-level completion handler", () => {

7982

const completeInstallBody = extractFunctionBody(source, "Complete-Install");

83+

const booleanSuccessBody = extractFunctionBody(source, "Test-BooleanSuccessResult");

8084

expect(completeInstallBody).toMatch(/\$PSCommandPath/);

8185

expect(completeInstallBody).toMatch(/\bexit \$script:InstallExitCode\b/);

8286

expect(completeInstallBody).toMatch(/\bthrow "OpenClaw installation failed with exit code/);

87+

expect(booleanSuccessBody).toContain("$Results.Count -gt 0");

88+

expect(source).toContain("$installSucceeded = Test-BooleanSuccessResult -Results $mainResults");

8389

});

84908591

it("runs npm install through the resolved command with quiet CI defaults", () => {

@@ -227,6 +233,7 @@ describe("install.ps1 failure handling", () => {

227233

const pnpmVersionMatchBody = extractFunctionBody(source, "Test-PnpmCommandMatchesVersion");

228234

const ensurePnpmBody = extractFunctionBody(source, "Ensure-Pnpm");

229235

const gitInstallBody = extractFunctionBody(source, "Install-OpenClawFromGit");

236+

const mainBody = extractFunctionBody(source, "Main");

230237231238

expect(pnpmVersionBody).toContain("package.json");

232239

expect(pnpmVersionBody).toContain("$packageJson.packageManager -match '^pnpm@(?<version>[^+]+)'");

@@ -247,9 +254,31 @@ describe("install.ps1 failure handling", () => {

247254

expect(gitInstallBody.indexOf("git -C $RepoDir pull --rebase")).toBeLessThan(

248255

gitInstallBody.indexOf("Ensure-Pnpm -RepoDir $RepoDir"),

249256

);

257+

expect(mainBody).toContain("$gitInstallResults = @(Install-OpenClawFromGit");

258+

expect(mainBody).toContain(

259+

"Test-BooleanSuccessResult -Results $gitInstallResults",

260+

);

261+

expect(mainBody).toContain("$npmInstallResults = @(Install-OpenClaw)");

262+

expect(mainBody).toContain(

263+

"Test-BooleanSuccessResult -Results $npmInstallResults",

264+

);

250265

expect(gitInstallBody).toContain("Push-Location -LiteralPath $RepoDir");

251266

expect(gitInstallBody).toContain("& $pnpmCommand install");

267+

expect(gitInstallBody).toContain(

268+

'Write-Host "[!] pnpm install failed for the Git checkout"',

269+

);

270+

expect(gitInstallBody).toContain("& $pnpmCommand build");

271+

expect(gitInstallBody).toContain(

272+

'Write-Host "[!] pnpm build failed for the Git checkout"',

273+

);

274+

expect(gitInstallBody).toContain('$entryPath = Join-Path $RepoDir "dist\\\\entry.js"');

275+

expect(gitInstallBody).toContain("Test-Path $entryPath");

276+

expect(gitInstallBody).toContain(

277+

'Write-Host "[!] OpenClaw build did not produce $entryPath"',

278+

);

279+

expect(gitInstallBody).toContain('node ""$entryPath"" %*');

252280

expect(gitInstallBody).not.toContain("& $pnpmCommand -C $RepoDir install");

281+

expect(gitInstallBody).not.toContain('node ""$RepoDir\\\\dist\\\\entry.js"" %*');

253282

});

254283255284

it("cleans legacy git submodules only from the selected git checkout", () => {

@@ -309,6 +338,42 @@ describe("install.ps1 failure handling", () => {

309338

expect(result.stdout).toContain("alive-after-install");

310339

});

311340341+

runIfPowerShell("treats noisy Git install false as failure", () => {

342+

const tempDir = harness.createTempDir("openclaw-install-ps1-");

343+

const scriptPath = join(tempDir, "install.ps1");

344+

const scriptWithoutEntryPoint = source.replace(ENTRYPOINT_RE, "");

345+

writeFileSync(

346+

scriptPath,

347+

[

348+

scriptWithoutEntryPoint,

349+

"",

350+

"function Write-Banner { }",

351+

"function Ensure-ExecutionPolicy { return $true }",

352+

"function Check-Node { return $true }",

353+

"function Check-ExistingOpenClaw { return $false }",

354+

"function Get-NpmCommandPath { return $null }",

355+

"function Install-OpenClawFromGit {",

356+

" Write-Output 'pnpm stdout before failure'",

357+

" return $false",

358+

"}",

359+

"function Ensure-OpenClawOnPath { throw 'should not continue after failed git install' }",

360+

"$InstallMethod = 'git'",

361+

"$GitDir = 'C:\\\\openclaw-test'",

362+

"$NoOnboard = $true",

363+

"$result = Main",

364+

'if ($result -ne $false) { throw "Main returned $result" }',

365+

'if ($script:InstallExitCode -ne 1) { throw "InstallExitCode=$script:InstallExitCode" }',

366+

"",

367+

].join("\n"),

368+

);

369+

chmodSync(scriptPath, 0o755);

370+371+

const result = runPowerShell(["-NoLogo", "-NoProfile", "-Command", `. ${toPowerShellSingleQuotedLiteral(scriptPath)}`]);

372+373+

expect(result.status).toBe(0);

374+

expect(result.stderr).toBe("");

375+

});

376+312377

runIfPowerShell("keeps npm chatter out of Main's success return value", () => {

313378

const tempDir = harness.createTempDir("openclaw-install-ps1-");

314379

const scriptPath = join(tempDir, "install.ps1");

@@ -371,9 +436,7 @@ describe("install.ps1 failure handling", () => {

371436

"function Refresh-GatewayServiceIfLoaded { }",

372437

"function Invoke-OpenClawCommand { return 'OpenClaw test-version' }",

373438

"$NoOnboard = $true",

374-

"$mainResults = @(Main)",

375-

"$installSucceeded = $mainResults.Count -gt 0 -and $mainResults[-1] -eq $true",

376-

"Complete-Install -Succeeded:$installSucceeded",

439+

...ENTRYPOINT_LINES,

377440

"",

378441

].join("\n"),

379442

);