Repository navigation
Description
Summary
The ghcr.io/openclaw/openclaw:2026.4.26 image ships incomplete copies of typebox 1.1.28 in extensions/xai/node_modules/typebox/ and extensions/browser/node_modules/typebox/. Multiple subdirectories are missing files that the bundled index.mjs barrel-re-exports try to require:
system/memory/index.mjsdoesexport * as Memory from './memory.mjs'but the file isn't there. It's also missingmetrics.mjsandupdate.mjs.guard/guard.mjsdoes... from './string.mjs'— also missing.
Result: at every CLI invocation, the loader logs
[plugins] xai failed to load from /app/dist/extensions/xai/index.js:
Error: Cannot find module './memory.mjs'
Require stack:
- /app/dist/extensions/xai/node_modules/typebox/build/system/memory/index.mjs
then (after a workaround patches that) the next missing file:
Cannot find module './string.mjs'
- /app/dist/extensions/xai/node_modules/typebox/build/guard/guard.mjs
If xai (or browser) is enabled in plugins.entries.<name>.enabled, this blocks every openclaw agent invocation with the loader stack trace cascading up to runCli.
Reproduction (any host with podman/docker)
docker run --rm --entrypoint sh ghcr.io/openclaw/openclaw:2026.4.26 -c '
ls /app/dist/extensions/xai/node_modules/typebox/build/system/memory/
'
# observed: assign.mjs clone.mjs create.mjs discard.mjs index.mjs (5 files)
docker run --rm --entrypoint sh ghcr.io/openclaw/openclaw:2026.4.26 -c '
ls /app/dist/extensions/openai/node_modules/typebox/build/system/memory/
'
# expected: 16 files including memory.mjs, metrics.mjs, update.mjs, and their .d.mts pairs10+ other extensions ship the complete typebox bundle (openai, anthropic, brave, kimi-coding, discord, lmstudio, diffs, slack, whatsapp, tavily). Only xai and browser are truncated. The missing files exist in the runtime-deps cache at /home/node/.openclaw/plugin-runtime-deps/openclaw-2026.4.26-*/node_modules/typebox/build/system/memory/memory.mjs, so the source artifact is fine — this is a packaging step truncation, not an upstream typebox issue.
Workaround (in-image patch)
docker exec --user root <container> sh -c '
rm -rf /app/dist/extensions/xai/node_modules/typebox /app/dist/extensions/browser/node_modules/typebox
cp -r /app/dist/extensions/openai/node_modules/typebox /app/dist/extensions/xai/node_modules/typebox
cp -r /app/dist/extensions/openai/node_modules/typebox /app/dist/extensions/browser/node_modules/typebox
'After this patch + a docker restart, agent invocations succeed and the xai/browser plugins load cleanly.
Adjacent
- [Bug]: jiti plugin loader fails to resolve typebox barrel re-exports ('./else.mjs', './el_GR.mjs') — breaks anthropic/google/lmstudio/xai/memory-core on 2026.4.22/4.23 Linux #71233 (closed 2026-04-26) — same shape (typebox barrel re-export), but fixed loader-side ("ESM-safe aliases for mirrored runtime deps"). Our finding is image-side: the extensions still ship incomplete bundles.
- [Bug]: @openclaw/discord@2026.3.13 fails on openclaw@2026.4.26: missing plugin-sdk/discord export #73685 (open) —
@openclaw/discord@2026.3.13fails on openclaw@2026.4.26 with a missing plugin-sdk/discord export. Pattern: 4.26 has plugin-bundling regressions on multiple extensions.
Versions
ghcr.io/openclaw/openclaw:2026.4.26, sha25604e27383656941e59fba80a5a9c28b709f240ea980bd2cb375e4a7786d5a7a20- typebox 1.1.28 (bundled inside extensions); 1.1.33 also exists in
plugin-runtime-deps/
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Apr 28, 2026
Thanks for the context here. I did a careful shell check against current
main, and this is already implemented.The reported 2026.4.26 Docker packaging regression is fixed in the shipped v2026.4.27 artifact and current main keeps the same runtime-dependency boundary: xai/browser no longer carry the broken plugin-local TypeBox trees, and their entrypoints import successfully against the complete package-root TypeBox install.
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review details
Best possible solution:
Keep the v2026.4.27-and-newer packaging behavior, where xai/browser resolve TypeBox from the complete package-root dependency tree, and rely on release artifact checks to prevent reintroducing incomplete bundled dependency payloads.
Do we have a high-confidence way to reproduce the issue?
Yes. The original report gives a precise Docker reproduction against ghcr.io/openclaw/openclaw:2026.4.26, and the same artifact-level checks against ghcr.io/openclaw/openclaw:2026.4.27 show the missing-file path no longer exists and both affected plugin entrypoints import successfully.
Is this the best way to solve the issue?
Yes. Shipping a corrected release artifact and keeping local runtime-dependency staging opt-in is the narrow maintainable fix; the immutable 2026.4.26 image remains broken, but v2026.4.27 or newer resolves the observable user problem.
Security review:
Security review: This is a non-PR packaging bug triage item; no patch diff was reviewed for security or supply-chain regressions.
What I checked:
extensions/xai/package.json:7, 46888f5afbe9)extensions/browser/package.json:7, 46888f5afbe9)scripts/stage-bundled-plugin-runtime-deps.mjs:61, 46888f5afbe9)package.json:1641, 46888f5afbe9)Likely related people:
scripts/stage-bundled-plugin-runtime-deps.mjs,extensions/xai/package.json,extensions/browser/package.json)package.json,src/plugins/bundled-runtime-deps-materialization.ts,src/plugins/bundled-runtime-deps.test.ts)Codex review notes: model gpt-5.5, reasoning high; reviewed against 46888f5afbe9; fix evidence: release v2026.4.27, commit cbc2ba093146.