Skip to content

[Bug]: Session text invisible to user when message tool sends media on WhatsApp #37841

@MaxHermez

Description

@MaxHermez

Bug type

Behavior bug (silent data loss)

Summary

When an agent writes session text and also calls the message tool to send media in the same turn, the session text is never delivered to the user on WhatsApp. No error is raised. The agent appears to have responded but the user receives only the media.

Steps to reproduce

  1. Configure an agent on a WhatsApp channel
  2. Send the agent a request that results in both a text response and a media send in the same turn (e.g. "analyze this document and send me a summary diagram")
  3. Observe: the user receives the image/media but never receives the text explanation

Expected behavior

Both the session text and the media are delivered to the user.

Actual behavior

Only the media is delivered. Session text written in the same turn is silently dropped. The agent has no warning this is happening and no tool result indicating the text was lost.

Concrete example

A user asks the agent to generate a chart and explain the key insight. The agent writes "The spike in Q3 is driven by X — here's the visual" as session text, then calls the message tool to send the chart. The user receives the chart with no explanation. The narrative context is permanently lost with no indication to either party.

Proposed solution

When a turn contains both session text and a message tool media call, either auto-route the session text through the channel as a separate message, or surface a warning in the tool result so the agent knows to resend it manually.

Why this matters

Users lose information silently. The agent believes it has communicated fully. Neither party knows anything was dropped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions