Repository navigation
Description
Draft GitHub issue — OpenClaw Browser runtime deps stale import persists on 2026.5.3-1
Repository: openclaw/openclaw
Title
Browser plugin still imports stale plugin-runtime-deps/openclaw-2026.4.26... path on 2026.5.3-1 after update; doctor --fix and registry refresh do not repair
Body
Summary
The Browser plugin is enabled and reported as loaded on OpenClaw 2026.5.3-1, but openclaw browser status fails because Gateway still imports a stale generated runtime path from 2026.4.26:
GatewayClientRequestError: INVALID_REQUEST: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/jarvis/.openclaw/plugin-runtime-deps/openclaw-2026.4.26-da6bdffc3d96/dist/extensions/browser/register.runtime.js' imported from /Users/jarvis/.openclaw/plugin-runtime-deps/openclaw-2026.4.26-da6bdffc3d96/dist/plugin-registration-BYsUqVhV.js
This looks related to #75045, but it still reproduced here on 2026.5.3-1.
Environment
OpenClaw: 2026.5.3-1 (2eae30e)
Node: v25.8.1
OS: macOS / Darwin 25.3.0 arm64
Gateway: LaunchAgent, loopback 127.0.0.1:18789
Browser plugin: bundled, loaded, version 2026.5.3
Browser detected: Google Chrome
Verified good state
openclaw plugins inspect browser
@openclaw/browser-plugin
id: browser
Status: loaded
Source: /opt/homebrew/lib/node_modules/openclaw/dist/extensions/browser/index.js
Origin: bundled
Version: 2026.5.3
Commands: browser
Plugin registry also pointed to the current bundled browser plugin:
source: /opt/homebrew/lib/node_modules/openclaw/dist/extensions/browser/index.js
rootDir: /opt/homebrew/lib/node_modules/openclaw/dist/extensions/browser
origin: bundled
enabled: true
packageVersion: 2026.5.3
What failed to repair it
The following did not fix the stale import:
openclaw plugins registry --refresh --json
openclaw gateway restart
openclaw doctor --fix --non-interactive --yes
openclaw gateway restart
rm -rf ~/.openclaw/tmp/jiti
openclaw gateway restart~/.openclaw/plugin-runtime-deps did not exist before the workaround, but Gateway still tried to import from that old path.
Workaround that restored Browser
A local compatibility shim fixed the issue:
BASE="$HOME/.openclaw/plugin-runtime-deps/openclaw-2026.4.26-da6bdffc3d96"
CUR="/opt/homebrew/lib/node_modules/openclaw/dist"
mkdir -p "$BASE/dist"
find "$CUR" -mindepth 1 -maxdepth 1 | while read -r item; do
name=$(basename "$item")
[ -e "$BASE/dist/$name" ] || ln -s "$item" "$BASE/dist/$name"
done
ln -sfn "$CUR/plugin-registration-GAMTDPDK.js" "$BASE/dist/plugin-registration-BYsUqVhV.js"
openclaw gateway restartAfter restart:
openclaw browser status
profile: openclaw
enabled: true
running: false
transport: cdp
cdpPort: 18800
cdpUrl: http://127.0.0.1:18800
detectedBrowser: chrome
detectedPath: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Smoke test:
openclaw browser start
🦞 browser [openclaw] running: true
openclaw browser status
running: true
browser: chrome
Expected behavior
After an OpenClaw update, Gateway/browser runtime imports should use the current bundled plugin/runtime path, or doctor --fix / registry refresh should remove/rebuild the stale generated import reference.
Actual behavior
Gateway continued to import an old generated runtime path from 2026.4.26, despite current plugin registry and plugin inspection showing Browser loaded from 2026.5.3.
Notes
The workaround is intentionally local and reversible. It does not modify the installed OpenClaw package; it only creates the missing compatibility path that Gateway was still trying to import.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 4, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Summary
Keep open: the report is detailed and current main has related doctor/update cleanup, but I did not find proof that the exact Browser stale generated
plugin-registration-*import path reported on2026.5.3-1is fixed on current main.Reproducibility: no. not against current main. The issue gives a strong packaged macOS reproduction on
2026.5.3-1, but this read-only Linux checkout could only verify adjacent source paths and did not establish a failing current-main reproduction.Next step
This is a valid, narrow runtime/update repair candidate, but it should first pin down the stale Browser import path with a targeted regression because current main already has adjacent cleanup safeguards.
Review details
Best possible solution:
Add a targeted upgrade/doctor regression and the smallest generic repair so Browser requests always load the current bundled runtime after stable correction updates, then ship that fix in the next release.
Do we have a high-confidence way to reproduce the issue?
No, not against current main. The issue gives a strong packaged macOS reproduction on
2026.5.3-1, but this read-only Linux checkout could only verify adjacent source paths and did not establish a failing current-main reproduction.Is this the best way to solve the issue?
Unclear. The existing update restart and doctor cleanup direction is maintainable, but the report shows a stale Browser generated import can survive those repairs, so the best next fix is a focused regression plus a narrow generic cleanup or restart repair.
Acceptance criteria:
What I checked:
openclaw browser statusfailing on2026.5.3-1withERR_MODULE_NOT_FOUNDfor a2026.4.26plugin-runtime-depspath whileplugins inspect browserand the registry both point at the current bundled Browser plugin; registry refresh,doctor --fix, and Gateway restarts did not repair it, but a local compatibility shim restored Browser status/start.browser.requestGateway method and lazy-load./register.runtime.js, so a stale generated import path can break the user-visibleopenclaw browsersurface even when metadata says the plugin is loaded. (extensions/browser/plugin-registration.ts:109, a90be474f441)plugin-runtime-deps,bundled-plugin-runtime-deps, explicit stage roots, systemdSTATE_DIRECTORYruntime roots, extension debris, and stale symlinks, then removes them under--fix. (src/commands/doctor/shared/plugin-dependency-cleanup.ts:86, a90be474f441)update.runsuccess now schedules an immediateupdate.runrestart with deferral and cooldown skipped, which targets the class where an old Gateway process lazy-loads chunks removed by the package swap. (src/gateway/server-methods/update.ts:150, a90be474f441)plugin-registration-*module after a correction update. (src/gateway/server-methods/update.test.ts:310, a90be474f441)git tag --containsfor the relevant current-main cleanup commits returned no shipped tag in this checkout. (CHANGELOG.md:246, a90be474f441)Likely related people:
src/commands/doctor/shared/missing-configured-plugin-install.ts,src/commands/doctor/shared/missing-configured-plugin-install.test.ts,CHANGELOG.md)src/gateway/server-methods/update.ts,src/infra/restart.ts,src/commands/doctor/shared/plugin-dependency-cleanup.ts)Remaining risk / open question:
doctor --fixalready failed on2026.5.3-1, so closing from adjacent cleanup code would be premature without live packaged-update proof or a targeted regression.Codex review notes: model gpt-5.5, reasoning high; reviewed against a90be474f441.
Neomail2 commentedon May 4, 2026
Follow-up after further local diagnosis: I believe this issue was a false positive from my environment rather than a confirmed Browser/runtime-deps bug.
What changed:
ai.openclaw.nodeservice was still running an older node-host (2026.4.26) while the Gateway had already been updated to2026.5.3-1./Users/jarvis/.openclaw/plugin-runtime-deps/openclaw-2026.4.26-da6bdffc3d96to:
/Users/jarvis/.openclaw/plugin-runtime-deps/openclaw-2026.4.26-da6bdffc3d96.disabled-20260504-1448openclaw browser statusOKopenclaw browser startOKrunning: true,browser: chromeRevised conclusion: this was most likely stale local node-host/runtime state after update, not an upstream Browser defect. Closing unless I can reproduce it again with Gateway and node both freshly aligned to the current version.