Repository navigation
feat(ui): show session info in the sidebar hovercard - #125678
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 4:47 AM ET / 08:47 UTC. ClawSweeper reviewWhat this changesThe PR makes sidebar session hovercards available without a progress card and adds owner, timing, pull-request, branch-diff, and existing progress details. Merge readinessNo blocking correctness finding was identified. This maintainer-labeled PR remains open for normal maintainer handling after the remaining exact-head checks complete. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Gateway supplies per-session pull-request and branch snapshots to the Control UI. A lazy provider activates only for sidebar session rows, combines those snapshots with the existing sidebar projection and progress card, and renders a portaled hovercard. flowchart LR
A[Session workspace facts] --> B[Gateway session snapshot]
C[Sidebar session row] --> D[Lazy sidebar hovercard]
B --> D
E[Progress card store] --> D
D --> F[Combined session hovercard]
G[Markdown session link] --> H[Dedicated link preview]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +416, Tests +553. Total +969 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the lazy sidebar-only provider and its reuse of the sidebar session projection; merge once exact-head CI is green and the maintainer review is complete. Do we have a high-confidence way to reproduce the issue? Not applicable as an issue reproduction: this is a feature PR, and its focused Chromium suite covers the new sidebar-hover, branch-fallback, progress, and Markdown-link paths. Is this the best way to solve the issue? Yes: it composes existing Gateway facts and the sidebar-owned session projection, avoiding both an eager duplicate registry and interference with Markdown session-link previews. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c9d924cd0f18. 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
HistoryReview history (2 earlier review cycles)
|
The sidebar session hovercard now always opens and shows owner, created and updated times, PR chips with CI state and diff stats, plus a branch and changed-files fallback with “No PR yet”. The progress card renders below when present, and the gateway exposes changedFiles on session PR and branch snapshots.
Keep Markdown session links owned by their dedicated preview hovercard by limiting both lazy registration and runtime activation to sidebar session rows. Add browser coverage that fails when the competing sidebar hovercard steals the link trigger.
addbc86 to
42d6f3e
Compare
|
Addressed both ClawSweeper rank-up moves on
Regression proof: with the pre-fix broad |
Reuse the sidebar’s existing session projection from the lazy hovercard runtime instead of publishing a separate startup-loaded registry. This removes the registry lifecycle and its implementation-only tests while keeping the browser ownership regression and restoring the Control UI startup bundle below budget.
|
Fixed the related The first review fix pushed startup JavaScript to 334.2 KiB gzip against the 334.0 KiB limit because Proof on the final patch:
The simplification is net −80 production lines and removes 62 obsolete registry-test lines while retaining the fail-before/pass-after Markdown-link browser regression. |
|
Final ClawSweeper rank-up move handled: exact-head CI run 32117643482 completed successfully on |
|
Merged via squash.
|
* feat(ui): show session info in the sidebar hovercard The sidebar session hovercard now always opens and shows owner, created and updated times, PR chips with CI state and diff stats, plus a branch and changed-files fallback with “No PR yet”. The progress card renders below when present, and the gateway exposes changedFiles on session PR and branch snapshots. * fix(ui): scope session hovercards to sidebar rows Keep Markdown session links owned by their dedicated preview hovercard by limiting both lazy registration and runtime activation to sidebar session rows. Add browser coverage that fails when the competing sidebar hovercard steals the link trigger. * perf(ui): keep session hovercard data out of startup Reuse the sidebar’s existing session projection from the lazy hovercard runtime instead of publishing a separate startup-loaded registry. This removes the registry lifecycle and its implementation-only tests while keeping the browser ownership regression and restoring the Control UI startup bundle below budget.
What Problem This Solves
The sidebar progress hovercard only existed for sessions with a progress card and showed nothing about pull requests, diffs, ownership, or timing. Sessions without a plan had no hover surface at all.
Why This Change Was Made
Sidebar rows already carry owner, created, and updated facts, and the Gateway already computes pull-request and branch diff stats. The hovercard now composes those recorded facts instead of leaving them invisible. The Gateway exposes
changedFileson session pull-request and branch snapshots so the UI can render the same diff summary without recomputing it.AI-assisted: Codex.
User Impact
Hovering any session row now shows the owner, created and updated times, pull-request number/state/CI, files changed, additions, and deletions. Sessions without a pull request show the branch fallback and “No PR yet”; an existing progress plan remains unchanged below the session information.
Evidence
pnpm check:changed— green after rebasing onto currentmain.aria-controls; passes when activation is scoped to sidebar rows.pnpm ui:build— green; startup JavaScript is 333.5 KiB gzip, below the 334.0 KiB limit.Before: no hovercard rendered for sessions without a progress card. The previous behavior was captured by the removed test contract “keeps the hover surface closed”.
After — pull request, CI, diff, owner, timing, and progress details:
After — branch and changed-files fallback with “No PR yet”:
After — the sidebar hovercard remains open with the progress card rendered below session information when present: