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

推荐订阅源

F
Full Disclosure
V
Vulnerabilities – Threatpost
Attack and Defense Labs
Attack and Defense Labs
N
News and Events Feed by Topic
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
B
Blog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
H
Hacker News: Front Page
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园_首页
D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
W
WeLiveSecurity
N
News and Events Feed by Topic
F
Fortinet All Blogs
PCI Perspectives
PCI Perspectives
WordPress大学
WordPress大学
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Recent Announcements
Recent Announcements
Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hacker News: Ask HN
Hacker News: Ask HN
爱范儿
爱范儿
腾讯CDC
Last Week in AI
Last Week in AI
月光博客
月光博客
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
Help Net Security
Help Net Security
V
V2EX
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Heimdal Security Blog
L
LINUX DO - 最新话题
GbyAI
GbyAI
The Hacker News
The Hacker News
罗磊的独立博客
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 【当耐特】
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V2EX - 技术
V2EX - 技术
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
O
OpenAI News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(daemon): canonicalize macOS service PATH · openclaw/openclaw@85ce75c
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -111,36 +111,21 @@ describe("getMinimalServicePathParts - Linux user directories", () => {

111111

expect(result).toContain("/opt/fnm/current/bin");

112112

});

113113114-

it("includes version manager directories on macOS when HOME is set", () => {

114+

it("uses only canonical system directories on macOS by default", () => {

115115

const result = getMinimalServicePathParts({

116116

platform: "darwin",

117117

home: "/Users/testuser",

118118

existsSync: allExist,

119119

});

120120121-

// Should include common user bin directories

122-

expect(result).toContain("/Users/testuser/.local/bin");

123-

expect(result).toContain("/Users/testuser/.npm-global/bin");

124-

expect(result).toContain("/Users/testuser/bin");

125-126-

// Should include version manager paths (macOS specific)

127-

// Note: nvm has no stable default path, relies on user's shell config

128-

expect(result).toContain("/Users/testuser/Library/Application Support/fnm/aliases/default/bin"); // fnm default on macOS

129-

expect(result).toContain("/Users/testuser/.fnm/aliases/default/bin"); // fnm if customized to ~/.fnm

130-

expect(result).toContain("/Users/testuser/.volta/bin");

131-

expect(result).toContain("/Users/testuser/.asdf/shims");

132-

expect(result).toContain("/Users/testuser/Library/pnpm"); // pnpm default on macOS

133-

expect(result).toContain("/Users/testuser/.local/share/pnpm"); // pnpm XDG fallback

134-

expect(result).toContain("/Users/testuser/.bun/bin");

135-136-

// Should also include macOS system directories

137-

expect(result).toContain("/opt/homebrew/bin");

138-

expect(result).toContain("/usr/local/bin");

121+

expect(result).toEqual(["/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin"]);

122+

expect(result.some((entry) => entry.startsWith("/Users/testuser/"))).toBe(false);

139123

});

140124141-

it("includes env-configured version manager dirs on macOS", () => {

125+

it("can include env-configured version manager dirs on macOS when requested", () => {

142126

const result = getMinimalServicePathPartsFromEnv({

143127

platform: "darwin",

128+

includeUserDirs: true,

144129

env: {

145130

HOME: "/Users/testuser",

146131

FNM_DIR: "/Users/testuser/Library/Application Support/fnm",

@@ -158,22 +143,18 @@ describe("getMinimalServicePathParts - Linux user directories", () => {

158143

expect(result).toContain("/Users/testuser/Library/pnpm");

159144

});

160145161-

it("places version manager dirs before system dirs on macOS", () => {

146+

it("does not let version manager dirs precede system dirs on macOS by default", () => {

162147

const result = getMinimalServicePathParts({

163148

platform: "darwin",

164149

home: "/Users/testuser",

165150

existsSync: allExist,

166151

});

167152168-

// fnm on macOS defaults to ~/Library/Application Support/fnm

169-

const fnmIndex = result.indexOf(

170-

"/Users/testuser/Library/Application Support/fnm/aliases/default/bin",

171-

);

172-

const homebrewIndex = result.indexOf("/opt/homebrew/bin");

153+

const fnmIndex = result.indexOf("/Users/testuser/.fnm/aliases/default/bin");

154+

const systemIndex = result.indexOf("/usr/local/bin");

173155174-

expect(fnmIndex).toBeGreaterThan(-1);

175-

expect(homebrewIndex).toBeGreaterThan(-1);

176-

expect(fnmIndex).toBeLessThan(homebrewIndex);

156+

expect(fnmIndex).toBe(-1);

157+

expect(systemIndex).toBe(0);

177158

});

178159179160

it("does not include Linux user directories on Windows", () => {

@@ -209,17 +190,18 @@ describe("getMinimalServicePathParts - Linux user directories", () => {

209190

expect(result).not.toContain("/home/testuser/.local/share/pnpm");

210191

});

211192212-

it("omits hard-coded version-manager fallbacks on macOS when missing", () => {

193+

it("omits all user PATH fallbacks on macOS even when HOME is set", () => {

213194

const result = getMinimalServicePathParts({

214195

platform: "darwin",

215196

home: "/Users/testuser",

216197

existsSync: noneExist,

217198

});

218199219-

expect(result).toContain("/Users/testuser/.local/bin");

220-

expect(result).toContain("/Users/testuser/.npm-global/bin");

221-

expect(result).toContain("/Users/testuser/bin");

222-

expect(result).toContain("/Users/testuser/.nix-profile/bin");

200+

expect(result).toEqual(["/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin"]);

201+

expect(result).not.toContain("/Users/testuser/.local/bin");

202+

expect(result).not.toContain("/Users/testuser/.npm-global/bin");

203+

expect(result).not.toContain("/Users/testuser/bin");

204+

expect(result).not.toContain("/Users/testuser/.nix-profile/bin");

223205

expect(result).not.toContain("/Users/testuser/.volta/bin");

224206

expect(result).not.toContain("/Users/testuser/.asdf/shims");

225207

expect(result).not.toContain("/Users/testuser/.bun/bin");

@@ -233,16 +215,16 @@ describe("getMinimalServicePathParts - Linux user directories", () => {

233215234216

it("can omit missing stable user-bin defaults for service PATH audits", () => {

235217

const result = getMinimalServicePathPartsFromEnv({

236-

platform: "darwin",

237-

env: { HOME: "/Users/testuser" },

238-

existsSync: (candidate) => candidate === "/Users/testuser/.local/bin",

218+

platform: "linux",

219+

env: { HOME: "/home/testuser" },

220+

existsSync: (candidate) => candidate === "/home/testuser/.local/bin",

239221

includeMissingUserBinDefaults: false,

240222

});

241223242-

expect(result).toContain("/Users/testuser/.local/bin");

243-

expect(result).not.toContain("/Users/testuser/.npm-global/bin");

244-

expect(result).not.toContain("/Users/testuser/bin");

245-

expect(result).not.toContain("/Users/testuser/.nix-profile/bin");

224+

expect(result).toContain("/home/testuser/.local/bin");

225+

expect(result).not.toContain("/home/testuser/.npm-global/bin");

226+

expect(result).not.toContain("/home/testuser/bin");

227+

expect(result).not.toContain("/home/testuser/.nix-profile/bin");

246228

});

247229248230

it("keeps env-configured roots when fallback directories are missing", () => {

@@ -371,14 +353,15 @@ describe("getMinimalServicePathParts - Nix Home Manager", () => {

371353

expect(result).toContain("/home/testuser/.nix-profile/bin");

372354

});

373355374-

it("falls back to default Nix profile when NIX_PROFILES is absent on macOS", () => {

356+

it("omits the default Nix profile from macOS service PATH by default", () => {

375357

const result = getMinimalServicePathParts({

376358

platform: "darwin",

377359

home: "/Users/testuser",

378360

existsSync: () => true,

379361

});

380362381-

expect(result).toContain("/Users/testuser/.nix-profile/bin");

363+

expect(result).not.toContain("/Users/testuser/.nix-profile/bin");

364+

expect(result).toEqual(["/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin"]);

382365

});

383366384367

it("places rightmost NIX_PROFILES entry before leftmost on Linux", () => {

@@ -398,7 +381,7 @@ describe("getMinimalServicePathParts - Nix Home Manager", () => {

398381

expect(userIdx).toBeLessThan(defaultIdx);

399382

});

400383401-

it("places rightmost NIX_PROFILES entry before leftmost on macOS", () => {

384+

it("ignores NIX_PROFILES on macOS service PATH by default", () => {

402385

const result = getMinimalServicePathPartsFromEnv({

403386

platform: "darwin",

404387

env: {

@@ -410,9 +393,9 @@ describe("getMinimalServicePathParts - Nix Home Manager", () => {

410393411394

const userIdx = result.indexOf("/Users/testuser/.nix-profile/bin");

412395

const defaultIdx = result.indexOf("/nix/var/nix/profiles/default/bin");

413-

expect(userIdx).toBeGreaterThan(-1);

414-

expect(defaultIdx).toBeGreaterThan(-1);

415-

expect(userIdx).toBeLessThan(defaultIdx);

396+

expect(userIdx).toBe(-1);

397+

expect(defaultIdx).toBe(-1);

398+

expect(result).toEqual(["/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin"]);

416399

});

417400418401

it("includes single Nix profile from NIX_PROFILES on Linux", () => {

@@ -428,9 +411,10 @@ describe("getMinimalServicePathParts - Nix Home Manager", () => {

428411

expect(result).toContain("/nix/var/nix/profiles/per-user/testuser/profile/bin");

429412

});

430413431-

it("includes single Nix profile from NIX_PROFILES on macOS", () => {

414+

it("can include single Nix profile from NIX_PROFILES on macOS when requested", () => {

432415

const result = getMinimalServicePathPartsFromEnv({

433416

platform: "darwin",

417+

includeUserDirs: true,

434418

env: {

435419

HOME: "/Users/testuser",

436420

NIX_PROFILES: "/nix/var/nix/profiles/per-user/testuser/profile",

@@ -467,15 +451,12 @@ describe("buildMinimalServicePath", () => {

467451

const splitPath = (value: string, platform: NodeJS.Platform) =>

468452

value.split(platform === "win32" ? path.win32.delimiter : path.posix.delimiter);

469453470-

it("includes Homebrew + system dirs on macOS", () => {

454+

it("uses canonical launchd system dirs on macOS", () => {

471455

const result = buildMinimalServicePath({

472456

platform: "darwin",

473457

});

474458

const parts = splitPath(result, "darwin");

475-

expect(parts).toContain("/opt/homebrew/bin");

476-

expect(parts).toContain("/usr/local/bin");

477-

expect(parts).toContain("/usr/bin");

478-

expect(parts).toContain("/bin");

459+

expect(parts).toEqual(["/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin"]);

479460

});

480461481462

it("returns PATH as-is on Windows", () => {

@@ -622,6 +603,22 @@ describe("buildServiceEnvironment", () => {

622603

expect(env.TMPDIR).toBe(path.join("/Users/user", ".openclaw", "tmp"));

623604

});

624605606+

it("uses a canonical system PATH for macOS LaunchAgents", () => {

607+

const env = buildServiceEnvironment({

608+

env: {

609+

HOME: "/Users/user",

610+

FNM_DIR: "/Users/user/Library/Application Support/fnm",

611+

PNPM_HOME: "/Users/user/Library/pnpm",

612+

VOLTA_HOME: "/Users/user/.volta",

613+

ASDF_DATA_DIR: "/Users/user/.asdf",

614+

},

615+

port: 18789,

616+

platform: "darwin",

617+

});

618+619+

expect(env.PATH).toBe("/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin");

620+

});

621+625622

it("falls back to os.tmpdir when TMPDIR is not set on Linux", () => {

626623

const env = buildServiceEnvironment({

627624

env: { HOME: "/home/user" },

@@ -701,6 +698,19 @@ describe("buildServiceEnvironment", () => {

701698

"/home/user/.nvm/versions/node/v22.22.0/bin",

702699

);

703700

});

701+702+

it("prepends explicit runtime directories to macOS LaunchAgent PATH", () => {

703+

const env = buildServiceEnvironment({

704+

env: { HOME: "/Users/user", VOLTA_HOME: "/Users/user/.volta" },

705+

port: 18789,

706+

platform: "darwin",

707+

extraPathDirs: ["/opt/homebrew/Cellar/node/22.14.0/bin"],

708+

});

709+710+

expect(env.PATH).toBe(

711+

"/opt/homebrew/Cellar/node/22.14.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",

712+

);

713+

});

704714

});

705715706716

describe("buildNodeServiceEnvironment", () => {