Skip to content

[Bug]: [Bug]: Webchat shows duplicate assistant messages because chat.history returns delivery-mirror transcript entries as normal assistant messages #38061

@flyto168

Description

@flyto168

Bug type

Regression (worked before, now fails)

Summary

A single assistant reply is shown twice in OpenClaw webchat because chat.history returns both the real provider message and an internal delivery-mirror transcript entry, while Telegram only receives the message once.

Steps to reproduce

  1. Use OpenClaw webchat with a normal model/provider setup and a Telegram delivery channel enabled.
  2. Send a prompt that produces a normal assistant reply.
  3. Wait for the reply to be delivered.
  4. Observe that Telegram receives the reply only once.
  5. Refresh or inspect the webchat session history.
  6. Observe that the same assistant reply appears twice in webchat.
  7. Check the transcript/session history and see two assistant entries for the same logical reply:
    • one from the real provider (for example openrouter / anthropic)
    • one from provider=openclaw, model=delivery-mirror

Expected behavior

Only the real assistant reply should be shown in webchat. Internal transcript entries such as delivery-mirror should not be rendered as normal assistant messages.

Actual behavior

Webchat renders both the real assistant reply and the internal delivery-mirror transcript entry, so the same content is shown twice. Telegram only receives one message.

OpenClaw version

20260302

Operating system

ubuntu 24.04

Install method

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    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