Skip to content

[Webchat] Hide inbound metadata envelope from message display #21030

Description

@pennyworth100

Feature Request

Problem

The webchat UI displays raw inbound metadata (conversation info JSON, timestamps, sender ID) as part of the user's message bubble. This technical envelope data is visible to the user, making the chat look cluttered and confusing.

Example

When a user sends "Brawo!", the webchat displays:

Conversation info (untrusted metadata):
{
  "message_id": "a0ee5c1a-...",
  "sender": "openclaw-control-ui"
}
[Thu 2026-02-19 10:33 EST] Brawo!

Instead of just:

Brawo!

Proposed Solution

  • Strip/hide the metadata envelope from the displayed message in webchat
  • Optionally show it in a collapsible "debug" section or developer mode
  • The metadata is useful for the agent (context injection) but should not be visible to the end user

Why it matters

  • Makes the webchat feel raw/unpolished
  • Confusing for non-technical users
  • The metadata is meant for the agent, not the human

Environment

  • OpenClaw webchat UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    close:duplicateClosed as duplicatededupe:childDuplicate issue/PR child in dedupe clusterduplicateThis issue or pull request already exists

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions