Repository navigation
fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades - #99318
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 6, 2026, 4:42 AM ET / 08:42 UTC. Summary PR surface: Source +79, Tests +292. Total +371 across 3 files. Reproducibility: yes. at source level: current main forks the local embedding worker without Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land one proof-positive canonical memory-host-sdk worker execPath fix, then close or supersede the sibling candidate PRs that maintainers do not choose. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main forks the local embedding worker without Is this the best way to solve the issue? Yes, pending proof and convergence: resolving a stable executable before AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 489af13dbd9e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +79, Tests +292. Total +371 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Addressed ClawSweeper review feedback:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
I have updated the PR body content, please review again @clawsweeper re-review |
|
Updated PR body to add Maintainer decision needed section for competing PR #99222, refreshed evidence timestamps, and clarified macOS environment limitation. Please re-review. |
|
@clawsweeper re-review |
|
Updated PR body to restructure and request maintainer direction on competing approaches (PR #99318 vs #99222). Changes:
@clawsweeper re-review |
|
This pull request has been automatically marked as stale due to inactivity. |
0c307bb to
7e63ef9
Compare
d9c7c57 to
f06df75
Compare
Co-authored-by: 袁龙辉0668001277 <[email protected]>
f06df75 to
144185d
Compare
|
Merged via squash.
|
* origin/main: (224 commits) fix(memory): preserve Windows session ownership (openclaw#115851) fix(compaction): drop context-engine fallback on codex ownership skip (openclaw#114155) (openclaw#115666) fix(msteams): ignore blank certificate settings (openclaw#109112) fix(usage): guard malformed DeepSeek payloads (openclaw#110785) docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) ... # Conflicts: # src/agents/apply-patch.ts # src/agents/sandbox/fs-bridge-mutation-helper.ts
* origin/main: docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) fix(setup): make Gemini recovery actionable (openclaw#115835) fix(terminal-core): prevent String.replace $ pattern injection in display-string (openclaw#111398) refactor(channels): share ingress retention defaults (openclaw#115824) fix(nostr): profile imports vary on timestamp ties (openclaw#111798)
…ive Homebrew Node upgrades (openclaw#99318) * fix(memory): survive Homebrew Node upgrades Co-authored-by: 袁龙辉0668001277 <[email protected]> * test(whatsapp): isolate last-route coverage * fix(deepinfra): preserve offline model compatibility * test(memory): isolate migration cleanup lifecycle * test: stabilize aggregate extension gates * ci: retrigger pull request workflow * test: preserve inherited Node options * test(cli): tolerate cold hosted startup --------- Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) fix(setup): make Gemini recovery actionable (openclaw#115835) fix(terminal-core): prevent String.replace $ pattern injection in display-string (openclaw#111398) refactor(channels): share ingress retention defaults (openclaw#115824) fix(nostr): profile imports vary on timestamp ties (openclaw#111798)
What Problem This Solves
After Homebrew upgrades Node, a long-running Gateway can retain a
process.execPathunder the removed versioned Cellar keg. A later local-embedding worker fork then fails withENOENT, degrading semantic memory until the Gateway restarts.Fixes #99183.
Why This Change Was Made
The worker now reuses OpenClaw's established stable Homebrew Node path contract. Resolution happens during asynchronous provider construction, so the worker supervisor remains synchronous and every later restart follows the stable executable without adding retry or configuration surfaces.
User Impact
Operators can upgrade Homebrew Node without silently losing local semantic-memory worker startup in an already-running Gateway. Non-Homebrew installations behave exactly as before.
Root Cause
Node 24.15.0
child_process.fork()defaultsoptions.execPathtoprocess.execPathand passes that exact path tospawn(). Homebrew resolves anopt/node/bin/nodelaunch to the versioned Cellar executable, so deleting the old keg invalidates new child starts even while the parent continues running.Solution
The maintainer rewrite replaces the original async worker-supervisor change with a smaller ownership-aligned design:
@openclaw/normalization-core;ensureChild()synchronous and pass the stable executable to every initial or restarted worker fork;No config, protocol, dependency, or user workflow changes. Non-Homebrew and unavailable-stable-path cases retain
process.execPath.Evidence
On macOS Node v26.5.0, a source-blind disposable fixture:
opt/node/bin/nodesymlink;opt/nodeto a replacement keg and removed the old keg;ENOENT;Observed result:
{"oldExecutableRemoved":true,"inheritedFork":{"kind":"error","code":"ENOENT"},"stableFork":{"kind":"message","message":{"ready":true,"execPath":"<temp>/Cellar/node/2.0.0/bin/node"}}}This directly addresses the target proof and canonical-fix selection requested in the latest ClawSweeper
Rank-up moves:. The competing stale PRs have been closed; this PR is the selected canonical implementation.Validation
Exact maintained head:
144185d05dcc68823bf7c9794ef25ab7b0f0047b(rebased onto currentmainbefore hosted validation)pnpm buildpassed.pnpm checkpassed.tbx_01kyp86694gsm9t0aeb5q4pn1y, Actions run 30427559064, exercised the full aggregate. The repaired worker/memory, WhatsApp, DeepInfra, and Kimi tests passed, and the extension aggregate completed without its prior 4 GiB OOM. The aggregate still exposed unrelated shared-process baseline flakes in tooling, QA, browser temp-path, OpenAI timing, and large memory-index tests; exact-head hosted CI uses the isolated/sharded lanes and is the merge gate.Supplemental Baseline Repairs
The full pre-push and hosted gates exposed several current-main problems that blocked honest validation. This stack includes only the high-confidence bounded repairs:
Docs / Release Note
No docs update is needed because this transparently restores existing local-memory behavior and adds no operator surface. Release-note context: local semantic-memory workers now survive Homebrew Node keg replacement without requiring a Gateway restart.