Repository navigation
Description
The @openclaw/bluebubbles plugin (tested at 2026.5.5 and 2026.5.7, the latest published) crashes on every inbound message because core.channel.turn is undefined at runtime. Tested against host OpenClaw 2026.5.28 and 2026.6.1.
Reproduction
- Install plugin:
openclaw plugins install npm:@openclaw/bluebubbles@2026.5.7 - Wire a working BlueBubbles server to the plugin's inbound webhook (server-side delivery confirmed OK — POST hits the OpenClaw gateway).
- Send any iMessage to the registered account.
Inbound webhook fires → message reaches the plugin → plugin attempts core.channel.turn.run({...}) → throws.
Error
TypeError: Cannot read properties of undefined (reading 'run')
at monitor-processing-Dy-LY2QQ.js
core.channel.turn is undefined when the plugin's bundled dist/index.js (chunked as monitor-processing-*.js) reaches its handler. The host runtime never populates core.channel.turn.
Versions tested
| Component | Version | Result |
|---|---|---|
Host openclaw |
2026.5.28 | crash |
Host openclaw |
2026.6.1 | crash (+ a separate breaking config-schema change requiring models.providers.anthropic.models[]) |
@openclaw/bluebubbles |
2026.5.5 | crash |
@openclaw/bluebubbles |
2026.5.7 | crash (latest — npm view @openclaw/bluebubbles versions confirms) |
Environment
- macOS Sonoma 25.5.0
- Node.js v25.8.1
- Install via
openclaw plugins install npm:@openclaw/bluebubbles
Suspected cause
core.channel.turn.run looks like an internal / private host surface that the plugin reaches into. The public Plugin SDK at docs.openclaw.ai/plugins/* documents api.registerChannel(...) and related helpers — core.channel.turn does not appear anywhere in the public surface. Either the host stopped populating this surface in 2026.5.x (host-side regression), or the plugin drifted off the documented contract.
Related
Pattern of plugin-runtime breakages in the 2026.x series — all closed but suggest the runtime layout has been moving:
- [Bug]: External plugins silently dropped after upgrading OpenClaw (2026.5.2 → 2026.5.3-1) #77266 — External plugins silently dropped after 2026.5.2 → 2026.5.3-1
- openclaw update leaves plugin-runtime-deps/<version>/.../plugin-sdk in ENOTEMPTY state — every channel plugin silently fails to load #71812 —
plugin-runtime-deps/<version>/.../plugin-sdkENOTEMPTY after update - Bug: WhatsApp plugin runtime modules missing from npm package (2026.3.22+) #53244 — WhatsApp plugin runtime modules missing 2026.3.22+
- [Bug]: BlueBubbles plugin fails to load on 2026.3.7 (imports missing src/infra/parse-finite-number.js at runtime) #39627 — BlueBubbles fails to load on 2026.3.7 (missing
parse-finite-number.js)
Impact
The iMessage path via BlueBubbles is dead end-to-end. Outbound webhook (server → user) works on the BlueBubbles server side; inbound (user → server → OpenClaw → agent) is blocked at the plugin handler. No agent turn ever runs in response to a received message.
Workarounds considered
- Pin host to a version where
core.channel.turnexisted (likely ≤ 2026.5.4) — sacrifices other host fixes. - Fork the plugin and rewrite the call site to use the public
api.registerChannel(...)surface — workable but moves divergence into a downstream codebase. - Switch to a different iMessage delivery path — possible but loses BlueBubbles server integration.
Happy to provide additional logs / repro details if useful.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 5, 2026
ClawSweeper status: review started.
I am starting a fresh review of this issue: @openclaw/bluebubbles 2026.5.7 —
core.channel.turnundefined at runtime (host 2026.5.28 and 2026.6.1) This is item 1/1 in the current shard. Shard 0/1.This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.
Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.
DavidcHPL commentedon Jun 5, 2026
Update — root cause identified, one-line fix verified
Pulled the call chain in host
2026.5.28and plugin2026.5.7. This is plugin drift after a host namespace rename, not a host-side regression: the host renamedchannel.turn→channel.inboundinruntime-channel, but the plugin still calls the old key.Evidence in host 2026.5.28
/opt/homebrew/lib/node_modules/openclaw/dist/runtime-channel-DSbqIqfK.js(the function whose return value is injected into the plugin runtime store) — line 33–146 — exposeschannel.inbound.runand has nochannel.turnkey anywhere:runChannelInboundEventis a direct alias of the priorrunChannelTurn, same args:Plugin call site
@openclaw/bluebubbles@2026.5.7—dist/monitor-processing-Dy-LY2QQ.js:1935:Fix
One-character path edit:
Verification
Patched in-place on the local install. End-to-end:
openclaw channels status:BlueBubbles default: enabled, configured, running, connected.TypeError: Cannot read properties of undefined (reading 'run'), agent turn fires, outbound reply lands on iPhone.Versions
openclaw2026.5.28@openclaw/bluebubbles2026.5.7(latest published; also reproduced on2026.5.5)26.5.1(Tahoe)v25.8.1Suggested upstream action
Single-line rename in the plugin would resolve this — happy to open a PR against the plugin source in
openclaw/openclawif useful. We have routed around locally for our deployment, so we can keep providing reproduction support if you need it. The othercore.channel.*namespaces the plugin reaches for (session,reply,text,reactions,groups,media,mentions) all still exist in the same shape —turnis the only casualty of the rename.openclaw-barnacle commentedon Jun 5, 2026
BlueBubbles is deprecated and no longer ships as a bundled OpenClaw channel. Use iMessage via
imsginstead: https://docs.openclaw.ai/channels/imessage. If this needs to stay BlueBubbles-backed, publish it as a third-party plugin on ClawHub instead of adding it back to core.omarshahine commentedon Jun 7, 2026
Closing — the BlueBubbles channel plugin is deprecated and no longer maintained. For iMessage integration, use the built-in
imessagechannel instead.