Bug Report
Version
4.1 (upgrading from a prior version)
OS
macOS 26.3 (arm64) / Mac mini
What happened
After updating to OpenClaw 4.1, Telegram and Discord plugins fail to load with Cannot find module errors. The gateway starts but plugins are completely broken.
Error output
[plugins] telegram failed to load: Error: Cannot find module 'grammy'
[plugins] discord failed to load: Error: Cannot find module '@buape/carbon'
Subsequent restarts revealed additional missing deps in sequence:
grammy
@buape/carbon
@grammyjs/runner
@grammyjs/transformer-throttler
Root cause
The postinstall script (scripts/postinstall-bundled-plugins.mjs) failed silently during the npm update due to a sharp build error, leaving plugin dependencies uninstalled. The gateway continued running with stale bundled code that required these packages.
Workaround
Manually install the missing packages:
cd /opt/homebrew/lib/node_modules/openclaw
npm install grammy @buape/carbon @grammyjs/runner @grammyjs/transformer-throttler
Then restart the gateway.
Expected behavior
The update process should either:
- Ensure postinstall completes successfully (or retries) before the new version goes live, OR
- Surface a clear error/warning to the user that plugin deps are missing and Telegram/Discord won't work until
npm install is re-run manually
Steps to reproduce
- Run
openclaw update (or npm install -g openclaw) to upgrade to 4.1
- Restart the gateway
- Run
openclaw status — Telegram and Discord show load failures
Bug Report
Version
4.1 (upgrading from a prior version)
OS
macOS 26.3 (arm64) / Mac mini
What happened
After updating to OpenClaw 4.1, Telegram and Discord plugins fail to load with
Cannot find moduleerrors. The gateway starts but plugins are completely broken.Error output
Subsequent restarts revealed additional missing deps in sequence:
grammy@buape/carbon@grammyjs/runner@grammyjs/transformer-throttlerRoot cause
The
postinstallscript (scripts/postinstall-bundled-plugins.mjs) failed silently during the npm update due to asharpbuild error, leaving plugin dependencies uninstalled. The gateway continued running with stale bundled code that required these packages.Workaround
Manually install the missing packages:
cd /opt/homebrew/lib/node_modules/openclaw npm install grammy @buape/carbon @grammyjs/runner @grammyjs/transformer-throttlerThen restart the gateway.
Expected behavior
The update process should either:
npm installis re-run manuallySteps to reproduce
openclaw update(ornpm install -g openclaw) to upgrade to 4.1openclaw status— Telegram and Discord show load failures