Skip to content

fix(ui): hide avatars for unknown forwarded senders - #150428

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
fix/chat-forwarded-unresolved-avatar
Sep 17, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
fix/chat-forwarded-unresolved-avatar

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Closes #150418

What Problem This Solves

Forwarded messages from legacy sources or agents absent from the roster show a generic arrow avatar even though no sender identity is known.

User Impact

Unknown forwarded senders have no avatar beside the bubble or after “From”, and no empty avatar space remains before their name. Known sender identities, attribution labels, navigation, and message alignment stay intact.

Why This Change Was Made

The shared avatar renderer returns empty content when the sender cannot be resolved. The inline attribution consumer omits the avatar wrapper for that result. The message grid keeps its existing content column, and the unused fallback-avatar selector is removed. The chat guide describes the same behavior.

Evidence

Before: merge-base c9ab1cff77ecd3986b46078243a5c7c8498e9f42. After: 6ad18ed1a6c122644e892d9f5df022f726fbcdde. The base includes @vyctorbrzezowski's #150440, #150553, and #150478.

Synthetic forwarded messages rendered through the real transcript projection and mocked app in Chromium, at 1440 × 1200 and 390 × 1200 with scale 2, in both themes. All eight screenshots were inspected. The captures and full UI validation were produced at 5c301bca9b2df2b9f2e179417875b92512dde412; the final commit only corrects the chat guide, and all UI/runtime/test sources are identical.

BeforeAfter
Before: light, 1440px
Before: light, 1440px
After: light, 1440px
After: light, 1440px
Before: dark, 1440px
Before: dark, 1440px
After: dark, 1440px
After: dark, 1440px
Before: light, 390px
Before: light, 390px
After: light, 390px
After: light, 390px
Before: dark, 390px
Before: dark, 390px
After: dark, 390px
After: dark, 390px

All six message-group boxes and content columns have identical before/after geometry in all four comparisons. Legacy and unlisted senders lose their arrow avatars; known and same-agent faces remain. For the unlisted sender, the inline avatar wrapper is absent and the From-to-name distance drops from 28px to the ordinary 6px spacing. The known sender keeps its avatar and 28px distance. Both results hold in light/dark at desktop/mobile widths.

  • The missing-avatar and empty-wrapper regressions were reproduced before their respective fixes; the corrected behavior passes in Chromium at both widths.

  • 51 focused tests pass remotely: 31 unit tests and 20 Chromium tests. Six browser cases cover legacy, unlisted, and resolved senders at 1440/390px, including bubble alignment and inline spacing.

  • The remote production UI build and performance gate pass: startup JavaScript 359,470 B gzip, below the 363,282 B enforcement limit; startup CSS 48,525 B. No baseline changed.

  • Remote validation completed successfully on that UI source: all 20 core test typecheck shards, UI types, declaration guards, exports, formatting, lint, stylesheet checks, and the extension test import boundary pass. The delegated Testbox reported exit 0 and was stopped after completion.

  • Remote documentation validation passes on the final head 6ad18ed1a6c122644e892d9f5df022f726fbcdde, including formatting and all selected changed-file guards; exit 0.

  • Hosted CI is green on final head 6ad18ed1a6c122644e892d9f5df022f726fbcdde; the exact-head watcher completed with zero pending checks.

Risk and coverage

Checked consumers: transcript message groups through the real app, run-frame rendering through the same group owner by source inspection, and inline forwarded attribution through browser captures and tests. Known-agent image/generated-face paths and current-agent identity remain covered. Unknown inline sources omit the 18px avatar wrapper; resolved identities keep that wrapper and its spacing. The bubble column stays fixed in both cases.

The rebase preserves the main branch's forwarded collapse, middle-dot attribution, automation labels, and prompt fade. Source labels, keys, stored messages, identity caches, user/system avatars, and update behavior are unchanged. Firefox, Safari, physical devices, and live-provider traffic were not exercised.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 4:10 PM ET / 20:10 UTC (Revision 9).

