Repository navigation
fix(ui): show complete person cards in chat - #153231
Conversation
|
🦞👀 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 20, 2026, 3:11 AM ET / 07:11 UTC (Revision 5). ClawSweeper reviewWhat this changesChat 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +171, Tests +114, Docs 0. Total +285 across 11 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
d004c31 to
e8a6520
Compare
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]>
e8a6520 to
e73db52
Compare
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]>
|
Merged via squash.
|
* 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]>
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
5550d1d1e43a9ce263c334f0b1f5aa210c2bd707(attempt 1; all 128 jobs terminal, no failures).tbx_01m2y14s8m3f9wae3gsv896dct(run); wrapper exit 0, 33/33 passed. Light/dark screenshots confirm an unclipped ring with legible labels.tbx_01m2xkzms7r09esc2v3yxa6dk1(run); local loopback HTTP is proxy-restricted. This is browser boundary proof with a mocked Gateway, not live production data.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.