Skip to content

fix: show your profile name in the Online roster - #166733

Open
roboclaw-bot wants to merge 3 commits into
mainfrom
openclaw/online-roster-self-identity
Open

roboclaw-bot wants to merge 3 commits into
mainfrom
openclaw/online-roster-self-identity

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Reproduced both the original shared-owner label and the unnecessary solo suffix before their fixes.
  • 203 focused/sibling tests passed, covering fallback names, duplicate tabs, raw/profile ID collisions, identity clearing, joins/leaves, and filters.
  • All 13 browser scenarios passed against the production-built Control UI with deterministic mocked Gateway data. The edited scenario passed again after fixture-only type narrowing.
  • Changed-scope formatting, typechecks, i18n, lint/style checks, ratchets, and dead-export scans passed. Independent autoreview found no actionable P0–P2 findings.

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.

Before — main baseline After — final multi-user behavior
Before: your profile appears as Shared owner After: your saved name appears with you while another person is online

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.

Before — initial unshipped implementation After — final solo behavior
Initial implementation: solo Alex Rivera with you suffix Final implementation: solo Alex Rivera without 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.
  • Sidebar people, presence projection, and facepile siblings: 180 tests; 27.88s 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.
  • Local proof is bound to candidate 3bb8a54191e083952f2041e90aa0875bd1c1fb75. Hosted CI results and CI seconds are pending, not represented as passing here.

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 3 commits October 7, 2026 18:15
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
@clawsweeper

clawsweeper Bot commented Oct 7, 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 docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Oct 7, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 7, 2026 20:50
@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 Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 4:56 PM ET / 20:56 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 4ccf98bd24c7fa8711d97bc345e59cdce3c65cf0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable repair with directly inspected visual proof and no blocking findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after captures of the production-built Online sidebar with synthetic Gateway inputs show the saved self name, multi-user suffix, and solo suffix removal. The proof candidate has the same tree as the reviewed head; browser and focused tests supplement the visible evidence. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after captures of the production-built Online sidebar with synthetic Gateway inputs show the saved self name, multi-user suffix, and solo suffix removal. The proof candidate has the same tree as the reviewed head; browser and focused tests supplement the visible evidence. No stored-data contract changes.
Evidence reviewed 10 items Pinned introduction and merge ownership: Reviewed the merge-base-to-head delta. The raw test-merge record has the pinned base followed by the exact PR head as parents, and its result changes the same seven paths. Base-only work is not attributed to this PR.
Current main still needs the repair: Current main routes Online row labels through the generic presence label, which always returns “Shared owner” for gateway-owner even when a saved name exists. The branch adds a narrowly scoped self-label consumer.
Latest release comparison: The latest supplied release, v2026.9.8, also contains the generic shared-owner label and lacks the new Online-specific helper. This is not already-shipped replacement work.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +21, Tests +188, Docs +5. Total +214 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 3 30 9 +21
Tests 3 204 16 +188
Docs 1 7 2 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 241 27 +214

Review metrics

None.

Technical review

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a bounded roster-label correction with no change to access, delivery, or stored state.
  • 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 before/after captures of the production-built Online sidebar with synthetic Gateway inputs show the saved self name, multi-user suffix, and solo suffix removal. The proof candidate has the same tree as the reviewed head; browser and focused tests supplement the visible evidence. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after captures of the production-built Online sidebar with synthetic Gateway inputs show the saved self name, multi-user suffix, and solo suffix removal. The proof candidate has the same tree as the reviewed head; browser and focused tests supplement the visible evidence. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after captures of the production-built Online sidebar with synthetic Gateway inputs show the saved self name, multi-user suffix, and solo suffix removal. The proof candidate has the same tree as the reviewed head; browser and focused tests supplement the visible evidence. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and merge ownership: Reviewed the merge-base-to-head delta. The raw test-merge record has the pinned base followed by the exact PR head as parents, and its result changes the same seven paths. Base-only work is not attributed to this PR. (4ccf98bd24c7)
  • Current main still needs the repair: Current main routes Online row labels through the generic presence label, which always returns “Shared owner” for gateway-owner even when a saved name exists. The branch adds a narrowly scoped self-label consumer. (ui/src/lib/presence-users.ts:36, c6698b1e9b2b)
  • Latest release comparison: The latest supplied release, v2026.9.8, also contains the generic shared-owner label and lacks the new Online-specific helper. This is not already-shipped replacement work. (ui/src/lib/presence-users.ts:36, fc23bc864e45)
  • Identity and compatibility boundary: The new label compares qualified presence keys and consumes the existing self resolver, whose explicit-null behavior prevents stale presence from restoring a cleared identity. Distinct-person counting happens before filtering. Generic labels, membership, permissions, protocol, and stored data remain unchanged. (ui/src/lib/presence-users.ts:53, 4ccf98bd24c7)
  • Inspected visual behavior proof: Inspected all four prepared screenshots. The multi-user comparison shows “Shared owner” becoming “Alex Rivera (you)” while Morgan Chen and the session count remain visible. The solo comparison shows “Alex Rivera (you)” becoming “Alex Rivera.” The captured PR body identifies production-built Control UI rendering with synthetic mocked Gateway data; this proves the visible labels, not a deployed Gateway update. (3bb8a54191e0)
  • Proof remains applicable to the reviewed head: The diff between the proof candidate and the reviewed head is empty, preserving the production and test source exercised by the supplied evidence. (4ccf98bd24c7)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: 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 (1 earlier review cycle)
  • reviewed 2026-10-07T20:50:06.230Z sha 4ccf98b :: needs maintainer review before merge. :: none

This branch has not been deployed

No deployments
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 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: M 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.

1 participant