Repository navigation
fix: show your profile name in the Online roster - #166733
roboclaw-bot wants to merge 3 commits into
Conversation
Use the authenticated current identity for the self label while retaining Shared owner for other viewers. Keep namespace matching, roster membership, and permissions unchanged. Co-authored-by: davemorin <[email protected]>
Use the full deduplicated online identity population before filtering to decide whether the current user needs the (you) suffix. Preserve self names and fallbacks, qualified identities, permissions, and generic label consumers. Co-authored-by: davemorin <[email protected]>
Worked on by: - @davemorin Co-authored-by: davemorin <[email protected]> OpenClaw-Publication: 44c4bc34-2224-4d23-85f1-afc8aed738ae
|
🦞👀 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 October 7, 2026, 4:56 PM ET / 20:56 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Control UI’s Online roster shows your saved profile name and adds “(you)” only when another distinct identity is online. Merge readiness✅ Ready for maintainer review This PR remains useful: current main still hides the saved self-profile name behind “Shared owner.” The inspected screenshots support the intended result, and no actionable correctness or security finding remains. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI combines Gateway presence entries with the current authenticated profile to display connected people. The Online sidebar turns that information into names, session counts, and links to personal activity. flowchart TD
A[Gateway presence entries] --> C[Deduplicate connected identities]
B[Current authenticated profile] --> D[Choose viewer-specific name]
C --> D
C --> E[Filter and sort people]
D --> E
E --> F[Online roster and activity links]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +21, Tests +188, Docs +5. Total +214 across 7 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep viewer-specific naming in the Online presentation layer while preserving canonical identity resolution and generic shared-owner anonymity. Do we have a high-confidence way to reproduce the issue? Yes, from source: a connected gateway-owner with a saved display name still receives the generic “Shared owner” label on current main. The supplied before screenshot shows that outcome; this review did not run a reproduction. Is this the best way to solve the issue? Yes. The PR reuses the existing authenticated identity and deduplicated roster, changing only viewer-specific labels rather than weakening the generic shared-owner contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c6698b1e9b2b. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
What Problem This Solves
Fixes: the Online roster calls your own connected identity “Shared owner” even when your profile has a saved display name.
User Impact
Your own row shows your saved name, adding “(you)” only when another distinct identity is online. Multiple tabs remain one identity, and filtering or sorting does not toggle the suffix. Other people’s labels and shared-owner anonymity remain unchanged. No permission, configuration, or migration changes.
Why This Change Was Made
The roster was using the generic shared-identity label for everyone. Its viewer-specific label now uses the canonical authenticated identity and the complete, deduplicated online population before filtering. Generic label consumers, roster membership, avatars, and session counts retain their existing behavior.
Evidence
The comparisons below are crops of actual production-built Control UI captures with synthetic identities and mocked Gateway data. They do not imply that a deployed Gateway has been updated.
Multi-user roster
Same two online identities and session counts. The after state remains unchanged by the solo refinement.
Solo-user refinement
The before image is the initial unshipped implementation, not main. With only one online identity, the final version omits the unnecessary suffix.
Validation scope and cost
pnpm test ui/src/components/app-sidebar-online.test.ts --maxWorkers=1: 23 tests; 4.07s Vitest / 4.87s wrapper.pnpm test ui/src/e2e/people-activity-card.e2e.test.ts --maxWorkers=1: 13 tests; 38.98s Vitest / 40.55s wrapper. The existing suite covers real browser routing, hover/focus, touch layouts, and identity transitions; no extra per-test server was introduced. Final edited-case recheck: 16.31s including build/startup.pnpm check:changed --base e226dfbd0ed28f5e79c72f855598bccb51e64a0a: passed after the solo refinement; the original fix’s changed gates also passed.3bb8a54191e083952f2041e90aa0875bd1c1fb75. Hosted CI results and CI seconds are pending, not represented as passing here.Worked on by
Work sessions
View the OpenClaw team session