Repository navigation
fix(memory): keep local embedding worker forks working after Homebrew Node upgrades - #99541
qingminglong wants to merge 1 commit into
Conversation
|
ClawSweeper review: did not complete due to Codex infrastructure failure. Reviewed July 4, 2026, 3:31 AM ET / 07:31 UTC. Summary PR surface: Source +50, Tests +146. Total +196 across 2 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Stored data model Merge readiness This is a ClawSweeper/Codex infrastructure failure, not a PR readiness or patch-quality verdict. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against d226afbc5cbf. Label changesLabel changes:
Evidence reviewedPR surface: Source +50, Tests +146. Total +196 across 2 files. View PR surface stats
What I checked:
Likely related people:
How this review workflow works
Review history (1 earlier review cycle)
|
|
I compared the current #99183 cluster (#99222, #99318, #99541, #99563) against current main and Node's Best-fix read: #99541 looks like the strongest landing lane, pending the real macOS/Homebrew proof already requested. It keeps the repair inside Why I would not pick the siblings as-is:
Remaining merge gap: add the real Homebrew/macOS proof requested by ClawSweeper, ideally showing the old Cellar executable unavailable and a fresh local embedding worker starting through the stable symlink. With that proof, this PR seems like the cleanest candidate in the cluster. |
|
Current-head proof status for The remaining proof ask is a maintainer/macOS run that shows a stale Homebrew Cellar git fetch origin pull/99541/head:pr-99541-proof
git checkout pr-99541-proof
node scripts/run-vitest.mjs packages/memory-host-sdk/src/host/embeddings-worker-stale-execpath.test.ts
node scripts/run-vitest.mjs packages/memory-host-sdk/src/host/embeddings.test.ts
git diff --check HEAD~1..HEADFor the real-behavior portion, please run on macOS with Homebrew Node and capture redacted terminal/log output showing:
This is a proof handoff only; it does not claim the macOS/Homebrew runtime proof has already been completed. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Closes #99183
What Problem This Solves
Fixes an issue where users running the Gateway with Homebrew-managed Node could lose fresh local embedding worker forks after Homebrew upgrades Node and removes the old Cellar binary.
Why This Change Was Made
The local embedding worker now resolves Homebrew Cellar
process.execPathvalues to stable Homebrew symlinks before callingfork(). Non-Cellar paths keep the existing executable unchanged, and the change stays inside the memory host worker supervisor without adding config, public API, or a new worker error code.User Impact
Local semantic-memory embeddings can continue starting fresh worker processes after a Homebrew Node upgrade instead of failing with
spawn ... ENOENTuntil the Gateway is restarted.Evidence
fork(), while non-Cellar paths remain unchanged.node scripts/run-vitest.mjs packages/memory-host-sdk/src/host/embeddings-worker-stale-execpath.test.ts-> passed, 4 tests.node scripts/run-vitest.mjs packages/memory-host-sdk/src/host/embeddings.test.ts-> passed, 18 tests.git diff --check HEAD~1..HEAD-> passed.python .agents\skills\autoreview\scripts\autoreview --mode local-> worker reported clean, no accepted/actionable findings.macos-15-arm64, artifactpr-99541-macos-homebrew-proof.fork()as/opt/homebrew/opt/node/bin/nodeor/usr/local/bin/node, non-Cellar paths pass through unchanged, and aborts during the new async boundary do not send cancelled requests./opt/homebrewand Homebrew Node 26.4.0./opt/homebrew/Cellar/node/openclaw-proof-99541-28698715497-1/bin/node.child_process.fork()without explicitexecPathfailed withspawn /opt/homebrew/Cellar/node/openclaw-proof-99541-28698715497-1/bin/node ENOENT.argv0recorded as/opt/homebrew/opt/node/bin/nodeand childexecPathresolving to/opt/homebrew/Cellar/node/26.4.0/bin/node.