Skip to content

[Bug] BlueBubbles group chat messages missing sender info in LLM envelope #16210

@zqchris

Description

@zqchris

Problem

BlueBubbles group chat messages do not include sender information in the message header/envelope passed to the LLM, making it impossible for the AI to distinguish who is speaking in group chats.

Expected format:

[BlueBubbles GROUP CHAT from 张三 (+8613800138000) Sat 2026-02-14 21:00 GMT+8] message text

Actual format:

[BlueBubbles Sat 2026-02-14 21:00 GMT+8] message text

The [from:] field is completely absent for group messages.

Root Cause

In monitor-processing.ts (around line 1996-2020), the fromLabel is explicitly set to undefined for group chats:

const fromLabel = isGroup ? undefined : message.senderName || `user:${message.senderId}`;

The sender data (senderId, senderName) exists in the webhook payload but is not included in the formatted message body/envelope.

Impact

  • AI agent cannot identify who sent each message in group chats
  • Leads to misattribution of messages (e.g., confusing family members)
  • Severely degrades group chat experience

Environment

  • OpenClaw: 2026.2.12
  • BlueBubbles Server: macOS 26.2.0
  • Platform: macOS (Apple Silicon)

Related

Suggested Fix

Include sender info in the envelope for group messages, similar to what #336 proposes for Telegram:

const fromLabel = message.senderName || `user:${message.senderId}`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions