Repository navigation
fix(ui): profile shows the assistant instead of the signed-in user - #138670
roboclaw-bot wants to merge 1 commit into
Conversation
Adapt the authenticated-user hero from #136736 to the current shared hero component. Honor live name clearing, preserve unidentified agent previews, and cover shared avatars and narrow email layout. Register the real-Gateway two-client regression in CI and its ownership inventory. Original implementation and regression coverage by Jacqueline Henriksen (@jjjhenriksen) in #136736; preserved in this maintainer replacement. Co-authored-by: Jacqueline Henriksen <[email protected]>
|
🦞👀 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 4, 2026, 7:52 PM ET / 23:52 UTC. ClawSweeper reviewWhat this changesThe PR makes Settings → Profile show the connected user’s live name, email, and shared avatar, preserves the agent preview for unidentified connections, and adds browser coverage and CI registration. Merge readiness✅ Ready for maintainer review Still needed: the reviewed main revision continues to show the default agent in the Profile header. No blocking introduced defect was identified. This maintainer replacement preserves the original contribution while adapting it to the current shared component. Priority: P2 Review scores
Verification
How this fits togetherThe Profile page receives the connected user’s identity from Gateway presence and uses profile RPCs for editing. Its header now renders that live identity through the avatar component already used elsewhere in the Control UI. flowchart TD
A[Gateway connection and presence] --> B[Current user snapshot]
B --> C{User identity available?}
C -->|Yes| D[Live user name and shared avatar]
E[Default agent identity] --> F[Agent preview]
C -->|No| F
D --> G[Profile header]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +39, Tests +205, Config +1. Total +245 across 9 files. View PR surface stats
Review metrics
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 one shared hero template driven by live Gateway identity, reuse the existing authenticated avatar owner, and retain the explicitly supported unidentified-agent preview. Do we have a high-confidence way to reproduce the issue? Yes, from source: connect as a named user to a Gateway with a differently named default agent and open Settings → Profile; current main unconditionally renders that agent in the header. This review did not execute the scenario. Is this the best way to solve the issue? Yes. Supplying the existing live self-user snapshot at the rendering boundary is preferable to another profile fetch or a cached-name fallback, and reusing the shared avatar component preserves its established loading behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c7dc2c68e246. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Superseded by #136736, merged at b938c5c ( |
Related: #136736
What Problem This Solves
Fixes an issue where users opening Settings → Profile on a signed-in, multi-agent Gateway would see the default assistant’s name and avatar instead of their own identity. A remote display-name clear must also remove the old name immediately rather than revive a cached profile value.
Why This Change Was Made
This maintainer replacement adapts Jacqueline Henriksen’s contribution in #136736 to current main’s shared profile-hero component without rewriting the contributor branch. The existing hero template and badge now render the authenticated live user through the shared avatar component; unidentified connections retain the agent preview. It preserves the newer connected-account behavior.
It also completes real-Gateway CI registration and ownership coverage, removes the indexed-fixture type error, and avoids a duplicated raw-copy badge.
User Impact
Signed-in users see their own name, email, and avatar. Renames and name clears from another connected browser tab update the hero. Long email addresses wrap at narrow widths without clipping the badge. Unidentified connections keep their existing agent preview.
Evidence
Original contribution
Original implementation and regression coverage by Jacqueline Henriksen (@jjjhenriksen) in #136736, preserved with Git co-author credit at her public GitHub noreply address. This replacement keeps the original PR intact until the fix lands.
View the OpenClaw team session