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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Recent Announcements
Recent Announcements
Vercel News
Vercel News
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
H
Help Net Security
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
G
Google Developers Blog
罗磊的独立博客
爱范儿
爱范儿
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
月光博客
月光博客
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research

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(respawn): rewrite pnpm versioned entry paths to stabl...
liuhao1024 · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -298,7 +298,7 @@ describe("respawnGatewayProcessForUpdate", () => {

298298

process.execArgv = [];

299299

process.argv = [

300300

"C:\\Program Files\\node.exe",

301-

"C:\\openclaw\\dist\\index.js",

301+

"C:\\openclaw\\node_modules\\.pnpm\\openclaw@2026.6.5\\node_modules\\openclaw\\dist\\index.js",

302302

"gateway",

303303

"run",

304304

];

@@ -310,7 +310,7 @@ describe("respawnGatewayProcessForUpdate", () => {

310310

expect(result.pid).toBe(5151);

311311

expect(spawnMock).toHaveBeenCalledWith(

312312

process.execPath,

313-

["C:\\openclaw\\dist\\index.js", "gateway", "run"],

313+

["C:\\openclaw\\node_modules\\openclaw\\openclaw.mjs", "gateway", "run"],

314314

{

315315

detached: true,

316316

env: process.env,

@@ -319,6 +319,50 @@ describe("respawnGatewayProcessForUpdate", () => {

319319

);

320320

});

321321
322+

it("rewrites a pnpm-versioned OpenClaw entry before detached update respawn", () => {

323+

clearSupervisorHints();

324+

setPlatform("linux");

325+

process.execArgv = [];

326+

process.argv = [

327+

"/usr/local/bin/node",

328+

"/app/node_modules/.pnpm/openclaw@2026.6.5/node_modules/openclaw/dist/entry.js",

329+

"gateway",

330+

"run",

331+

];

332+

spawnMock.mockReturnValue({ pid: 7171, unref: vi.fn(), kill: vi.fn() });

333+
334+

const result = respawnGatewayProcessForUpdate();

335+
336+

expect(result.mode).toBe("spawned");

337+

expect(spawnMock).toHaveBeenCalledWith(

338+

process.execPath,

339+

["/app/node_modules/openclaw/openclaw.mjs", "gateway", "run"],

340+

{

341+

detached: true,

342+

env: process.env,

343+

stdio: "inherit",

344+

},

345+

);

346+

});

347+
348+

it("does not rewrite another package's pnpm-versioned entry", () => {

349+

clearSupervisorHints();

350+

setPlatform("linux");

351+

process.execArgv = [];

352+

const entry =

353+

"/app/node_modules/.pnpm/@anthropic+sdk@1.0.0/node_modules/@anthropic/sdk/dist/index.js";

354+

process.argv = ["/usr/local/bin/node", entry, "gateway", "run"];

355+

spawnMock.mockReturnValue({ pid: 8181, unref: vi.fn(), kill: vi.fn() });

356+
357+

respawnGatewayProcessForUpdate();

358+
359+

expect(spawnMock).toHaveBeenCalledWith(process.execPath, [entry, "gateway", "run"], {

360+

detached: true,

361+

env: process.env,

362+

stdio: "inherit",

363+

});

364+

});

365+
322366

it("spawns a detached update process when macOS only has inherited XPC state", () => {

323367

clearSupervisorHints();

324368

setPlatform("darwin");