Skip to content

fix(ui): include signed-in user in Online roster - #160618

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/include-vito-and-open-a-pr
Sep 28, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/include-vito-and-open-a-pr

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the Online sidebar omits your own account, even while you are connected, and excludes your sessions from its displayed totals.

User Impact

Your own account appears alongside other connected people, with open/running session counts, filtering, sorting, and a working activity card. It also remains visible when you are the only person online. Session “other viewers” indicators still exclude you. No permission or Gateway protocol changes.

Why This Change Was Made

The Online roster reused a projection intended to hide the current user from collaborator indicators. It now uses the existing complete, identity-deduplicated presence roster; its people card uses the same projection. Multiple tabs still produce one person, and disconnected entries stay excluded.

Evidence

Landed: exact head dfa6f0f409f2f0b94a07d9840097989d2028243f passed CI run 36475941240 and the enforced CI gate. Fresh ClawSweeper review reported no actionable findings. Merged as 331628f27c20dcbacdbf4ac8deaec8ba2ee86542 at 20:21 UTC on September 28, 2026, without an admin bypass.

  • Reproduced before editing production code: setting the existing sidebar fixture’s authenticated user to Ada caused seven tests to fail with Missing person: ada.
  • 43 focused tests pass across sidebar workload, presence projection, and viewer-facepile coverage. Includes self-only visibility, duplicate tabs, counts/totals, collapse, disconnect, sorting/filtering, and unchanged session-viewer self exclusion.
  • Chromium against the actual Control UI with a mocked Gateway: verified own-user counts, active people card, running filter, deduplication, sole-user roster, collapsed facepile, and navigation to the user’s Activity page.
  • Changed-file checks pass: UI and affected test typechecks, lint, formatting, i18n verification, dead-export scans, and repository guards; git diff --check is clean.
  • Independent AutoReview: no actionable P0–P2 findings in the production diff or the test-only follow-up.
  • Initial CI exposed two stale assertions in the existing sidebar people suite that still expected self to be hidden. Reproduced both locally, updated the roster order/count and collapsed overflow expectations, and audited the matching browser suites for the same assumption. The full sidebar people suite now passes 139/139 tests (24.73 s wall, pnpm test ui/src/components/app-sidebar.people.test.ts --maxWorkers=1). No production code changed in this follow-up.
  • Current-main integration: CI’s merge result exposed TS2554 after fix: show guest self profiles without roster access #160503 added an explicit-null identity test against the roster helper’s old signature. Reproduced the exact error locally, integrated main at 89c0030e4c451, and kept that regression on the session-viewer projection that still owns self filtering. The failing typecheck now passes; 201 focused tests pass across presence, sidebar, facepiles, and guest/self-profile handling (31.61 s combined wall). Scoped lint/format and a fresh independent P0–P2 review also pass.
  • Browser-suite rerun limitation: host loopback preflight returned HTTP 502; the supported network-isolated runner passed Node/pnpm/Chromium preflight after selecting the pinned native pnpm, but its required runtime build was killed by SIGKILL before tests. This is unrun local E2E coverage, not a passing rerun. The existing before/after browser proof is unchanged; current-head hosted CI subsequently passed before landing.
  • Single-worker test cost (pnpm test <file> --maxWorkers=1): sidebar test file 12.42 s wall, presence projection file 4.13 s wall. Both are under 5 s of test execution. The initial CI UI shard ran for 258.66 s before reporting the two stale assertions; Final hosted UI shard wall times were 367–418 s; mocked-browser shards 518–644 s; real-Gateway browser shards 395–402 s. These include job setup, not just the changed test files.

The captures below use the same desktop viewport and dark theme with synthetic people/counts, not live account data. This PR does not deploy the change to Team.

Before After
Online roster omits the signed-in Vito account Online roster includes Vito once, with session counts and updated totals

Contributor: @VACInc (Vito).

Work sessions

Keep session viewer self-exclusion separate from the complete online roster and its activity card.

Co-authored-by: VACInc <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 28, 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: S labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

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

ClawSweeper review

What this changes

The Control UI branch includes the signed-in person in the Online sidebar and people card, updates roster tests and browser expectations, and clarifies that session viewer indicators still exclude that person.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still omits the signed-in person from Online. The branch has direct visual proof of the central fix, the prior sidebar-test finding is addressed, and this review found no concrete patch defect.

Priority: P2
Reviewed head: dfa6f0f409f2f0b94a07d9840097989d2028243f

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Direct visual proof, a narrow projection change, and corrected regression expectations provide strong review confidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed Online renderer is covered by an inspected before/after Control UI screenshot pair from the reported Chromium run with a mocked Gateway: the signed-in row appears once and totals increase correctly. The later test-only integration did not change production behavior; its browser-suite rerun was unrun. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed Online renderer is covered by an inspected before/after Control UI screenshot pair from the reported Chromium run with a mocked Gateway: the signed-in row appears once and totals increase correctly. The later test-only integration did not change production behavior; its browser-suite rerun was unrun. No stored-data contract changes.
Evidence reviewed 9 items Current main still excludes self: The Online renderer on fetched main resolves the authenticated user and passes it to a projection that removes that identity, so a self-only presence roster leaves no Online section.
Introduced roster change: The pinned base-to-head diff changes the Online projection to sort all grouped presence users while leaving the session-viewer projection’s self filter in place.
Existing grouping boundary: The shared projection groups connected entries by recorded identity namespace, deduplicates multiple tabs, and excludes disconnect entries.
Findings None None.
Security None None.

How this fits together

Gateway presence snapshots feed the Control UI’s identity-grouped people list. The sidebar combines that list with session counts; session viewer indicators use a separate filter for other viewers.

flowchart LR
A[Gateway presence] --> B[Group connected identities]
B --> C[Online roster]
D[Session count summary] --> C
C --> E[Sidebar rows and people cards]
B --> F[Session viewer filter]
F --> G[Other viewer indicators]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -24, Tests +22, Docs +1. Total -1 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 3 6 30 -24
Tests 5 42 20 +22
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 50 51 -1

Review metrics

None.

Technical review

Best possible solution:

Use the identity-grouped presence roster for Online rows and people cards, with self-exclusion confined to session viewer indicators.

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

Yes. Current-main source shows that a self-only presence roster is filtered to an empty Online section; the PR also reports pre-fix failing fixture tests. This review did not execute the UI.

Is this the best way to solve the issue?

Yes. Reusing the existing grouped presence projection fixes the roster at its UI owner while preserving the separate session viewer filter.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 3775359ab87d.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The missing self row and understated session totals are a bounded Control UI defect.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed Online renderer is covered by an inspected before/after Control UI screenshot pair from the reported Chromium run with a mocked Gateway: the signed-in row appears once and totals increase correctly. The later test-only integration did not change production behavior; its browser-suite rerun was unrun. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Online renderer is covered by an inspected before/after Control UI screenshot pair from the reported Chromium run with a mocked Gateway: the signed-in row appears once and totals increase correctly. The later test-only integration did not change production behavior; its browser-suite rerun was unrun. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed Online renderer is covered by an inspected before/after Control UI screenshot pair from the reported Chromium run with a mocked Gateway: the signed-in row appears once and totals increase correctly. The later test-only integration did not change production behavior; its browser-suite rerun was unrun. No stored-data contract changes.

Evidence

What I checked:

  • Current main still excludes self: The Online renderer on fetched main resolves the authenticated user and passes it to a projection that removes that identity, so a self-only presence roster leaves no Online section. (ui/src/components/app-sidebar-online.ts:24, 3775359ab87d)
  • Introduced roster change: The pinned base-to-head diff changes the Online projection to sort all grouped presence users while leaving the session-viewer projection’s self filter in place. (ui/src/lib/presence-users.ts:123, dfa6f0f409f2)
  • Existing grouping boundary: The shared projection groups connected entries by recorded identity namespace, deduplicates multiple tabs, and excludes disconnect entries. (src/shared/presence-user.ts:37, dfa6f0f409f2)
  • Sidebar regression coverage: The current test checks self-only visibility, duplicate-tab collapse, counts, the collapsed facepile, and disappearance after disconnect; revised expectations cover sorting and filtering. (ui/src/components/app-sidebar-online.test.ts:194, dfa6f0f409f2)
  • Session viewer separation: Session viewer rendering still calls the self-filtering presence projection; the branch does not change that caller. (ui/src/components/app-sidebar-session-list-render.ts:589, dfa6f0f409f2)
  • Inspected visual proof: The PR-linked before screenshot omits Vito and shows totals of 15 open and 1 running; the after screenshot shows Vito once with 6 open and 2 running, and totals of 21 and 3. The PR body attributes the captures to Chromium running the Control UI against a mocked Gateway. The later browser-suite rerun is explicitly unrun. (dfa6f0f409f2)

Likely related people:

  • RoboClaw: Raw commit 8e57f54 adds ui/src/components/app-sidebar-online.ts:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8e57f5447edd; files: ui/src/components/app-sidebar-online.ts)
  • 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 (3 earlier review cycles)
  • reviewed 2026-09-28T18:19:45.161Z sha a1e6b08 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T18:42:07.053Z sha a1e6b08 :: blocked before merge. :: [P2] Update the sidebar suite for the self-inclusive roster
  • reviewed 2026-09-28T18:51:04.761Z sha 4476608 :: needs maintainer review before merge. :: none

@VACInc
VACInc marked this pull request as ready for review September 28, 2026 18:27
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
Align sidebar and browser roster counts, sorting, and collapsed overflow with the self-inclusive roster while preserving session viewer exclusion checks.

Co-authored-by: VACInc <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 28, 2026
@VACInc
VACInc enabled auto-merge (squash) September 28, 2026 18:59
Integrate main to repair the CI merge-result type failure from #160503. Exercise explicit-null self identity through the session-viewer projection while keeping the Online roster payload-only and inclusive.

Co-authored-by: VACInc <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) September 28, 2026 20:09
@roboclaw-bot
roboclaw-bot merged commit 331628f into main Sep 28, 2026
98 of 99 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/include-vito-and-open-a-pr branch September 28, 2026 20:21
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

vyctorbrzezowski added a commit that referenced this pull request Sep 28, 2026
Keeps the signed-in user in the Online roster (#160618). Roster tests from main now assert the compact row: running count before open count, no totals row.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
* fix(ui): include signed-in user in Online roster

Keep session viewer self-exclusion separate from the complete online roster and its activity card.

Co-authored-by: VACInc <[email protected]>

* test(ui): include self in existing Online roster expectations

Align sidebar and browser roster counts, sorting, and collapsed overflow with the self-inclusive roster while preserving session viewer exclusion checks.

Co-authored-by: VACInc <[email protected]>

---------

Co-authored-by: VACInc <[email protected]>
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

1 participant