ClawSweeper review

What this changes

Hide unknown forwarded senders’ avatars and empty inline avatar spacing in Control UI chat while preserving attribution, known identities, and message alignment.

Merge readiness

✅ Ready for maintainer review

The prior documentation finding is resolved, and no actionable patch defects remain. Current main still shows the fallback avatar, so this PR remains useful; its maintainer authorship and protected label also preclude cleanup closure.

Priority: P3
Reviewed head: 6ad18ed1a6c122644e892d9f5df022f726fbcdde

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct presentation change with convincing visual evidence and the previous documentation finding resolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected light/dark before/after screenshots from the running mocked Control UI directly show both avatar consumers omitting unknown identities while preserving known faces and alignment; the captured UI sources are unchanged at the final head.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected light/dark before/after screenshots from the running mocked Control UI directly show both avatar consumers omitting unknown identities while preserving known faces and alignment; the captured UI sources are unchanged at the final head.
Evidence reviewed 8 items Prior finding resolved: Comparison with the previously reviewed revision shows only the chat-guide correction. The paragraph now describes omitted unknown-sender avatars, retained attribution, and stable alignment; UI code and tests remain identical to the captured revision.
Shared identity decision preserved: The renderer retains current-agent and roster-resolved identities and returns Lit's empty-content sentinel only for unresolved senders. Both production consumers use this existing owner.
Inline spacing and gutter ownership: The attribution consumer omits its 18px wrapper when the renderer returns nothing. Existing explicit grid-column placement in grouped.css keeps the message column independent of avatar presence; source labels and navigation branches remain intact.
Findings None None.
Security None None.

How this fits together

Control UI renders forwarded transcript messages using source-session metadata and the agent roster. Its shared avatar renderer supplies both the message gutter and the From attribution row.

flowchart TD
  A[Forwarded transcript message] --> C[Resolve sender identity]
  B[Agent roster and current agent] --> C
  C -->|Known| D[Render agent avatar]
  C -->|Unknown| E[Omit avatar and inline wrapper]
  D --> F[Aligned message and From row]
  E --> F
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +2, Tests +95, Docs 0. Total +97 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 16 14 +2
Tests 2 105 10 +95
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 122 25 +97

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #150418
Summary: This PR implements the paired avatar-presentation request; neighboring collapse, automation-label, and mobile-margin work addresses distinct behavior.

Members:

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

Technical review

Best possible solution:

Keep sender resolution in the shared avatar renderer and let its consumers omit absent presentation without changing transcript identity or layout ownership.

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

Not applicable as a functional bug reproduction: this changes an intentional visual fallback. Current-main source and inspected before/after screenshots establish the presentation being improved.

Is this the best way to solve the issue?

Yes. Reusing the existing identity renderer and removing its empty inline wrapper is a narrow solution that preserves labels, navigation, and grid alignment.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e02a3611b06e.

Labels

Label justifications:

  • P3: This is bounded chat presentation polish with no change to delivery, stored state, or authorization.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected light/dark before/after screenshots from the running mocked Control UI directly show both avatar consumers omitting unknown identities while preserving known faces and alignment; the captured UI sources are unchanged at the final head.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected light/dark before/after screenshots from the running mocked Control UI directly show both avatar consumers omitting unknown identities while preserving known faces and alignment; the captured UI sources are unchanged at the final head.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected light/dark before/after screenshots from the running mocked Control UI directly show both avatar consumers omitting unknown identities while preserving known faces and alignment; the captured UI sources are unchanged at the final head.

Evidence

