-
-
Notifications
You must be signed in to change notification settings - Fork 52.7k
Closed
Description
Re-filing of #12482 (closed by stale bot)
Version: 2026.3.1 (confirmed still present)
Problem
In DM conversations, all messages in the history context appear as coming from the contact — the agent cannot distinguish between messages sent by the owner and messages sent by the contact. This is because msg.key.fromMe is not propagated through inboundMessage → buildInboundLine → formatInboundEnvelope.
Expected behavior
The agent should be able to see which messages in the DM history were sent by the owner vs the contact. Without this, the LLM sees all DM history as [WhatsApp +39...] text with no way to know who said what.
Workaround
I've been maintaining a local bundle patch since v2026.2.9 that:
- Adds
fromMeto theinboundMessageevent - Passes
fromMethroughbuildInboundLine - In
formatInboundEnvelope, prefixes the owner's own messages with(self)in DM context
Related
- Original issue: Agent cannot distinguish owner's messages from contact's messages in DM history #12482 (closed by stale bot, not fixed)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels