Skip to content

fix(ui): show complete person cards in chat - #153231

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/unify-chat-and-sidebar-hover-cards
Sep 20, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/unify-chat-and-sidebar-hover-cards

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: hovering a selected person in chat shows only their name and Activity link, while hovering the same person in the sidebar shows presence and session details.

User Impact

Chat and sidebar use the same full person card, with observed online status, device/time zone, last activity, visible watched and recent sessions, and Activity navigation. Keyboard focus survives live updates. Original mention text, profile merges, and session visibility rules are unchanged.

Why This Change Was Made

Remove the identity-only renderer and expose the sidebar's existing loaded data through a read-only, application-scoped subscription. Both surfaces share rendering and focus repair; opening a chat card does not fetch another session list. Missing presence observations remain unknown rather than implying Offline.

Merge-context prerequisite: main’s focus-time virtual-row containment override reproduced a Chromium crash after Copy → context menu. The stable-containment/inset-ring repair is now on main; this PR retains static label spacing so the inset ring does not cover disclosure text. Virtualization and strict disclosure geometry remain intact.

Requested by @steipete.

Work sessions

Evidence

  • The new real-browser parity regression failed before the fix: chat displayed only the name and Activity link. It now verifies matching content/links, live presence changes, visibility filtering, focus recovery, and dashboard-session navigation.
  • 33 pinned-Chromium (153.0.8010.12) + mocked-Gateway cases passed on the final candidate: 17 person-card cases, all 9 message-action cases (including the previous crash), and all 7 strict disclosure/virtual-row geometry cases. Keyboard/mouse/touch, merged/unavailable profiles, namespace collisions, stale replies, and focus visibility remain covered.
  • Fresh independent autoreviews of the primary change and final containment/focus repair: no actionable P0–P2 findings. Final repair formatting, stylelint and whitespace checks passed. Core-test/UI typechecks, formatting, i18n and dead-export checks passed; final targeted lint/style checks cover the mechanical lint corrections.
  • Landing CI exposed a stale import in a prepared-runtime regression after main moved its helper to the lifecycle owner. The test now imports the canonical helper; no production behavior or assertions changed. The original failure reproduced locally; all 47 automatic-selection/lifecycle cases, changed-file checks, and a fresh P0–P2 review passed. Exact-head CI completed successfully on 5550d1d1e43a9ce263c334f0b1f5aa210c2bd707 (attempt 1; all 128 jobs terminal, no failures).
  • Inspected, synthetic before/after captures below; also delivered in the originating chat.
  • Final repair proof ran on Blacksmith Testbox tbx_01m2y14s8m3f9wae3gsv896dct (run); wrapper exit 0, 33/33 passed. Light/dark screenshots confirm an unclipped ring with legible labels.
  • Original person-card browser proof ran on Blacksmith Testbox tbx_01m2xkzms7r09esc2v3yxa6dk1 (run); local loopback HTTP is proxy-restricted. This is browser boundary proof with a mocked Gateway, not live production data.

Before: chat person card omitted presence and sessions

After: chat uses the full shared person card

Disclosure focus preserved

The final inset ring stays inside the virtual row without overlapping the label. These synthetic crops omit the composer and model footer.

Light theme: visible inset disclosure focus and readable label

Dark theme: visible inset disclosure focus and readable label

@clawsweeper

clawsweeper Bot commented Sep 19, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 19, 2026 23:04
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 19, 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: 🐚 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 Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 3:11 AM ET / 07:11 UTC (Revision 5).

ClawSweeper review

What this changes

Chat mentions reuse the sidebar’s complete person card and live data, with shared focus recovery, disclosure spacing, browser coverage, documentation, and a test-import correction.

Merge readiness

✅ Ready for maintainer review

Keep open: current main still lacks complete chat person cards, and this protected PR provides a coherent, demonstrated improvement. No actionable introduced defect was found.

Priority: P2
Reviewed head: 5550d1d1e43a9ce263c334f0b1f5aa210c2bd707

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent shared-owner implementation with convincing visual evidence, focused browser coverage, and no blocking findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots directly demonstrate the shared person-card content and disclosure focus styling. The supplied mocked-Gateway browser run exercises the production UI entrypoint, with source assertions covering updates, visibility filtering, focus recovery, and navigation; no live production Gateway coverage is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Chromium screenshots directly demonstrate the shared person-card content and disclosure focus styling. The supplied mocked-Gateway browser run exercises the production UI entrypoint, with source assertions covering updates, visibility filtering, focus recovery, and navigation; no live production Gateway coverage is claimed.
Evidence reviewed 8 items Current main still has the incomplete card: At the supplied current-main revision, chat calls renderPersonIdentityCard, which renders only the person header and Activity link. The central improvement remains absent.
Shared data lifecycle and rendering: The new subscription exposes the existing session-data owner without copying its state or issuing another session-list request. Publisher disconnection clears the reference; closing the chat card disposes its listener.
Visibility and navigation boundaries: The shared renderer intersects watched-session hints with loaded caller-visible rows. Chat navigation rechecks its application context, route, and connection scope before committing; no permission grant or authorization policy changes were introduced.
Findings None None.
Security None None.

How this fits together

The Control UI displays people referenced in chat using Gateway profile information. This change combines that identity with the sidebar’s already-loaded presence and visible sessions to populate cards and navigation links.

flowchart TD
  A[Selected chat mention] --> B[Gateway profile lookup]
  C[Sidebar presence and visible sessions] --> D[Application-scoped subscription]
  B --> E[Shared person card]
  D --> E
  E --> F[Presence and session details]
  E --> G[Guarded session or Activity navigation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +171, Tests +114, Docs 0. Total +285 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 7 282 111 +171
Tests 3 115 1 +114
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 398 113 +285

Review metrics

Metric Value Why it matters
Production and test growth production +171 net lines; tests +114 net lines Production growth supports the shared subscription lifecycle and guarded chat navigation while removing the identity-only renderer and duplicated focus repair.

Technical review

Best possible solution:

Use one person-card renderer backed by the existing caller-visible roster, preserving unknown presence, connection-scoped navigation, and keyboard focus.

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

Not applicable as a new failure reproduction: this extends the documented identity-only chat card to match the sidebar. Current-main source and inspected before/after screenshots establish the existing difference.

Is this the best way to solve the issue?

Yes. Reusing the sidebar renderer and loaded data is a narrow solution that avoids a competing session cache or additional session-list requests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d55f4cf342fe.

Labels

Label justifications:

  • P2: This is a bounded improvement to chat person-card completeness and keyboard usability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium screenshots directly demonstrate the shared person-card content and disclosure focus styling. The supplied mocked-Gateway browser run exercises the production UI entrypoint, with source assertions covering updates, visibility filtering, focus recovery, and navigation; no live production Gateway coverage is claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium screenshots directly demonstrate the shared person-card content and disclosure focus styling. The supplied mocked-Gateway browser run exercises the production UI entrypoint, with source assertions covering updates, visibility filtering, focus recovery, and navigation; no live production Gateway coverage is claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium screenshots directly demonstrate the shared person-card content and disclosure focus styling. The supplied mocked-Gateway browser run exercises the production UI entrypoint, with source assertions covering updates, visibility filtering, focus recovery, and navigation; no live production Gateway coverage is claimed.

Evidence

What I checked:

  • Current main still has the incomplete card: At the supplied current-main revision, chat calls renderPersonIdentityCard, which renders only the person header and Activity link. The central improvement remains absent. (ui/src/components/person-reference.ts:195, d55f4cf342fe)
  • Shared data lifecycle and rendering: The new subscription exposes the existing session-data owner without copying its state or issuing another session-list request. Publisher disconnection clears the reference; closing the chat card disposes its listener. (ui/src/components/person-activity-data.ts:30, 5550d1d1e43a)
  • Visibility and navigation boundaries: The shared renderer intersects watched-session hints with loaded caller-visible rows. Chat navigation rechecks its application context, route, and connection scope before committing; no permission grant or authorization policy changes were introduced. (ui/src/components/person-reference.ts:259, 5550d1d1e43a)
  • Inspected visual proof and browser coverage: All four prepared screenshots were inspected locally. Before/after person-card images visibly demonstrate added presence, connection details, watched sessions, and recent sessions; light/dark disclosure images show readable inset focus rings. The captured PR body reports 33 Chromium cases with a mocked Gateway. The inspected parity test asserts live updates, hidden-session exclusion, focus recovery, and dashboard navigation. These are browser-boundary observations, not live production Gateway proof. (ui/src/e2e/chat-person-reference.e2e.test.ts:43, 5550d1d1e43a)
  • Exact-head CI and read-only validation: GitHub reports the linked CI run completed successfully for the exact reviewed head. The separate Testbox wrapper workflow is marked cancelled, so its workflow conclusion is not treated as proof of the reported child execution. Local diff whitespace validation passed; no builds or tests were executed during this read-only review. (5550d1d1e43a)
  • Merged area history: Current-main history connects steipete to shared people-card keyboard handling and roboclaw-bot to linked-person identity behavior. GitHub separately verified both corresponding commits as merged. These are routing signals, not claims of causal introduction. (ui/src/components/sidebar-people.runtime.ts, bce88774daa4)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • roboclaw-bot: 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 (4 earlier review cycles)
  • reviewed 2026-09-19T23:10:32.040Z sha d004c312e1aeea70665d1287718e811bb6a4b3be :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T00:16:59.350Z sha e8a6520 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T06:22:59.518Z sha e73db52 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-20T06:54:13.824Z sha 5550d1d :: needs maintainer review before merge. :: none

@roboclaw-bot
roboclaw-bot force-pushed the openclaw/unify-chat-and-sidebar-hover-cards branch from d004c31 to e8a6520 Compare September 20, 2026 00:09
roboclaw-bot and others added 2 commits September 20, 2026 06:14
Reuse the sidebar activity card and loaded presence/session data for selected chat mentions. Preserve live focus, profile merges, visibility filtering, and session navigation.

Co-authored-by: steipete <[email protected]>
Keep virtual-row containment stable through keyboard focus and context-menu actions. Inset disclosure outlines with static inline spacing so focus remains visible without covering labels.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/unify-chat-and-sidebar-hover-cards branch from e8a6520 to e73db52 Compare September 20, 2026 06:15
Repair the stale test import exposed by exact-head CI after the lifecycle-owner move on main. Preserve the no-progress regression and all assertions.

Co-authored-by: steipete <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Sep 20, 2026
@roboclaw-bot
roboclaw-bot merged commit 3734ebb into main Sep 20, 2026
195 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/unify-chat-and-sidebar-hover-cards branch September 20, 2026 07:38
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 21, 2026
* fix(ui): show complete person cards in chat

Reuse the sidebar activity card and loaded presence/session data for selected chat mentions. Preserve live focus, profile merges, visibility filtering, and session navigation.

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

* fix(ui): preserve disclosure focus without changing row containment

Keep virtual-row containment stable through keyboard focus and context-menu actions. Inset disclosure outlines with static inline spacing so focus remains visible without covering labels.

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

* fix: use lifecycle owner in prepared runtime regression

Repair the stale test import exposed by exact-head CI after the lifecycle-owner move on main. Preserve the no-progress regression and all assertions.

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

---------

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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