What I checked:

  • Prior finding resolved: Comparison with the previously reviewed revision shows only the chat-guide correction. The paragraph now describes omitted unknown-sender avatars, retained attribution, and stable alignment; UI code and tests remain identical to the captured revision. Public docs: docs/web/control-ui/chat.md. (docs/web/control-ui/chat.md:487, 6ad18ed1a6c1)
  • Shared identity decision preserved: The renderer retains current-agent and roster-resolved identities and returns Lit's empty-content sentinel only for unresolved senders. Both production consumers use this existing owner. (ui/src/pages/chat/chat-avatar.ts:162, 6ad18ed1a6c1)
  • Inline spacing and gutter ownership: The attribution consumer omits its 18px wrapper when the renderer returns nothing. Existing explicit grid-column placement in grouped.css keeps the message column independent of avatar presence; source labels and navigation branches remain intact. (ui/src/pages/chat/components/chat-forwarded-attribution.ts:85, 6ad18ed1a6c1)
  • Still necessary on main and latest release: Inspected fetched-main source and retrieved v2026.9.4 source through the GitHub contents API. Both retain the generic forward-arrow avatar for unresolved senders; the related merged presentation work does not implement this omission. (ui/src/pages/chat/chat-avatar.ts:179, e02a3611b06e)
  • Inspected visual proof: Inspected all four prepared images from the media manifest: desktop before/after pairs in light and dark themes. They visibly show legacy and unlisted sender avatars removed, the unlisted inline gap removed, and known/current-agent faces and bubble alignment retained. The supplied body identifies captures at 5c301bc; the final commit changes documentation only. Mobile captures are linked and described in the body but were not among the prepared images inspected. (5c301bca9b2d)
  • Meaningful browser regression coverage: Six browser cases exercise legacy, unlisted, and known senders at desktop/mobile widths through the production message-group renderer, checking single/grouped bubbles, actual geometry, inline spacing, labels, and links. Existing unit coverage retains current-agent and image/fallback cases. No tests were executed during this read-only review; diff whitespace checks passed. (ui/src/pages/chat/components/chat-forwarded-avatar.browser.test.ts:18, 6ad18ed1a6c1)

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-17T01:01:22.494Z sha 44c7b2a3792f6ccbe26e0fd569a94d14608fb104 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T02:23:39.838Z sha 52338b1 :: blocked before merge. :: none
  • reviewed 2026-09-17T18:43:03.278Z sha 9c6e4b4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T18:53:24.509Z sha 9c6e4b4 :: needs changes before merge. :: none
  • reviewed 2026-09-17T19:06:40.056Z sha 9c6e4b4 :: needs changes before merge. :: none
  • reviewed 2026-09-17T19:19:23.020Z sha c5224ea5a6e8e0109ec895f628689911e1f430a4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T19:35:30.653Z sha 5c301bc :: needs changes before merge. :: none
  • reviewed 2026-09-17T19:45:24.175Z sha 5c301bc :: needs changes before merge. :: [P3] Update the documented unknown-sender avatar behavior

@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/chat-forwarded-unresolved-avatar branch from 44c7b2a to 52338b1 Compare September 17, 2026 02:12
@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): remove the avatar for unresolved forwarded senders fix(ui): hide avatars for unknown forwarded senders Sep 17, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/chat-forwarded-unresolved-avatar branch 2 times, most recently from 9c6e4b4 to c5224ea Compare September 17, 2026 19:08
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review September 17, 2026 19:12
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as draft September 17, 2026 19:25
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/chat-forwarded-unresolved-avatar branch from c5224ea to a82919e Compare September 17, 2026 19:26
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/chat-forwarded-unresolved-avatar branch from a82919e to 5c301bc Compare September 17, 2026 19:28
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Sep 17, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review September 17, 2026 20:02
@vyctorbrzezowski
vyctorbrzezowski merged commit 4f3482a into main Sep 17, 2026
218 of 219 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
* fix(ui): hide avatars for unknown forwarded senders

* fix(ui): remove empty forwarded avatar spacing

* docs(ui): describe unknown forwarded senders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat: forwarded messages from an unresolved sender should not show the arrow avatar

1 participant