Skip to content

@openclaw/bluebubbles 2026.5.7 — core.channel.turn undefined at runtime (host 2026.5.28 and 2026.6.1) #90509

Closed as not planned

Description

@DavidcHPL

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

  1. Install plugin:
    openclaw plugins install npm:@openclaw/bluebubbles@2026.5.7
    
  2. Wire a working BlueBubbles server to the plugin's inbound webhook (server-side delivery confirmed OK — POST hits the OpenClaw gateway).
  3. 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:

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.turn existed (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.

Activity

  1. clawsweeper commented on Jun 5, 2026

    @clawsweeper
    Contributor

    ClawSweeper status: review started.

    I am starting a fresh review of this issue: @openclaw/bluebubbles 2026.5.7 — core.channel.turn undefined 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.

  2. DavidcHPL commented on Jun 5, 2026

    @DavidcHPL
    Author

    Update — root cause identified, one-line fix verified

    Pulled the call chain in host 2026.5.28 and plugin 2026.5.7. This is plugin drift after a host namespace rename, not a host-side regression: the host renamed channel.turn → channel.inbound in runtime-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 — exposes channel.inbound.run and has no channel.turn key anywhere:

    function createRuntimeChannel() {
      return {
        text: { /* ... */ },
        reply: { /* ... */ },
        session: { /* ..., recordInboundSession, ... */ },
        mentions: { /* ... */ },
        reactions: { /* ... */ },
        groups: { /* ... */ },
        media: { /* ... */ },
        inbound: {
          buildContext: buildChannelInboundEventContext,
          run: runChannelInboundEvent,                   // ← what the plugin needs
          runPreparedReply: runPreparedInboundReply,
          dispatchReply: dispatchChannelInboundReply
        },
        threadBindings: { /* ... */ },
        // no `turn:` key
      };
    }

    runChannelInboundEvent is a direct alias of the prior runChannelTurn, same args:

    // kernel-CYjskkiY.js
    const runChannelInboundEvent = runChannelTurn;

    Plugin call site

    @openclaw/bluebubbles@2026.5.7 — dist/monitor-processing-Dy-LY2QQ.js:1935:

    await core.channel.turn.run({                       // ← undefined in host 2026.5.28
      channel: "bluebubbles",
      accountId: account.accountId,
      raw: ctxPayload,
      adapter: {
        ingest: () => ({ /* normalized envelope */ }),
        resolveTurn: () => ({
          cfg: config,
          // ...
          recordInboundSession: core.channel.session.recordInboundSession,
          dispatchReplyWithBufferedBlockDispatcher: core.channel.reply.dispatchReplyWithBufferedBlockDispatcher,
          delivery: { deliver: async (payload, info) => { /* outbound */ } },
          dispatcherOptions: { /* ... */ },
          replyOptions: { /* ... */ },
          record: { onRecordError: (err) => { /* ... */ } }
        })
      }
    });

    Fix

    One-character path edit:

    - await core.channel.turn.run({
    + await core.channel.inbound.run({

    Verification

    Patched in-place on the local install. End-to-end:

    • Gateway restart: clean reload, no startup errors.
    • openclaw channels status: BlueBubbles default: enabled, configured, running, connected.
    • Inbound iMessage → no TypeError: Cannot read properties of undefined (reading 'run'), agent turn fires, outbound reply lands on iPhone.

    Versions

    • Host openclaw 2026.5.28
    • Plugin @openclaw/bluebubbles 2026.5.7 (latest published; also reproduced on 2026.5.5)
    • macOS 26.5.1 (Tahoe)
    • Node v25.8.1

    Suggested upstream action

    Single-line rename in the plugin would resolve this — happy to open a PR against the plugin source in openclaw/openclaw if useful. We have routed around locally for our deployment, so we can keep providing reproduction support if you need it. The other core.channel.* namespaces the plugin reaches for (session, reply, text, reactions, groups, media, mentions) all still exist in the same shape — turn is the only casualty of the rename.

  3. openclaw-barnacle commented on Jun 5, 2026

    @openclaw-barnacle

    BlueBubbles is deprecated and no longer ships as a bundled OpenClaw channel. Use iMessage via imsg instead: 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.

  4. omarshahine commented on Jun 7, 2026

    @omarshahine
    Contributor

    Closing — the BlueBubbles channel plugin is deprecated and no longer maintained. For iMessage integration, use the built-in imessage channel instead.

  5. locked as resolved and limited conversation to collaborators on Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions