Skip to content

[Bug]: Webchat UI renders raw metadata envelope in chat bubbles #20297

@simonhcipher

Description

@simonhcipher

Summary

The webchat UI is displaying the internal conversation metadata envelope that gets prepended to user messages. Instead of only showing the agent's reply, the full JSON metadata block and timestamp wrapper is rendered visibly in the chat.

Steps to reproduce

Open the OpenClaw webchat UI
Send any message to the agent
Observe the chat after the agent responds

Expected behavior

Only the agent's reply is visible in the chat UI.

Actual behavior

The internal metadata envelope is rendered in the chat bubble:
Conversation info (untrusted metadata):
{
"message_id": "a2a19267-56f0-4236-ac4e-3a6089f44d24",
"sender": "openclaw-control-ui"
}
[Wed 2026-02-18 09:10 MST]

Image

OpenClaw version

2026.2.17

Operating system

macOS (Apple Silicon)

Install method

npm

Logs, screenshots, and evidence

Impact and severity

Only affects webchat — Telegram channel works correctly with no metadata leak
Happens consistently on every message
The metadata block appears to be the same envelope prepended to messages before reaching the agent
The webchat frontend does not appear to be stripping this envelope before rendering

Additional information

Runtime: Local gateway

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclose:duplicateClosed as duplicatededupe:childDuplicate issue/PR child in dedupe clusterduplicateThis issue or pull request already exists

    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