Skip to content

[v2026.6.5] WebChat UI: sessions_send inter-session messages render alongside assistant messages without visual separation (regression of #89191) #92327

Closed as not planned

Description

@MarkMa84

Bug Description

After upgrading to OpenClaw 2026.6.5, inter-session messages arriving via sessions_send (from other agents in a multi-agent team) are no longer visually distinguished in the WebChat Control UI.

Previously, the WebChat UI rendered:

  • Assistant messages (left side, black bubble)
  • Inter-session messages from other agents (right side, red bubble, labeled with inter message or Forwarded from <agent>)

After OpenClaw 2026.6.5:

  • Both render on the left side in the same black bubble
  • No senderLabel or Forwarded from attribution visible
  • No visual distinction between messages from the human user, the local agent, and other agents in the workflow

This makes multi-agent workflows difficult to follow — the operator cannot tell whether a message came from the human, the local agent, or a peer agent routed via sessions_send.

Steps to Reproduce

  1. Configure two agents in openclaw.json agents.list, e.g. agent-a and agent-b
  2. Start both agent sessions in WebChat (e.g. open two browser tabs)
  3. From agent-a session, call sessions_send(agentId="agent-b", message="Test handoff", timeoutSeconds=60)
  4. Observe how the message renders in agent-b's WebChat UI
  5. Expected: right-side bubble, red, labeled with source agent (e.g. Forwarded from agent-a)
  6. Actual: left-side bubble, black, indistinguishable from agent-b's own responses

Expected Behavior

sessions_send inter-session messages should:

  • Render on the right side of WebChat
  • Show senderLabel attribution (e.g. Forwarded from agent-a)
  • Be visually distinct from human-authored user messages
  • Match the prior behavior operators relied on for multi-agent workflow auditability

Actual Behavior

WebChat UI renders all messages on the left side in a single black bubble. The senderLabel attribution is not visible. The inter-session provenance metadata is stripped from the visible display but the visual distinction is lost.

This appears to be a regression in the 2026.6.5 release. The previous fix was merged on 2026-06-03, and 2026.6.5 was released on 2026-06-09. The 6.5 release notes do not mention any changes to WebChat inter-session message rendering.

Environment

  • OS: macOS (Darwin 25.5.0, arm64)
  • OpenClaw Version: 2026.6.5 (upgraded from 2026.6.1)
  • Node Version: v25.9.0
  • Setup: Multi-agent team, agents communicate via sessions_send with timeoutSeconds: 60
  • Channel: WebChat Control UI (port 8100)
  • Browser: any modern Chromium-based browser (reproduced in Chrome and Safari)

Possible Cause

The previously merged fix added:

  • WebChat assistant groups use senderLabel for Forwarded from <agent> attribution
  • Display projection marks inter-session messages as assistant-side forwarded
  • Strip inter-session prompt envelope from visible content

The 6.5 release notes do not mention changes to src/gateway/chat-display-projection.ts or ui/src/ui/chat/grouped-render.ts (the files modified in the original fix). Either:

  • The fix was reverted or partially broken during the 6.5 merge window
  • The senderLabel is being computed but not rendered due to a UI component regression
  • A new WebChat component introduced in 6.5 is not consuming the senderLabel field

Additional Context

Multi-agent workflows are particularly affected — operators cannot audit which agent is responsible for which message in the transcript.

Discovered while debugging inter-session coordination on OpenClaw 2026.6.5 stable channel.

Activity

  1. clawsweeper commented on Jun 12, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 2:54 PM ET / 18:54 UTC.

    Summary
    Keep open because #92394 is still open with closing syntax for this issue. Current main and v2026.6.9 include the earlier forwarded-message projection, but the remaining empty-label fallback question is still owned by that linked PR.

    Reproducibility: no. high-confidence full reproduction is available for the reported live sessions_send WebChat path. Source inspection shows a direct renderer empty-label fallback gap, but normal WebChat normalization and projection make that path unproven.

    Root-cause cluster
    Relationship: canonical
    Canonical: #92327
    Summary: This issue is the canonical user report for the remaining WebChat sender-label fallback question, with one open PR as the candidate fix.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    Next step
    A linked open PR already owns the candidate repair, so queueing a new ClawSweeper fix PR would duplicate active review work.

    Review details

    Best possible solution:

    Review #92394; land a narrow normalization fix only if the empty-label path is reachable, otherwise close that PR and resolve this issue against the current projection evidence.

    Do we have a high-confidence way to reproduce the issue?

    No high-confidence full reproduction is available for the reported live sessions_send WebChat path. Source inspection shows a direct renderer empty-label fallback gap, but normal WebChat normalization and projection make that path unproven.

    Is this the best way to solve the issue?

    Unclear. The existing display projection is the right owner for sessions_send attribution, while the linked one-line renderer fallback is only the best fix if a supported path can reach an empty group sender label.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The full live multi-agent WebChat sessions_send path has not been reproduced against current main; source inspection shows current projection is present, while the linked PR still needs proof that the empty-label fallback is reachable.

    Codex review notes: model internal, reasoning high; reviewed against edd1d3319cce.

    Label changes

    Label justifications:

    • P2: The report affects multi-agent WebChat auditability with limited blast radius and no evidence of data loss, security bypass, or process outage.
    • impact:session-state: The issue concerns visible message provenance and attribution across agent sessions.
    Evidence reviewed

    What I checked:

    Likely related people:

    • 849261680: Authored the merged WebChat sessions_send forwarded-display work that added projection, grouping, sender attribution, and focused tests for forwarded labels. (role: introduced current display behavior; confidence: high; commits: 1d90bd4dc7be, 6d82e811eccc, 932d6ea8e5ce; files: src/gateway/chat-display-projection.ts, ui/src/ui/chat/build-chat-items.ts, ui/src/ui/chat/grouped-render.ts)
    • vincentkoc: Authored a guard commit in the merged forwarded-display work and appears on recent release/mainline commits carrying the relevant UI and gateway snapshots. (role: recent adjacent contributor and merger; confidence: medium; commits: 7e0b31b2839d, c645ec4555c0, edd1d3319cce; files: src/gateway/chat-display-projection.ts, ui/src/ui/chat/grouped-render.ts, ui/src/ui/chat/message-normalizer.ts)
    • fsdwen: Opened the linked PR that proposes the empty and whitespace senderLabel fallback repair for this issue. (role: active repair proposer; confidence: medium; commits: 47dd3c49c209, 16c2596eccfc, 017ba9aeb49e; files: ui/src/ui/chat/grouped-render.ts, ui/src/ui/chat/grouped-render.test.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. MarkMa84 commented on Jun 15, 2026

    @MarkMa84
    Author

    Any update?

  3. added
    P2Normal backlog priority with limited blast radius.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    and removed
    issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.
    on Jun 15, 2026
  4. openclaw-barnacle commented on Jul 6, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. openclaw-barnacle commented on Jul 14, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

  6. locked as resolved and limited conversation to collaborators on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions