Repository navigation
feat(ui): show activity cards for online people - #130664
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 10:49 AM ET / 14:49 UTC. ClawSweeper reviewWhat this changesAdds accessible activity cards for people in the Control UI Online roster, with ephemeral Gateway timing and recipient-filtered presence data, and repairs cold capability discovery and interrupted smooth scrolling. Merge readinessKeep open for normal maintainer review: current main lacks the people-card implementation and the PR also contains coherent candidate repairs for the related Gateway and scroll defects. Direct source and sibling-path inspection found no actionable patch defect, but exact-head CI is still incomplete. Priority: P1 Review scores
Verification
How this fits togetherGateway presence records authenticated live-client state and projects it for each recipient before Control UI consumes it. The sidebar turns that permitted presence plus the viewer's loaded session roster into an online-person card and navigation links. flowchart LR
A[Authenticated live clients] --> B[Gateway presence]
B --> C[Recipient access projection]
C --> D[Control UI online roster]
D --> E[Person activity card]
F[Viewer-visible session roster] --> E
G[Capability and scroll owners] --> H[Responsive chat experience]
Decision needed
Why: The patch spans the Control UI, Gateway presence, plugin-loading, and transcript owners, so final merge scope remains a maintainer judgment even though no concrete defect was found. Before merge
Agent review detailsSecurityNone. PR surfaceSource +1510, Tests +1351, Docs +21, Other +38. Total +2920 across 68 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after exact-head required CI confirms the combined feature and related repairs, retaining the recipient projection and roster-intersection boundaries. Do we have a high-confidence way to reproduce the issue? Yes for the related defects in the supplied real Gateway/browser evidence and source tests, but this read-only review did not execute those scenarios; the new card feature itself is a proposed capability rather than a defect reproduction. Is this the best way to solve the issue? Yes: the implementation records timing at the live Gateway owner, applies recipient projection before transport, and intersects presence hints with the viewer-visible roster instead of adding persistence or client-side authorization. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5cdef0590355. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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
HistoryReview history (6 earlier review cycles)
|
54cef12 to
630e758
Compare
|
Maintainer decision on the presence-audience review question: keep collaborative online/activity timing and reported time zones available to operators with read access. Node and pairing-only connections must not receive those people details. The boundary belongs in the shared Gateway projection for hello, I’m integrating the recipient-aware presence owner and its real-WebSocket visibility regressions rather than adding a second projection path. The broader cross-operator IP-policy question in #128528 remains separate; this card never renders IP addresses. The PR remains draft until the reader policy and the final real-Gateway recording are verified. Two review clarifications: the current-main comparison is now available and the branch has been rebased while preserving main’s node-teardown-before-history-write ordering (110 focused lifecycle tests passed). The new timing state is ephemeral on live clients and in the existing presence cache; there are no database tables, schema versions, persisted activity history, or migrations in this change. The native protocol additions are optional fields, regenerated from the schema. |
Inspected UI evidenceThese are the original, unaltered Browser captures from the feature work, using fictional Gateway data:
This is mocked-Gateway visual evidence, not the real-Gateway authorization proof. The reader-policy WebSocket tests have passed; the final real-Gateway recording will follow the cold capability-load repair tracked in #130777. |
630e758 to
13e2907
Compare
Final real-Gateway proof —
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f943e8e to
0a4ae03
Compare
CI follow-through and synchronized proofCurrent candidate: The failed run 33064097043 exposed four separate checks, all addressed in this candidate:
The scroll regression failed on the original owner, and an additional near-end case caught the first repair incorrectly issuing On the integrated branch, 94 scroll-owner tests, 23 combined people-card/transcript/resize/focus/streaming browser tests, and six sidebar browser tests passed, along with scoped types/lint/guards and complete architecture checks. An initial owning-session focus-placement run failed once; unchanged isolated/full reruns and the integrated set passed. That separate observation remains under bounded investigation; no focus-specific fix is claimed here. A further fresh real-Gateway run at Earlier before/after and live/profile evidence remains valid for its explicitly recorded heads. The PR changes no startup-JS baseline, dependency, SQLite schema, or protocol version; the earlier allowance was removed. Fresh task-scoped Codex P0 review found no actionable defects in the final scroll patch, whose integrated file hashes match the reviewed handoff. @clawsweeper re-review — this candidate adds the verified current-main scroll-command repair and CI fixture/type corrections after the previous review. Required exact-head CI and native prepare/merge remain the landing gates. people-cards-final-desktop.mp4 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Record live person timing independently of heartbeat freshness and expose keyboard- and touch-accessible cards with visible session links. Preserve continuous online intervals across overlapping tabs without adding persistent activity history. Closes #130649
Apply one recipient projection to hello, system-presence, and events. Keep person timing and time-zone details behind read access, and filter watched references with the canonical session-list policy without leaking hidden counts. Preserve idle-person metadata for readers and prevent non-reader activity-driven frames.
Carry the owning registry's metadata generation, workspace, install records, and built-artifact preference through capability discovery. Preserve standalone source loading and existing speech eligibility while avoiding synchronous source transforms on cold Talk catalog requests. Fixes #130777
Keep the recipient matrix in its timing-aware owner, close the suite-owned Gateway for shutdown proof, and spy on the canonical install-record reader. Remove the retired private carrier's assertion allowance.
Publish completed connection rows through the canonical scoped broadcaster so established readers see first connections and reconnects without waiting for profile edits or activity. Preserve shared online intervals and reset them only after the final socket closes.
Reuse the canonical sidebar host type to remove the type-only lazy-runtime cycle. Assert omitted scopes through hello auth and denied presence reads, and supply presence version callbacks in the shared WebSocket context fixture. Retain startup admission and drain assertions without changing deadlines.
Do not treat the virtualizer's idle debounce or a decreasing offset as reader takeover. Settle at the actual DOM end within one pixel, retaining the separate eight-pixel UI-follow policy and explicit input cancellation. Cover retargeted idle delivery and near-end precision with the real dependency, synchronize pointer baseline capture, and type the existing composer snapshot as its textarea contract. Fixes #130892
0a4ae03 to
61d0429
Compare
Final-head landing evidenceReviewed candidate: The final rebase reconciled an actual overlap with main’s capability-provider consolidation: main’s single registry-selection/entry-merge flow is preserved, along with this PR’s request-owned prepared load context. Seven commits were patch-identical across that rebase. No timeout, assertion tolerance, configuration knob, dependency, protocol version, persistent store, or startup-JS baseline was changed. Final-head local proof: node scripts/run-vitest.mjs src/plugins/capability-provider-runtime.test.ts src/plugins/capability-provider-runtime.generation.test.ts
node scripts/check-changed.mjs -- src/plugins/capability-provider-runtime.ts src/plugins/capability-provider-runtime.test.ts src/plugins/capability-provider-runtime.generation.test.ts
NODE_OPTIONS=--max-old-space-size=8192 pnpm buildAll 75 capability/generation tests, the changed gate and the production build passed. Startup JS was342775B against main’s unchanged344044B baseline. Fresh isolated Codex P0 review reported no actionable findings; that is not an all-priority audit claim. A further fresh isolated real built Gateway run on this exact head passed all 24 assertions, including real viewing/typing, shared-tab intervals, oldest-tab closure, full disconnect/reconnect, keyboard navigation and the dark touch card. Cold The final classified delta is production +1492/−230 (net+1262), tests/support +2019/−389 (net+1630), generated Swift +8, docs net+21, assertion tooling net−1. Runtime growth implements the requested card and truthful live-client timing owner; existing projection, capability context and scroll owners absorb the repairs. Serialized live objects and plugin metadata introduce no database migration. Native review baseline/head/guard/artifacts passed validation, and Limitations remain explicit: no live provider inference or native-app launch; no operator credentials/state used. The separate unchanged focus-placement observation remains under bounded owner diagnosis after passing isolated/full/integrated/CI reruns; no focus-specific repair is claimed. The broader cross-reader IP policy and previously named unrelated follow-ups remain separate. |
|
Merged via squash.
|
* feat(ui): show activity cards for online people Record live person timing independently of heartbeat freshness and expose keyboard- and touch-accessible cards with visible session links. Preserve continuous online intervals across overlapping tabs without adding persistent activity history. Closes openclaw#130649 * build(protocol): refresh generated presence timing fields * fix(gateway): scope presence snapshots to read-access operators Apply one recipient projection to hello, system-presence, and events. Keep person timing and time-zone details behind read access, and filter watched references with the canonical session-list policy without leaking hidden counts. Preserve idle-person metadata for readers and prevent non-reader activity-driven frames. * fix(plugins): preserve Gateway capability load context Carry the owning registry's metadata generation, workspace, install records, and built-artifact preference through capability discovery. Preserve standalone source loading and existing speech eligibility while avoiding synchronous source transforms on cold Talk catalog requests. Fixes openclaw#130777 * test: align integrated presence and capability coverage Keep the recipient matrix in its timing-aware owner, close the suite-owned Gateway for shutdown proof, and spy on the canonical install-record reader. Remove the retired private carrier's assertion allowance. * fix(gateway): broadcast presence when clients connect Publish completed connection rows through the canonical scoped broadcaster so established readers see first connections and reconnects without waiting for profile edits or activity. Preserve shared online intervals and reset them only after the final socket closes. * fix(ci): align presence fixtures and sidebar type ownership Reuse the canonical sidebar host type to remove the type-only lazy-runtime cycle. Assert omitted scopes through hello auth and denied presence reads, and supply presence version callbacks in the shared WebSocket context fixture. Retain startup admission and drain assertions without changing deadlines. * fix(ui): retain latest scroll commands until their destination Do not treat the virtualizer's idle debounce or a decreasing offset as reader takeover. Settle at the actual DOM end within one pixel, retaining the separate eight-pixel UI-follow policy and explicit input cancellation. Cover retargeted idle delivery and near-end precision with the real dependency, synchronize pointer baseline capture, and type the existing composer snapshot as its textarea contract. Fixes openclaw#130892










Closes #130649 — activity cards for online people in the Control UI.
Closes #130777 — cold Talk catalog discovery synchronously loading provider source.
Closes #130892 — idle notifications prematurely canceling Scroll to latest.
What Problem This Solves
The sidebar’s Online roster identifies people but lacks the context available on session cards. Heartbeat freshness cannot truthfully tell an operator how long someone has been online or when they last acted. Real-Gateway proof also exposed a cold catalog stall and a missing connection broadcast; CI exposed a separate current-main smooth-scroll completion defect.
Why This Change Was Made
The accessible people card reuses the existing portal, positioning, avatars, and interaction patterns through a sidebar-owned lazy runtime. Continuous online timing belongs to the exact live Gateway client, not the bounded heartbeat cache. Overlapping tabs share one interval, closing the oldest tab preserves it, and a full disconnect starts a new interval. Changed nonempty viewer declarations, accepted typing, and newly admitted sends record activity; pongs, duplicate acknowledgments, and agent output do not. Registration now publishes the completed roster through the canonical broadcaster, so existing readers see new connections and reconnects without waiting for another action.
The explicitly approved audience is operators with read access (
operator.read,operator.write, oroperator.admin). Building on the landed watched-session projection, one Gateway projection gates the whole roster before row processing, including idle people and legacy freshness/order signals. Node, worker, pairing-only, and no-read recipients receive no roster or presence events. Watched references independently follow current session visibility, including pending-profile/admin parity and omission of hidden or missing sessions. The card further intersects links with its loaded authorized roster.The cold-load repair carries existing registry-owned metadata generation, workspace, environment, install records, and built-artifact preference through capability discovery, including empty Gateway registries and bundled capture. It removes the old agent-private carrier and duplicate merging path rather than adding another cache. Standalone source-first loading, explicit owner denial, and speech’s existing global-disable compatibility remain unchanged.
The CI scroll repair separates an actual end destination from both a debounced idle signal and the UI’s eight-pixel near-end policy. A smooth Latest command now remains active until the DOM reaches its destination within one pixel, or explicit reader input supersedes it. No deadline, assertion bound, dependency patch, or new configuration knob is involved.
User Impact
Hover or focus an Online person, or use the details chevron on touch, to see online duration, reported app/device/time-zone context, last observed activity, current/recent visible sessions, and the existing Activity view. Unknown activity stays explicit. The name remains a normal link; keyboard focus, Escape, modal-layer touch interaction, and multi-tab updates retain their normal behavior.
No IP is rendered by the card, no geolocation lookup is added, and there is no new RPC, polling service, dependency, persistent activity history, SQLite schema change, or protocol-version bump. Generated Swift models follow the additive timestamps. The broader reader-to-reader network-metadata policy remains open.
Evidence
AI-assisted implementation. Original inspected before/after, desktop-light, and touch-dark captures and real-Gateway recordings, the sanitized verdict, and profile evidence are attached. CI follow-through and additional scroll proof record the synchronized candidate. Exact-head CI run 33078000421 passed for
0a4ae031e549db39e0520080b2d555db48e1d43f. A subsequent actual conflict with main’s capability-provider consolidation required one more rebase. The resolved candidate preserves both main’s single registry-selection flow and this PR’s request-owned load context; the capability/generation suite passed all 75 tests, and fresh isolated Codex P0 review found no actionable findings. The landing comment records the final head and required CI receipt.chat.sendrequests; no operator state or provider credentials were used. Owned Gateways were stopped afterward.The first CI run found a type-only sidebar cycle, obsolete no-read inventory expectations, incomplete startup-test broadcast callbacks, and the current-main scroll failure. The cycle was removed by reusing the canonical host type; tests now assert actual scope grants/denials and provide the shared context’s required callbacks. Main’s independently landed runtime-checked textarea fix is preserved. No failures were bypassed.
An owning-session browser run also failed an unchanged focus-placement assertion once; isolated/full reruns and the integrated 23-test set passed. That result is under a bounded follow-up, and no focus-specific repair is claimed yet. Earlier validation history also includes a default-heap build failure recovered with CI’s existing 8 GiB setting, an automatically retried stalled test invocation, and use of pinned SwiftLint rather than the host’s newer version.
Classified delta against the synchronized base: production +1492/−230 (net +1262), tests/support +2019/−389 (net +1630), generated Swift +8, docs net +21, and assertion tooling net −1. Production growth supplies the requested card and live timing owner; the visibility and loading repairs reuse existing ownership boundaries. Main independently absorbed part of the loading cleanup, so those deletions no longer belong to this PR’s delta. Serialized ephemeral objects and plugin metadata do not introduce a persistent-store migration.
The recipient-policy decision and real-WebSocket allowed/denied matrix address the prior ClawSweeper P1 finding and rank-up requests. Historical participant-identity semantics, cross-reader IP policy, and unrelated global health-summary visibility remain separate follow-ups.