Skip to content

feat(ui): show online people and session activity - #125695

Merged
steipete merged 2 commits into
mainfrom
steipete/server-online-status-ui-6a0dab
Aug 18, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/server-online-status-ui-6a0dab

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

  • The Sessions feed reflects the client-loaded sessions result rather than issuing a new all-history query, so very old or unloaded sessions do not appear until the client loads them.
  • The gateway-protocol sessions-row schema currently caps named participants at four per session, so sessions with more than four participants may undercount in the People facet. Both limitations are protocol-side follow-ups and are intentionally outside this client-only change.

Evidence

  • Before dispatch: node scripts/run-vitest.mjs ui/src passed 650 files and 9,319 tests, with 50 skipped; node scripts/check-changed.mjs was green; pnpm ui:build was green with 2,927 modules.
  • After rebase onto current origin/main: node scripts/run-vitest.mjs ui/src passed 653 files and 9,333 tests, with 50 skipped; node scripts/check-changed.mjs was green; pnpm ui:build was green with 2,930 modules and all Control UI performance budgets under their limits.
  • Mocked-dev-server Playwright capture passed 1/1 after rebase. A wall-clock-sensitive assertion discovered just after midnight was repaired to assert the four rendered fixture sessions instead of a fixed calendar-day count; the focused capture and one-file changed gate are green.
  • The three existing Activity E2E files passed 8/8 before dispatch.
  • Fresh Codex autoreview on the complete rebased branch was clean with no accepted or actionable P0 findings and overall correctness 0.98. The isolated capture-test repair also reviewed clean at 0.99.

Sidebar Online section with active and idle identities:

Sidebar Online section

Global Activity Sessions feed with search, time, and People facets:

Global Activity Sessions feed

Single-person Activity view with identity, device, presence, and Viewing now context:

Single-person Activity view

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.
@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete steipete self-assigned this Aug 18, 2026
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 18, 2026
@steipete
steipete marked this pull request as ready for review August 18, 2026 07:39
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 3:47 AM ET / 07:47 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for maintainer handling. The feature has a coherent Control UI boundary and preserves Live/Run modes, but intentionally changes the existing /activity default from Live to Sessions; that product choice needs explicit owner confirmation before merge.

Priority: P3
Reviewed head: 5194383a605168eb36565ca30bc0e91b9b04a61d
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, tested Control UI feature with one explicit route-default product decision remaining.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the prepared manifest contained only related historical screenshots, which were not treated as proof for this branch.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the prepared manifest contained only related historical screenshots, which were not treated as proof for this branch.
Evidence reviewed 5 items Gateway data contract: The protocol schema defines the optional last-input and watched-session fields consumed by the new presence and activity projections.
Current-main route behavior: Current main resolves an empty Activity route to Live; the branch resolves it to Sessions while retaining explicit ?view=live.
Route coverage: The branch adds direct route coverage for the Sessions default, URL filters, explicit Live mode, and preserved Run-inspector selectors.
Findings None None.
Security None None.

How this fits together

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

Decision needed

Question Recommendation
Should the Sessions feed intentionally replace the established Live feed as the default for /activity? Adopt Sessions as default: Merge with the explicit ?view=live route retained for operators who need the browser-local tool feed.

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

  • Resolve merge risk (P1) - Existing /activity bookmarks and navigation now open Sessions instead of the established browser-local Live feed; Live remains reachable only through the new explicit ?view=live route.
Agent review details

Security

None.

PR surface

Source +1086, Tests +225. Total +1311 across 26 files.

View PR surface stats
Area Files Added Removed Net
Source 18 1419 333 +1086
Tests 8 338 113 +225
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 26 1757 446 +1311

Review metrics

Metric Value Why it matters
Production vs test LOC production +1,332/-330; tests/support +425/-116 The positive production delta is tied to the new roster, session projection, view, styling, and route behavior; focused unit and mocked-browser coverage accompanies it.

Stored data model

Persistent data-model change detected: serialized state: ui/src/pages/activity/session-activity-view.ts, serialized state: ui/src/pages/activity/session-activity.test.ts, serialized state: ui/src/pages/activity/session-activity.ts, unknown-data-model-change: ui/src/pages/activity/session-activity-view.ts, unknown-data-model-change: ui/src/pages/activity/session-activity.test.ts, unknown-data-model-change: ui/src/pages/activity/session-activity.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Confirm the new Activity default (recommended)
    Proceed only after the Control UI owner confirms that existing /activity users should land on Sessions and can use Live through its explicit tab.
  2. Preserve the prior default
    Keep Live on the empty Activity route and expose Sessions through an explicit view selector instead.

Technical review

Best 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 /activity default.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5db8368f35a5.

Labels

Label justifications:

  • P3: This is a maintainer-owned Control UI ergonomics feature, not a current reliability or security regression.
  • merge-risk: 🚨 compatibility: The branch intentionally changes the default behavior of the existing /activity route for current operators.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the prepared manifest contained only related historical screenshots, which were not treated as proof for this branch.

Evidence

What I checked:

Likely related people:

  • steipete: Recent history attributes the sidebar-zone refactor and nearby Activity/sidebar maintenance to this contributor. (role: recent Control UI and sidebar contributor; confidence: high; commits: 1e5096c5197c, ebe9d38a5f92; files: ui/src/components/app-sidebar-render.ts, ui/src/pages/activity/activity-page.ts)
  • joshavant: Authored the durable Activity run-inspector commit whose modes this feature extends. (role: Activity run-inspector contributor; confidence: medium; commits: 7ab5d99a6c3c; files: ui/src/pages/activity/activity-page.ts, ui/src/pages/activity/run-inspector-model.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the /activity default change before merge.

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.

@steipete

Copy link
Copy Markdown
Contributor Author

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.

@steipete
steipete merged commit d9dfc5b into main Aug 18, 2026
196 of 200 checks passed
@steipete
steipete deleted the steipete/server-online-status-ui-6a0dab branch August 18, 2026 08:03
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* 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
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 maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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