Skip to content

fix(desktop): Bun Gateways need an installed Node for computer control - #159462

Merged
steipete merged 1 commit into
mainfrom
steipete/friendly-lehmann-463b3f
Sep 27, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/friendly-lehmann-463b3f

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: a Bun Gateway cannot control its own managed desktop unless a separate Node.js is installed, which blocks the Bun-only macOS and Tauri desktop installs.

User Impact

Gateway computer control now runs its private helper on the Gateway's own runtime. A Bun Gateway controls its managed desktop with no node on the host and zero paired nodes. Node Gateways keep exactly the executable they used before.

Behavior change, accepted by the owner: a Bun Gateway that also has Node installed now runs the helper on Bun too, instead of finding that Node. On Bun builds without openclaw/bun#12 (upstream Bun 1.4.2 and the current CI pin), closing a computer execution that launched a desktop app takes the Gateway's 30-second cleanup path. The app is stopped on close either way, as it already was under Node. The fix ships in the fork release openclaw-v1.4.3-20260927-a70be26b47-webkit-35e8970dfd, which the desktop apps pin.

Why This Change Was Made

The Node requirement was incidental, not a Bun incompatibility. #147275 resolved node from the desktop PATH, and #151933 moved that lookup to resolveNodeRuntimeExecutable to skip Bun's node shim. Under Node that owner already returns process.execPath; under Bun it went looking for a second runtime. The helper now spawns process.execPath with resolveRuntimeWorkerArgv, the contract most runtime workers already use.

The provider stack runs on Bun. On Linux and Windows the CUA provider loads the @trycua/cua-driver Node-API addon, which imports only napi_* symbols that the fork implements (no libuv or node:: symbols). On macOS it speaks MCP over stdio to the app-owned cua-driver binary and never loads the addon.

Live proof surfaced one runtime difference that belongs in the fork, not here. Node marks inherited descriptors close-on-exec at startup (uv_disable_stdio_inheritance in Node's src/node.cc); the fork did not on POSIX. An app the CUA driver launched therefore inherited the helper's stdio protocol channel. The helper exited cleanly, but the Gateway waited for EOF until its 30 second cancel timer stopped the orphaned app. The fix is openclaw/bun#12, now merged. Until a Bun build includes it, computer control still works; closing an execution that launched an app just takes the 30 second cleanup path, which the Bun compatibility page now documents.

The Linux live proof gains --runtime <executable>: it starts the built Gateway on that executable, refuses a PATH containing node, records each owned process's executable from /proc/<pid>/exe, and fails if the Gateway, its helper, or any owned process ran elsewhere or on Node.

Evidence

Linux live proof on Blacksmith Testbox (tbx_01m3gkbkem3hy9c8wny4e7vyhp, hydration run), driver and Gateway both on Bun, node absent from PATH, /usr/local/bin/node moved aside, zero paired nodes (node.list empty). Each run covered screenshot, list_apps discovery and launch of Mousepad, click, typing a unique marker, accessibility readback of that marker, helper join on execution close, replacement generation, stale-generation rejection, and joined Gateway shutdown (exit 0, all owned processes gone). Every owned process ran on the selected Bun executable or a desktop binary; none ran Node.

Bun build stdio fdinfo flags Execution close after launching Mousepad
CI pin 1.4.3-canary.1+ddfce5d01 00 / 01 / 01 30037 ms
fork main 9e3414b3, built on the box 00 / 01 / 01 30042 ms
9e3414b3 + openclaw/bun#12 02000000 / 02000001 / 02000001 132 ms
Node v24.19.0, for reference 02000000 / 02000001 / 02000001 not stalled

A same-box strace comparison showed the Gateway itself (not the helper) sending the orphaned Mousepad SIGTERM: 12 ms after helper exit on Node, 30 s after it on Bun. /proc confirmed Mousepad's fds 0-2 were the helper's stdio sockets under Bun and closed under Node.

Managed desktop, then Mousepad before and after typing through the shared CUA provider, all from the Bun Gateway with the fork fix:

Managed desktop captured by the Bun Gateway

Mousepad before synthetic input

Mousepad after synthetic input

Tests and checks:

  • Node, unchanged behavior: pnpm test src/gateway/desktop/computer-process.runtime.test.ts src/gateway/desktop/computer-process.test.ts src/gateway/desktop/computer-authority.runtime.test.ts src/gateway/desktop/computer-service.test.ts → 35 passed.
  • Bun regression: OPENCLAW_VITEST_RUNTIME=bun pnpm test src/gateway/desktop/computer-process.runtime.test.ts fails on the previous code (runtime:/opt/homebrew/Cellar/node/26.9.0/bin/node instead of the Bun executable) and passes with this change; computer-authority.runtime.test.ts also passes on Bun.
  • The CUA addon itself on Bun (macOS arm64): configured driver, trusted session, screen size, cursor, Rust-future abort, and clean exit behave identically to Node.
  • Test cost: no new test; one assertion line in an existing case. pnpm test src/gateway/desktop/computer-process.runtime.test.ts --maxWorkers=1 took 25-43 s wall including the wrapper, with cases at 2.7-4.1 s on Node, unchanged from before.
  • pnpm tsgo:core, pnpm tsgo:scripts, oxlint and oxfmt on changed files, markdownlint, docs:check-mdx, docs:check-links, and git diff --check pass. Codex autoreview is clean at P2 after one accepted finding (the proof no longer strips whole PATH directories).

macOS app worker (dist/mac-node-worker.js): its computer-use path needs no Node on Bun. On darwin the provider uses the MCP stdio client to the app-owned cua-driver, spawned through the supervisor relay on process.execPath, and never loads the addon. It never starts the Gateway computer host. The one real-Node dependency in that worker is adjacent: the Browser plugin's managed Chrome MCP server still uses resolveNodeRuntimeExecutable.

Follow-ups, not in this PR: CI's pinned fork build predates openclaw/bun#12, and bumping it needs a new fork release; the Chrome MCP launch above needs the same runtime treatment.

A Bun Gateway could not control its managed desktop without a separate
Node.js install: the computer host resolved a real Node from the desktop
PATH (#147275, then #151933 skipped Bun's node shim). Under Node that
owner already returned process.execPath; under Bun it demanded a second
runtime even though the helper and the CUA provider run on Bun.

Spawn the helper with process.execPath and resolveRuntimeWorkerArgv, the
contract other runtime workers use. Node keeps the same executable.

The runtime test now asserts the helper runs on the host's executable;
it fails under Bun with the previous code, which launched a PATH node.
The Linux live proof gains --runtime to start the built Gateway on
another executable with no node on PATH and to record every owned
process's executable. Docs drop the Node requirement and note that
Bun 1.4.2 lets launched desktop apps inherit the helper's streams until
Bun marks inherited descriptors close-on-exec like Node (openclaw/bun#12).
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts size: S labels Sep 27, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 1:55 AM ET / 05:55 UTC.

ClawSweeper review

What this changes

The branch runs the Gateway’s private computer-control helper on the Gateway’s own runtime, extends the Linux live-proof script to select a runtime, strengthens its runtime assertion, and updates Bun desktop documentation.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep this PR open. The fix is still needed on current main, and the supplied live evidence supports Bun-only desktop control. The unconditional runtime switch also changes working Bun-plus-Node installations to a Bun build that can stall execution cleanup and terminate a launched app.

Priority: P1
Reviewed head: ca3d1f76357c88b54d3059c663ec87b722a28633
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The real desktop demonstration is useful, but the runtime switch has a concrete compatibility regression on supported Bun builds.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The changed Gateway helper launcher is exercised by the reported Linux Bun Gateway-to-CUA desktop flow with no Node on PATH and zero paired nodes; the PR reports runtime identities, successful input/readback, and cleanup measurements, while inspected images show the visible typing result. The linked hydration run is cancelled with no retained artifacts, so its process trace remains body-reported. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The changed Gateway helper launcher is exercised by the reported Linux Bun Gateway-to-CUA desktop flow with no Node on PATH and zero paired nodes; the PR reports runtime identities, successful input/readback, and cleanup measurements, while inspected images show the visible typing result. The linked hydration run is cancelled with no retained artifacts, so its process trace remains body-reported. No stored-data contract changes.
Evidence reviewed 9 items Current main still selects Node: The current-main launcher resolves a real Node executable and rejects Bun hosts without one; the PR removes that guard.
Introduced runtime switch: The pinned merge-base-to-head patch replaces the resolved Node executable with process.execPath for every Gateway computer helper.
Existing cleanup limit: The helper’s close path waits for process exit and cancels it after 30 seconds; this makes the reported inherited-stream behavior observable to callers.
Findings 1 actionable finding [P1] Preserve working Bun desktop cleanup until the runtime fix ships
Security None None.

How this fits together

The Gateway computer service starts a private helper for its managed desktop. That helper loads the configured computer plugin, sends actions to the desktop driver, and returns observations to the requesting Gateway client.

flowchart LR
  A[Computer request] --> B[Gateway computer service]
  C[Managed desktop environment] --> B
  B --> D[Helper runtime selection]
  D --> E[Private computer helper]
  E --> F[CUA desktop driver]
  F --> G[Desktop actions and observations]
Loading

Decision needed

Question Recommendation
Should existing Bun-plus-Node desktop installations switch to the Bun helper before the inherited-descriptor fix is available in a supported Bun build? Preserve the Node fallback: Use the existing Node resolver on Bun hosts that have Node, and use Bun only when Node is unavailable until the descriptor fix ships.

Why: The branch fixes Bun-only control but changes cleanup behavior for an already working installation; accepting that upgrade cost or preserving the fallback requires an explicit compatibility choice.

Before merge

  • Preserve working Bun desktop cleanup until the runtime fix ships (P1) - This unconditional process.execPath selection moves existing Bun-plus-Node Gateways from their Node helper to Bun. The PR’s live comparison reports that the currently pinned and unpatched Bun builds then wait about 30 seconds on execution close and stop the launched app, while the corrected Bun build closes in 132 ms; the cited fork fix is still open. Preserve the working Node path where available or land alongside a supported fixed Bun build.
  • Resolve merge risk (P1) - Existing Bun Gateways that have Node installed currently use a Node helper. After this switch, supported Bun builds without the inherited-descriptor fix can make execution close wait about 30 seconds and then stop the launched app.
  • Complete next step (P2) - Resolve the existing Bun-plus-Node cleanup regression or obtain explicit owner acceptance of that upgrade behavior before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] Preserve working Bun desktop cleanup until the runtime fix ships — src/gateway/desktop/computer-process.ts:185
Agent review details

Security

None.

PR surface

Source -4, Tests +2, Docs +3, Other +49. Total +50 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 6 -4
Tests 1 3 1 +2
Docs 2 4 1 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 1 59 10 +49
Total 5 68 18 +50

Review metrics

Metric Value Why it matters
Runtime and proof delta production −4 net lines, tests +2 net lines, live-proof script +49 net lines The production launcher shrinks; most growth records and checks the real-runtime proof.

Stored data model

Persistent data-model change detected: serialized state: scripts/dev/computer-use-gateway-live-proof.ts, unknown-data-model-change: scripts/dev/computer-use-gateway-live-proof.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Keep Node for existing Bun hosts (recommended)
    Retain the current Node-backed helper when Node is available, while enabling Bun-only hosts and documenting their current cleanup limit.
  2. Land with a fixed Bun build
    Wait for the fork fix to ship in a supported Bun build, then prove both fresh Bun-only use and upgrades from Bun-plus-Node setups.
  3. Own the temporary regression
    Explicitly accept the reported 30-second close and launched-app termination on affected Bun builds.

Technical review

Best possible solution:

Preserve the working Node helper for Bun installations that have Node until a supported Bun build contains the descriptor fix; allow Node-free Bun installations through the new path with its cleanup limitation clearly documented and verified.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main’s Node resolver rejects a Bun Gateway without installed Node, and the PR supplies a real Linux Gateway/desktop scenario; this read-only review did not rerun it.

Is this the best way to solve the issue?

No. Using the Gateway’s executable solves Bun-only startup, but the unconditional switch changes cleanup on existing Bun-plus-Node installations before the Bun descriptor fix ships.

Full review comments:

  • [P1] Preserve working Bun desktop cleanup until the runtime fix ships — src/gateway/desktop/computer-process.ts:185
    This unconditional process.execPath selection moves existing Bun-plus-Node Gateways from their Node helper to Bun. The PR’s live comparison reports that the currently pinned and unpatched Bun builds then wait about 30 seconds on execution close and stop the launched app, while the corrected Bun build closes in 132 ms; the cited fork fix is still open. Preserve the working Node path where available or land alongside a supported fixed Bun build.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 92b337d61552.

Labels

Label changes:

  • add P1: The PR addresses a broken desktop workflow but can regress cleanup for existing Bun-plus-Node users.
  • add merge-risk: 🚨 compatibility: The introduced runtime selection replaces the working Node-backed helper on existing Bun installations.
  • add merge-risk: 🚨 availability: Affected Bun builds can stall execution close for about 30 seconds before the launched app is stopped.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed Gateway helper launcher is exercised by the reported Linux Bun Gateway-to-CUA desktop flow with no Node on PATH and zero paired nodes; the PR reports runtime identities, successful input/readback, and cleanup measurements, while inspected images show the visible typing result. The linked hydration run is cancelled with no retained artifacts, so its process trace remains body-reported. No stored-data contract changes.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The changed Gateway helper launcher is exercised by the reported Linux Bun Gateway-to-CUA desktop flow with no Node on PATH and zero paired nodes; the PR reports runtime identities, successful input/readback, and cleanup measurements, while inspected images show the visible typing result. The linked hydration run is cancelled with no retained artifacts, so its process trace remains body-reported. No stored-data contract changes.

Label justifications:

  • P1: The PR addresses a broken desktop workflow but can regress cleanup for existing Bun-plus-Node users.
  • merge-risk: 🚨 compatibility: The introduced runtime selection replaces the working Node-backed helper on existing Bun installations.
  • merge-risk: 🚨 availability: Affected Bun builds can stall execution close for about 30 seconds before the launched app is stopped.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The changed Gateway helper launcher is exercised by the reported Linux Bun Gateway-to-CUA desktop flow with no Node on PATH and zero paired nodes; the PR reports runtime identities, successful input/readback, and cleanup measurements, while inspected images show the visible typing result. The linked hydration run is cancelled with no retained artifacts, so its process trace remains body-reported. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Gateway helper launcher is exercised by the reported Linux Bun Gateway-to-CUA desktop flow with no Node on PATH and zero paired nodes; the PR reports runtime identities, successful input/readback, and cleanup measurements, while inspected images show the visible typing result. The linked hydration run is cancelled with no retained artifacts, so its process trace remains body-reported. No stored-data contract changes.

Evidence

What I checked:

  • Current main still selects Node: The current-main launcher resolves a real Node executable and rejects Bun hosts without one; the PR removes that guard. (src/gateway/desktop/computer-process.ts:180, 92b337d61552)
  • Introduced runtime switch: The pinned merge-base-to-head patch replaces the resolved Node executable with process.execPath for every Gateway computer helper. (src/gateway/desktop/computer-process.ts:185, ca3d1f76357c)
  • Existing cleanup limit: The helper’s close path waits for process exit and cancels it after 30 seconds; this makes the reported inherited-stream behavior observable to callers. (src/gateway/desktop/computer-process.ts:86, ca3d1f76357c)
  • Current Bun test build predates the fork fix: The repository’s Linux Bun test action remains pinned to the earlier ddfce5d01 fork build. (.github/actions/setup-test-bun/action.yml:15, 92b337d61552)
  • Dependency fix is proposed, not merged: The explicitly cited fork PR changes Bun startup to mark inherited POSIX descriptors close-on-exec. GitHub reports that PR open and unmerged. (src/jsc/bindings/c-bindings.cpp:754, 0bdc028ffe24)
  • Reported real-runtime comparison: The PR body reports a Linux Gateway with no Node on PATH and zero paired nodes completing screenshot, launch, typing, accessibility readback, and cleanup. It measures execution close after app launch at about 30 seconds on the pinned and unpatched Bun builds versus 132 ms on a Bun build containing the fork fix. The linked hydration workflow is cancelled and has no retained artifacts, so these process measurements are body-reported.

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • wangmiao0668000666: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Preserve cleanup for existing Bun-plus-Node installations and show the execution-close result on both that upgrade path and a Node-free Bun host.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer response to the ClawSweeper review of ca3d1f76:

  • [P1] Runtime switch on Bun hosts with Node: owner decision is to land. The desktop installs are moving to Bun as their only runtime, so the helper runs on the Gateway's own executable. Keeping a Node helper wherever Node happens to be installed would preserve the dependency this change removes. One correction to the risk description: the launched app is stopped on execution close under Node as well. On both runtimes the Gateway's scope cleanup sends the orphaned app SIGTERM; strace showed that 12 ms after helper exit on Node and 30 s after it on Bun builds without the descriptor fix. The only behavior change is therefore that 30-second close on those builds, which the Bun compatibility page documents. The fix is merged as fix(process): mark inherited descriptors close-on-exec at startup like Node bun#12 (a70be26b47) and is being published as fork release openclaw-v1.4.3-20260927-a70be26b47-webkit-35e8970dfd.
  • Data-model compatibility: no product storage changes. The live-proof script only writes its temporary isolated HOME and configuration plus the named screenshot, log, and result.json artifacts in the output directory it is given. There is no schema, migration, retention, or recovery change.

@steipete
steipete merged commit 6de405d into main Sep 27, 2026
251 of 253 checks passed
@steipete
steipete deleted the steipete/friendly-lehmann-463b3f branch September 27, 2026 06:27
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
…penclaw#159462)

A Bun Gateway could not control its managed desktop without a separate
Node.js install: the computer host resolved a real Node from the desktop
PATH (openclaw#147275, then openclaw#151933 skipped Bun's node shim). Under Node that
owner already returned process.execPath; under Bun it demanded a second
runtime even though the helper and the CUA provider run on Bun.

Spawn the helper with process.execPath and resolveRuntimeWorkerArgv, the
contract other runtime workers use. Node keeps the same executable.

The runtime test now asserts the helper runs on the host's executable;
it fails under Bun with the previous code, which launched a PATH node.
The Linux live proof gains --runtime to start the built Gateway on
another executable with no node on PATH and to record every owned
process's executable. Docs drop the Node requirement and note that
Bun 1.4.2 lets launched desktop apps inherit the helper's streams until
Bun marks inherited descriptors close-on-exec like Node (openclaw/bun#12).
pull Bot pushed a commit to sparkyrider/openclaw that referenced this pull request Sep 28, 2026
…penclaw#160226)

* fix(browser): keep Chrome MCP from probing npm on Bun-only installs

The pinned chrome-devtools-mcp server runs an update check that shells out
to `npm config get registry`. On a Bun-only install there is no npm, so the
Bun-only runtime smoke records an unlisted Node attempt in its browser step.
Launch the server with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1, which its
check-for-updates helper honors before spawning anything.

Drop three expected-node-blockers entries that no longer reproduce on main:
chrome-mcp-user-profile (fixed by openclaw#159422), tool-search-code-probe (source
removed with tool_search_code in openclaw#159398), and computer-control (the host
runs on the Gateway's runtime since openclaw#159462; never exercised on headless
Linux).

* fix(browser): leave custom Chrome MCP servers' update checks alone

Only the packaged, pinned chrome-devtools-mcp server gets the update-check
opt-out. Custom mcpCommand servers are operator-managed and keep their
upstream update notices; the transport now forwards the environment the
option normalizer chose.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…penclaw#160226)

* fix(browser): keep Chrome MCP from probing npm on Bun-only installs

The pinned chrome-devtools-mcp server runs an update check that shells out
to `npm config get registry`. On a Bun-only install there is no npm, so the
Bun-only runtime smoke records an unlisted Node attempt in its browser step.
Launch the server with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1, which its
check-for-updates helper honors before spawning anything.

Drop three expected-node-blockers entries that no longer reproduce on main:
chrome-mcp-user-profile (fixed by openclaw#159422), tool-search-code-probe (source
removed with tool_search_code in openclaw#159398), and computer-control (the host
runs on the Gateway's runtime since openclaw#159462; never exercised on headless
Linux).

* fix(browser): leave custom Chrome MCP servers' update checks alone

Only the packaged, pinned chrome-devtools-mcp server gets the update-check
opt-out. Custom mcpCommand servers are operator-managed and keep their
upstream update notices; the transport now forwards the environment the
option normalizer chose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant