fix: include pnpm 11 bins in gateway PATH#85238
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 7, 2026, 1:47 AM ET / 05:47 UTC. Summary PR surface: Source +93, Tests +186. Total +279 across 6 files. Reproducibility: yes. Source inspection maps the visible Skills missing-binary state to gateway-side PATH probing, and current main plus v2026.6.11 omit the pnpm 11 bin paths shown in the PR's live terminal proof. Review metrics: 3 noteworthy metrics.
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:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this PATH-builder fix or an equivalent current-main refresh after exact-head gates, preserving the maintainer-accepted system-before-user service PATH ordering and closing the linked issue only after merge. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection maps the visible Skills missing-binary state to gateway-side PATH probing, and current main plus v2026.6.11 omit the pnpm 11 bin paths shown in the PR's live terminal proof. Is this the best way to solve the issue? Yes. The fix belongs in the shared gateway service/runtime PATH builders rather than Control UI rendering or skill-specific workarounds, and it preserves legacy pnpm paths while adding workspace-env hardening. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 094c0d421faf. Label changesLabel justifications:
Evidence reviewedPR surface: Source +93, Tests +186. Total +279 across 6 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 (10 earlier review cycles; latest 8 shown)
|
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Clockwork Diff Drake Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
This comment was marked as spam.
This comment was marked as spam.
This comment has been minimized.
This comment has been minimized.
4761f32 to
cc21e30
Compare
|
No description provided. |
7ec7004 to
d823cb6
Compare
|
Maintainer decision: accepting the system-before-user managed service PATH precedence. This is intentional hardening; the pnpm and npm user paths remain present, and Clownfish must still verify the current-main effective diff through the exact merge gate before landing. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
* fix: include pnpm 11 bins in gateway PATH * fix: include pnpm 11 bins in gateway PATH * fix(security): reject workspace package-manager PATH roots * fix(infra): preserve package paths from root cwd --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
* fix: include pnpm 11 bins in gateway PATH * fix: include pnpm 11 bins in gateway PATH * fix(security): reject workspace package-manager PATH roots * fix(infra): preserve package paths from root cwd --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
* fix: include pnpm 11 bins in gateway PATH * fix: include pnpm 11 bins in gateway PATH * fix(security): reject workspace package-manager PATH roots * fix(infra): preserve package paths from root cwd --------- Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
Summary
PNPM_HOME/binlayout in managed gateway service PATH generationPNPM_HOMEpaths for compatibilityCloses #80206.
Real behavior proof
Behavior or issue addressed: Gateway-managed PATH generation missed pnpm 11 global shim directories, so gateway-side skill requirement checks could report
clawhubas missing even though pnpm installed it underPNPM_HOME/bin.Real environment tested: Linux user-level OpenClaw gateway setup on Santiago's machine, OpenClaw service installed under systemd user units, pnpm 11.1.0 with global bin at
/home/shb/.local/share/pnpm/bin.Exact steps or command run after this patch: Ran the patched OpenClaw source in
/home/shb/Worktrees/openclaw/pnpm11-service-pathwithtsxto call the real service PATH builder and runtime PATH bootstrap against the live machine paths, after confirming the currently installed service PATH and pnpm global bin location.Evidence after fix: Terminal output from the real local setup:
Observed result after fix: The patched generated gateway service PATH and runtime bootstrap PATH both include
/home/shb/.local/share/pnpm/bin, while the currently installed service PATH did not.What was not tested: No known gaps.
Test plan
pnpm test src/daemon/service-env.test.ts src/infra/path-env.test.tsgit diff --check