Repository navigation
fix(ui): hide avatars for unknown forwarded senders - #150428
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 4:10 PM ET / 20:10 UTC (Revision 9). ClawSweeper reviewWhat this changesHide 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 Review scores
Verification
How this fits togetherControl 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +2, Tests +95, Docs 0. Total +97 across 6 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
44c7b2a to
52338b1
Compare
9c6e4b4 to
c5224ea
Compare
c5224ea to
a82919e
Compare
a82919e to
5c301bc
Compare
|
Merged via squash.
|
* fix(ui): hide avatars for unknown forwarded senders * fix(ui): remove empty forwarded avatar spacing * docs(ui): describe unknown forwarded senders
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.Before: light, 1440px
After: light, 1440px
Before: dark, 1440px
After: dark, 1440px
Before: light, 390px
After: light, 390px
Before: 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.