openclaw - 💡(How to fix) Fix [Bug]: Published package is missing plugin-sdk Telegram exports used by third-party plugins [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#58911Fetched 2026-04-08 02:31:17
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

On the currently published OpenClaw package (2026.3.31 in our environment), the npm package exports do not include ./plugin-sdk/telegram (or ./plugin-sdk/telegram-runtime).

That breaks third-party plugins that legitimately depend on Telegram runtime helpers via the plugin SDK surface.

Concrete failure we hit in production while reloading the Telegram Codex cockpit plugin:

Cannot find module '/home/chip/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/telegram'
Require stack:
- /home/chip/.openclaw/extensions/openclaw-codex-app-server/src/controller.ts

Error Message

  1. Plugin fails to load with the missing-module error above

Root Cause

On the currently published OpenClaw package (2026.3.31 in our environment), the npm package exports do not include ./plugin-sdk/telegram (or ./plugin-sdk/telegram-runtime).

That breaks third-party plugins that legitimately depend on Telegram runtime helpers via the plugin SDK surface.

Concrete failure we hit in production while reloading the Telegram Codex cockpit plugin:

Cannot find module '/home/chip/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/telegram'
Require stack:
- /home/chip/.openclaw/extensions/openclaw-codex-app-server/src/controller.ts

Code Example

Cannot find module '/home/chip/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/telegram'
Require stack:
- /home/chip/.openclaw/extensions/openclaw-codex-app-server/src/controller.ts
RAW_BUFFERClick to expand / collapse

Summary

On the currently published OpenClaw package (2026.3.31 in our environment), the npm package exports do not include ./plugin-sdk/telegram (or ./plugin-sdk/telegram-runtime).

That breaks third-party plugins that legitimately depend on Telegram runtime helpers via the plugin SDK surface.

Concrete failure we hit in production while reloading the Telegram Codex cockpit plugin:

Cannot find module '/home/chip/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/root-alias.cjs/telegram'
Require stack:
- /home/chip/.openclaw/extensions/openclaw-codex-app-server/src/controller.ts

Why this looks like a release/package regression

In source trees we inspected, OpenClaw already contains Telegram runtime barrels such as:

  • src/plugin-sdk/telegram-runtime.ts
  • src/plugin-sdk/telegram-runtime-surface.ts

But the published package installed on the host exposes only:

  • ./plugin-sdk/telegram-account
  • ./plugin-sdk/telegram-allow-from
  • ./plugin-sdk/telegram-core
  • ./plugin-sdk/telegram-surface

So third-party plugins can compile against one shape and then fail at runtime against the shipped package.

Repro

  1. Install OpenClaw stable package where package.json exports omit ./plugin-sdk/telegram
  2. Install [email protected]
  3. Restart gateway / run openclaw doctor --non-interactive
  4. Plugin fails to load with the missing-module error above

Expected

One of these should be true:

  1. the published OpenClaw package restores the Telegram plugin-sdk export aliases/barrels expected by third-party plugins, or
  2. release validation rejects a package build whose published exports do not match the intended plugin-sdk Telegram runtime surface

Actual

Published package lacks the export, so third-party plugin load fails at runtime.

Suggested fix

  • restore/ship the Telegram plugin-sdk exports in the published package
  • add a regression test that verifies expected plugin-sdk subpath exports are present in the built package manifest used for release

If useful, I can open a follow-up PR with a targeted regression test once the preferred export surface is confirmed.

extent analysis

TL;DR

Restore the missing Telegram plugin-sdk exports in the published OpenClaw package to fix the runtime error.

Guidance

  • Verify the package.json exports in the OpenClaw package to ensure they include the required ./plugin-sdk/telegram and ./plugin-sdk/telegram-runtime paths.
  • Check the build process to determine why these exports are not being included in the published package.
  • Consider adding a regression test to validate the expected plugin-sdk exports are present in the built package manifest.
  • Review the source trees to confirm the Telegram runtime barrels are correctly defined and exported.

Example

No code snippet is provided as the issue does not require a specific code change, but rather a correction to the package exports.

Notes

The suggested fix assumes that the missing exports are the root cause of the issue. If the problem persists after restoring the exports, further investigation may be necessary.

Recommendation

Apply the suggested fix to restore the missing Telegram plugin-sdk exports in the published OpenClaw package, as this is the most direct solution to the reported issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Published package is missing plugin-sdk Telegram exports used by third-party plugins [1 participants]