Skip to content

WebChat: async command completion notifications incorrectly shown in user message bubbles #67527

@ChengZhuo2025

Description

@ChengZhuo2025

Bug type

UI/Display bug

Summary

In WebChat/Control UI, async command completion notifications (e.g., System (untrusted): [2026-04-16 13:19:39 GMT+8] Exec completed...) are incorrectly displayed inside user message bubbles instead of being shown as system messages or hidden entirely.

Environment

  • OpenClaw version: 2026.4.14 (323493f)
  • OS: macOS (Darwin 23.6.0)
  • Channel: WebChat (Control UI)
  • Node: v22.18.0

Steps to reproduce

  1. Start a conversation in WebChat/Control UI
  2. Have the assistant execute a long-running command (e.g., git push, file operations)
  3. The command completes asynchronously
  4. The completion notification appears in the user's message bubble, not the assistant's

Expected behavior

  • Async completion notifications should either:
    1. Be hidden entirely (internal system messages)
    2. Or shown as a separate system message (not in user's bubble)

Actual behavior

  • Notifications like System (untrusted): [timestamp] Exec completed (session-xxx, code 0) :: ... are rendered inside the user's message bubble
  • This is confusing because users think they sent this message
  • The notification text is truncated and appears meaningless to users

Impact

  • Users are confused by "ghost messages" appearing in their bubbles
  • Reduces trust in the UI
  • Makes chat history look cluttered

Related issues

Suggested fix

Filter out or properly categorize System (untrusted) completion messages in the WebChat UI rendering layer. They should not be attached to user message bubbles.

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