Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
Across all published 2026.5.x releases (2026.5.22, .24, .26, .27 latest, 2026.5.28-beta.1), @vector-im/matrix-bot-sdk is missing from the package's declared dependencies, causing the Matrix bridge to crash-loop on a clean npm install -g.
Steps to reproduce
mkdir openclaw-sandbox && cd openclaw-sandbox && npm init -ynpm install openclaw@2026.5.27- Verify the SDK is absent:
ls node_modules/openclaw/node_modules/@vector-im→ not foundls node_modules/@vector-im→ not found
- (Optional, no install) confirm via the registry:
npm view openclaw@2026.5.27 dependencies --json | grep -i matrix- Returns no matrix-bot-sdk; only
./plugin-sdk/matrix(in-tree path underexports, not a runtime dep)
- Compare against last known good:
npm view openclaw@2026.4.14 dependencies --json | grep -i matrix- Returns
matrix-js-sdk: 41.3.0and@matrix-org/matrix-sdk-crypto-wasm: 18.0.0
Expected behavior
@vector-im/matrix-bot-sdk (or whichever SDK the 2026.5.x Matrix bridge imports at runtime) resolves from node_modules after a clean global install, so the Matrix bridge starts without MODULE_NOT_FOUND. In 2026.4.14 the corresponding SDKs (matrix-js-sdk and @matrix-org/matrix-sdk-crypto-wasm) are declared and resolve cleanly.
Actual behavior
@vector-im/matrix-bot-sdk is absent from every 2026.5.x release's dependencies, bundledDependencies, peerDependencies, and optionalDependencies. Sandbox install of 2026.5.22 on 2026-05-28 confirmed both node_modules/openclaw/node_modules/@vector-im and node_modules/@vector-im are not created. Same shape verified statically via npm view for 2026.5.22, 2026.5.24, 2026.5.26, 2026.5.27, and 2026.5.28-beta.1.
OpenClaw version
2026.5.27 (current latest); also reproduced on 2026.5.22, 2026.5.24, 2026.5.26, 2026.5.28-beta.1
Operating system
Windows 11 Pro 10.0.26200
Install method
npm global (npm install -g openclaw@<version>); also verified statically via npm view against the published registry tarballs
Model
N/A — packaging-time bug, occurs before any model is invoked
Provider / routing chain
N/A — packaging-time bug, occurs before any request is dispatched
Additional provider/model setup details
No response
Logs, screenshots, and evidence
$ npm view openclaw@2026.5.27 dependencies --json | grep -i matrix
(no matrix-bot-sdk — full --json output contains only "./plugin-sdk/matrix" under "exports", which is an in-tree path, not a runtime dep)
$ npm view openclaw@2026.4.14 dependencies --json | grep -i matrix
"matrix-js-sdk": "41.3.0",
"@matrix-org/matrix-sdk-crypto-wasm": "18.0.0"
$ npm view openclaw@2026.5.27 bundledDependencies bundleDependencies peerDependencies optionalDependencies
{ 'sqlite-vec': '0.1.9' }
(only optionalDependencies has an entry; no matrix-bot-sdk in any of the four fields)
Sandbox install (2026-05-28, 2026.5.22 tarball, fresh npm project):
$ Test-Path "$sandbox\node_modules\openclaw\node_modules\@vector-im\matrix-bot-sdk" # False
$ Test-Path "$sandbox\node_modules\@vector-im\matrix-bot-sdk" # FalseImpact and severity
Affected: anyone running a fresh npm install -g openclaw@2026.5.x who relies on the Matrix bridge.
Severity: high — Matrix bridge crash-loops on first boot; install reports success, failure only surfaces at runtime.
Frequency: 5/5 published 2026.5.x versions tested (2026.5.22, 2026.5.24, 2026.5.26, 2026.5.27, 2026.5.28-beta.1).
Consequence: forces users on 2026.4.14 to stay pinned, or to manually npm install @vector-im/matrix-bot-sdk into the global openclaw dir — brittle and undocumented.
Additional information
Last known good: 2026.4.14 (declares matrix-js-sdk@41.3.0 + @matrix-org/matrix-sdk-crypto-wasm@18.0.0).
First known bad in this regression window: 2026.5.22 (also affects 2026.5.24, 2026.5.26, 2026.5.27 latest, 2026.5.28-beta.1 beta).
Looks like the same packaging-omission class as #54760 (WASM crypto deps missing from dist). Likely candidates:
@vector-im/matrix-bot-sdkis listed only indevDependenciesof the source repo and the publish pipeline assumes it'll be bundled but doesn't copy it.- A
pnpmworkspace symlink in source doesn't get rewritten into a runtime dep on publish. - A
bundledDependenciesentry was removed/forgotten in a 2026.5.x packaging refactor.
Suggested fix: add @vector-im/matrix-bot-sdk to dependencies (or bundledDependencies) for the next 2026.5.x patch release, and gate publishing on an install-time smoke check that the SDK is resolvable from the dist.
Related: #28370, #36501, #41431, #54760, #61787 — same packaging-omission class across prior versions. #87307 — different bug, same affected version line.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 29, 2026
Thanks for writing this up. I checked the repo boundary, and this lives outside the OpenClaw source shell.
Close as not actionable in core: the report checks the root
openclawpackage, but Matrix is published and installed as@openclaw/matrix, whose shipped 2026.5.27 and 2026.5.28-beta.1 metadata already declares the runtime SDK dependencies.So I’m closing this as outside the OpenClaw source repository rather than keeping it open as core work.
Review details
Best possible solution:
Keep Matrix runtime dependencies owned by
@openclaw/matrixand use the documented plugin install/update path; reopen only with a crash trace from a clean plugin install.Do we have a high-confidence way to reproduce the issue?
No. The root-package dependency absence can be observed, but that is expected because Matrix is a separate plugin; the supported
@openclaw/matrixpackages for 2026.5.27 and 2026.5.28-beta.1 declare the runtime SDK deps.Is this the best way to solve the issue?
No. Adding Matrix SDK deps to the root
openclawpackage would move plugin-owned runtime deps into core; the maintainable solution is the existing external plugin package and install/update path.Security review:
Security review: Non-PR support/packaging triage; no patch security review applies.
AGENTS.md: found and applied where relevant.
What I checked:
@openclaw/matrix, includingmatrix-js-sdk, crypto packages,fake-indexeddb, and media/validation deps. (extensions/matrix/package.json:10, ed62aefeeeb0)dist/extensions/matrix/**, matching the external/downloadable plugin model instead of bundling Matrix deps intoopenclaw. (package.json:93, ed62aefeeeb0)@openclaw/matrix@2026.5.27declaresmatrix-js-sdk,@matrix-org/matrix-sdk-crypto-nodejs,@matrix-org/matrix-sdk-crypto-wasm,fake-indexeddb, and related runtime deps.@openclaw/matrix@2026.5.28-beta.1also declares the Matrix runtime dependencies, so the beta line does not show the claimed plugin-package omission.openclaw plugins install @openclaw/matrix. Public docs:docs/channels/matrix.md. (docs/channels/matrix.md:9, ed62aefeeeb0)matrix-js-sdk, not@vector-im/matrix-bot-sdk, matching the dependency declared by the plugin package. (extensions/matrix/src/matrix/sdk.ts:7, ed62aefeeeb0)Likely related people:
extensions/matrix/package.json,docs/channels/matrix.md,scripts/lib/official-external-channel-catalog.json)package.json)Codex review notes: model gpt-5.5, reasoning high; reviewed against ed62aefeeeb0.
JMC85x commentedon May 31, 2026
Proposed fix + workaround for affected users
Filing-author follow-up with a concrete patch the maintainers can drop in, plus a short workaround for anyone hitting this in the wild while a
2026.5.xpatch ships.1. Suggested
package.jsonpatchAdd the SDK to runtime
dependencies.bundledDependenciesalso works, but plaindependenciesis preferable so peer-dedup still happens for anyone already pulling matrix SDKs at the top level:{ "name": "openclaw", "version": "2026.5.28", "dependencies": { + "@vector-im/matrix-bot-sdk": "^0.7.1", "...": "..." } }(Pin to whatever the dist was built against —
npm ls @vector-im/matrix-bot-sdkinside the source repo'spnpmworkspace will give the resolved version. From the distrequiresite it looks like the0.7.xline, but the maintainers should confirm.)2. Pre-publish smoke test
A one-liner that would have caught this regression — runs against the freshly-built tarball, not the source workspace, so workspace symlinks can't hide a missing runtime dep:
Wire that into the publish workflow before
npm publishruns. The cost is one extra ~10s install; the upside is this exact bug class (#28370, #36501, #41431, #54760, #61787, and now #87990) becomes impossible to ship.3. Workaround for users stuck on
2026.5.xtodayUntil a patched
2026.5.xlands, anyone needing a 2026.5 feature can either:Option A — pin to last-good:
(This is what we've reverted to in our own deployment — note the 2026.5.x feature set is unavailable here.)
Option B — manually install the missing SDK into the openclaw dir:
Brittle (gets wiped on the next
npm install -g openclaw), but unblocks the Matrix bridge in the meantime.If a maintainer would prefer this come in as a PR against the publish-pipeline repo rather than a comment, drop a pointer and I'll open one. Otherwise the diff above is small enough to land directly.
RomneyDa commentedon Jun 9, 2026
Thanks for the follow-up. The root-package check is not a valid current repro for 2026.5.27+.
What happened is that an earlier 2026.5 Matrix packaging bug (#77896) made host npm installs look like a missing root dependency problem. The fix direction was not to add Matrix SDK packages to the root
openclawpackage; Matrix was externalized again, and the Matrix runtime dependencies now belong to the@openclaw/matrixplugin package.Current behavior checked:
openclaw@2026.5.27does not shipdist/extensions/matrix/**and does not declare Matrix SDK dependencies. That is expected.@openclaw/matrix@2026.5.27declares the Matrix runtime dependencies, includingmatrix-js-sdkand the Matrix crypto packages.matrix-js-sdk, not@vector-im/matrix-bot-sdk.If Matrix is configured but missing after an upgrade, the supported repair is:
or explicitly:
Do not manually install
@vector-im/matrix-bot-sdkor Matrix SDK packages into the root OpenClaw package; that bypasses the plugin install record and will be lost on update.I opened a small docs follow-up so this upgrade handoff is clearer: #91753
Closing this issue because there is no current core/root-package dependency omission to fix. If Matrix still crash-loops after
@openclaw/matrixis installed or repaired, please open a fresh issue withopenclaw plugins list --json,openclaw channels status, the OpenClaw version, and the gateway log line from the failed Matrix startup.