Repository navigation
feat(ui): show online people and session activity - #125695
Conversation
Adds a sidebar "Online" section (visible only when at least one other identity is connected, idle users dimmed) that links into a new session-feed default view on the existing Activity page: search, time window, and per-person facets over day-grouped sessions, with a per-person identity header (devices, viewing-now) when one person is selected. Removes the dead footer viewer-facepile roster that the sidebar-zone refactor (#112936) left unmounted. Client-only; no gateway/protocol changes.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 3:47 AM ET / 07:47 UTC. ClawSweeper reviewWhat this changesThe PR adds a shared-gateway presence roster to the Control UI sidebar and a filterable session-activity view that becomes the Activity page default. Merge readinessKeep open for maintainer handling. The feature has a coherent Control UI boundary and preserves Live/Run modes, but intentionally changes the existing Priority: P3 Review scores
Verification
How this fits togetherThe Control UI receives presence snapshots and the client’s canonical session list from the Gateway. This change projects those inputs into sidebar presence links and an Activity-page session browser that routes operators into existing chats. flowchart LR
A[Gateway presence snapshot] --> C[Presence projection]
B[Gateway session list] --> D[Session activity projection]
C --> E[Sidebar Online roster]
E --> F[Person filter URL]
F --> G[Activity sessions view]
D --> G
G --> H[Existing chat route]
Decision needed
Why: This is an operator-visible route-default change, not a mechanical repair; source proves both behaviors but cannot decide the preferred default. Before merge
Agent review detailsSecurityNone. PR surfaceSource +1086, Tests +225. Total +1311 across 26 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm the new Sessions default as the intended Activity information architecture, then retain the explicit Live tab and route as the compatibility path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a new Control UI capability, and the supplied mocked Gateway E2E scenario exercises its intended states rather than reproducing a defect. Is this the best way to solve the issue? Unclear pending owner intent: reusing the existing Gateway presence and session-list data is the right owner boundary, but only a product owner can confirm replacing the current AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5db8368f35a5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper rank-up move addressed: the operator and Control UI owner explicitly requested and confirms that Sessions becomes the new default view for /activity. This is an intentional product choice; Live activity remains available through its tab and the explicit view=live URL. The stored-data-model heuristic in the review is not applicable here. The flagged files contain client-side projection, rendering, and test code only; this PR adds no persistence, database, gateway protocol, or migration surface. |
|
Merged via squash.
|
* feat(ui): add sidebar Online presence section and Activity session feed Adds a sidebar "Online" section (visible only when at least one other identity is connected, idle users dimmed) that links into a new session-feed default view on the existing Activity page: search, time window, and per-person facets over day-grouped sessions, with a per-person identity header (devices, viewing-now) when one person is selected. Removes the dead footer viewer-facepile roster that the sidebar-zone refactor (openclaw#112936) left unmounted. Client-only; no gateway/protocol changes. * test(ui): make activity capture date-boundary safe
What Problem This Solves
The Control UI does not currently give operators a clear, centralized view of who else is connected to the gateway or which recent sessions those people own, participate in, or are actively viewing. The only prior online roster was dead footer code that stopped mounting after the sidebar-zone refactor in #112936, while the Activity page exposed only live activity and the run inspector.
Why This Change Was Made
This adds a sidebar Online section that appears only when another identity besides the operator is connected, and dims identities whose last input is older than 120 seconds. Selecting a person opens a new default Sessions view on the existing Activity page, with URL-backed search, time, and People filters; day-grouped session rows; per-person identity, device, presence, and Viewing now context; and links into each session's chat. Existing Live activity and Run inspector tabs remain available.
The implementation is client-only and uses the system-presence, watchedSessions, and sessions-list data the gateway already broadcasts. It removes the unreachable footer roster and reuses its useful copy and styling instead of introducing a second presence presentation.
AI-assisted: yes. The complete branch was reviewed with the repository autoreview workflow and no accepted or actionable P0 findings remained.
User Impact
Operators on shared gateways can immediately see who is online or idle, browse recent session activity by person and time window, share filtered Activity URLs, and jump directly into relevant chats. Single-operator gateways keep the existing uncluttered sidebar because the Online section is hidden entirely.
Known limitations
Evidence
Sidebar Online section with active and idle identities:
Global Activity Sessions feed with search, time, and People facets:
Single-person Activity view with identity, device, presence, and Viewing now context: