Repository navigation
Description
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 messageorForwarded from <agent>)
After OpenClaw 2026.6.5:
- Both render on the left side in the same black bubble
- No
senderLabelorForwarded fromattribution 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
- Configure two agents in
openclaw.jsonagents.list, e.g.agent-aandagent-b - Start both agent sessions in WebChat (e.g. open two browser tabs)
- From
agent-asession, callsessions_send(agentId="agent-b", message="Test handoff", timeoutSeconds=60) - Observe how the message renders in
agent-b's WebChat UI - Expected: right-side bubble, red, labeled with source agent (e.g.
Forwarded from agent-a) - 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
senderLabelattribution (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_sendwithtimeoutSeconds: 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
senderLabelforForwarded 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
senderLabelis being computed but not rendered due to a UI component regression - A new WebChat component introduced in 6.5 is not consuming the
senderLabelfield
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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 12, 2026
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_sendWebChat 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:
canonicalCanonical: #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:
fixed_by_candidate: fix(webchat): fall back to resolved name when senderLabel is empty #92394 - The PR is open and GitHub lists it as a closing reference for this issue.superseded: fix(webchat): ensure senderLabel is properly normalized to prevent empty string display #92331 - This closed, unmerged PR proposed the same empty-label normalization but has been superseded by the still-open candidate PR.partial_overlap: [Bug]: sessions_send inter-session messages render as 'user' in WebChat — should show as agent-forwarded #89161 - The earlier report coveredsessions_sendmessages rendering as user-side messages and was closed by the merged forwarded-display projection.partial_overlap: [Feature]: Multi-role support in Chat UI for multi-agent workflows #22774 - That broader feature asks for multi-role Chat UI support, while this issue is a narrower regression/fallback question.adjacent_distinct: Bug: Inter-session Echo Loop in webchat channel — agent text output auto-routed to other agents #92060 - That closed issue concerns inter-session echo-loop routing, not WebChat visual attribution.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
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_sendWebChat 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_sendattribution, 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:
sessions_sendpath 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:
sessions_sendinter-session user messages into assistant display messages and assigns a non-empty forwarded sender label from the source session when possible. (src/gateway/chat-display-projection.ts:1574, edd1d3319cce)renderMessageGrouptrimsgroup.senderLabeland then uses nullish fallback, so a direct empty string would not fall back to the resolved assistant or user name. (ui/src/ui/chat/grouped-render.ts:475, edd1d3319cce)normalizeMessagemaps empty or whitespace-onlysenderLabeltonull, which makes the linked PR's group-level empty-string path plausible but not yet proven for the normal WebChat flow. (ui/src/ui/chat/message-normalizer.ts:445, edd1d3319cce)sessions_sendinter-session turn becomes an assistant message withsenderLabel: "Forwarded from main"; UI tests cover rendering a non-empty forwarded assistant sender label. (src/gateway/server-methods/server-methods.test.ts:1230, edd1d3319cce)ui/src/ui/chat/grouped-render.ts:474, c645ec4555c0)Likely related people:
sessions_sendforwarded-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)src/gateway/chat-display-projection.ts,ui/src/ui/chat/grouped-render.ts,ui/src/ui/chat/message-normalizer.ts)senderLabelfallback 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 re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.docs: add webchat proof screenshot for openclaw#92327
MarkMa84 commentedon Jun 15, 2026
Any update?
openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
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.