Repository navigation
fix(ui): include signed-in user in Online roster - #160618
Conversation
Keep session viewer self-exclusion separate from the complete online roster and its activity card. Co-authored-by: VACInc <[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 28, 2026, 4:06 PM ET / 20:06 UTC (Revision 4). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherGateway 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -24, Tests +22, Docs +1. Total -1 across 9 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. 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 (3 earlier review cycles)
|
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]>
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]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
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.
* 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]>
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
dfa6f0f409f2f0b94a07d9840097989d2028243fpassed CI run 36475941240 and the enforced CI gate. Fresh ClawSweeper review reported no actionable findings. Merged as331628f27c20dcbacdbf4ac8deaec8ba2ee86542at 20:21 UTC on September 28, 2026, without an admin bypass.Missing person: ada.git diff --checkis clean.pnpm test ui/src/components/app-sidebar.people.test.ts --maxWorkers=1). No production code changed in this follow-up.TS2554after 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 at89c0030e4c451, 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.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.
Contributor: @VACInc (Vito).
Work sessions