Skip to content

feat(ui): show session info in the sidebar hovercard - #125678

Merged
steipete merged 3 commits into
mainfrom
steipete/sitebar-progress-card-ee9c94
Aug 18, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/sitebar-progress-card-ee9c94

Conversation

@steipete

@steipete steipete commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

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 changedFiles on 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 current main.
  • Focused Gateway and renderer tests — 40 tests green.
  • Chromium E2E — 7/7 green, including the new PR-chip, branch-fallback, always-open, empty-card-guard, and Markdown-session-link ownership scenarios.
  • Markdown-link ownership regression — fails on the pre-fix broad selector because the sidebar hovercard steals 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.
  • Fresh autoreview — clean, with no accepted/actionable findings.
  • Source-blind screenshot inspection — PR, branch-only, and progress-only contracts visible in the captured running UI.

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:

Session hovercard showing PR chips, CI state, diff stats, owner, timing, and progress

After — branch and changed-files fallback with “No PR yet”:

Session hovercard showing branch details, changed files, diff stats, owner, timing, and No PR yet

After — the sidebar hovercard remains open with the progress card rendered below session information when present:

Open sidebar session hovercard with progress card

@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 marked this pull request as ready for review August 18, 2026 06:56
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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, 4:47 AM ET / 08:47 UTC.

ClawSweeper review

What this changes

The PR makes sidebar session hovercards available without a progress card and adds owner, timing, pull-request, branch-diff, and existing progress details.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding was identified. This maintainer-labeled PR remains open for normal maintainer handling after the remaining exact-head checks complete.

Priority: P3
Reviewed head: c5a84a61e0baf2d51521281231004c76b02fd2c7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is well-scoped with focused boundary coverage and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The PR is maintainer-authored; its body includes after-fix screenshot links and focused Chromium E2E claims, though the review host could not retrieve attachments because GitHub DNS was unavailable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The PR is maintainer-authored; its body includes after-fix screenshot links and focused Chromium E2E claims, though the review host could not retrieve attachments because GitHub DNS was unavailable.
Evidence reviewed 6 items Sidebar-only activation: Both lazy registration and the runtime select only sidebar session rows, preserving the separate Markdown session-link hovercard boundary.
Canonical row projection: The lazy provider reads the existing sidebar projection through findSidebarSessionByKey rather than maintaining a second eager registry.
Gateway-to-UI contract: The Gateway adds optional changed-file counts to existing pull-request and branch snapshots, and the renderer displays them alongside existing diff facts.
Findings None None.
Security None None.

Live Verification

Command: pnpm ui:build

Result: PASS (completed)

../dist/control-ui/assets/tiddlywiki-aQ3kpKB5.js                                 2.89 kB │ gzip:   1.17 kB │ map:    11.09 kB
../dist/control-ui/assets/session-progress-Bzi6UePM.js                           2.90 kB │ gzip:   1.16 kB │ map:     6.15 kB
../dist/control-ui/assets/modelica-B5NLfSpl.js                                   2.91 kB │ gzip:   1.37 kB │ map:     8.06 kB
../dist/control-ui/assets/oz-BOXn6tTI.js                                         3.00 kB │ gzip:   1.37 kB │ map:     9.47 kB
../dist/control-ui/assets/workboard-card-CLurPtLv.js                             3.09 kB │ gzip:   1.14 kB │ map:     5.96 kB
../dist/control-ui/assets/portaled-hovercard-CFskFS-l.js                         3.12 kB │ gzip:   1.11 kB │ map:     9.07 kB
../dist/control-ui/assets/r-DCEXht4A.js                                          3.12 kB │ gzip:   1.45 kB │ map:     9.99 kB
../dist/control-ui/assets/gateway-page-controller-DdV6c2d9.js                    3.15 kB │ gzip:   1.03 kB │ map:    10.03 kB
../dist/control-ui/assets/stex-_geSQI7Q.js                                       3.22 kB │ gzip:   1.26 kB │ map:    11.29 kB
../dist/control-ui/assets/lua-BgmTmyqG.js                                        3.24 kB │ gzip:   1.50 kB │ map:     7.76 kB
../dist/control-ui/assets/browser-annotation-XJ3wnr_y.js                         3.24 kB │ gzip:   1.56 kB │ map:    14.61 kB
../dist/control-ui/assets/approvals-C0vEIitd.js                                  3.24 kB │ gzip:   1.42 kB │ map:    18.69 kB
../dist/control-ui/assets/cypher-7B-pzmVj.js                                     3.31 kB │ gzip:   1.59 kB │ map:     8.52 kB
../dist/control-ui/assets/tiki-CFRPp0lZ.js                                       3.33 kB │ gzip:   1.35 kB │ map:    12.42 kB
../dist/control-ui/assets/control-ui-shared-DAR3f-6f.js                          3.36 kB │ gzip:   1.61 kB │ map:    15.34 kB
../dist/control-ui/assets/dashboards-page-DE9i16mO.js                            3.42 kB │ gzip:   1.43 kB │ map:     8.16 kB
../dist/control-ui/assets/vhdl-BZddcJrO.js                                       3.42 kB │ gzip:   1.59 kB │ map:     9.62 kB
../dist/control-ui/assets/sparql-DyxwoOhd.js                                     3.44 kB │ gzip:   1.68 kB │ map:     9.50 kB
../dist/control-ui/assets/update-confirmation.runtime-CWiGl6Rl.js                3.50 kB │ gzip:   1.40 kB │ map:    11.06 kB
../dist/control-ui/assets/dist-nzjtGiB0.js                                       3.51 kB │ gzip:   1.82 kB │ map:     6.97 kB
../dist/control-ui/assets/catalog-target-DShIgY-j.js                             3.53 kB │ gzip:   1.43 kB │ map:    11.35 kB
../dist/control-ui/assets/grouping-vrddqNhU.js                                   3.54 kB │ gzip:   1.49 kB │ map:    17.47 kB
../dist/control-ui/assets/session-progress-cards-L_5Uut1a.js                     3.58 kB │ gzip:   1.62 kB │ map:    14.98 kB
../dist/control-ui/assets/mscgen-B32__qDo.js                                     3.61 kB │ gzip:   1.07 kB │ map:     9.69 kB
../dist/control-ui/assets/exec-approval-cqy1mQUt.js                              3.63 kB │ gzip:   1.55 kB │ map:    10.28 kB
../dist/control-ui/assets/data-DvVQYzZb.js                                       3.71 kB │ gzip:   1.46 kB │ map:    13.90 kB
../dist/control-ui/assets/app-sidebar-workboard.runtime-CcFNQ062.js              3.73 kB │ gzip:   1.49 kB │ map:    10.48 kB
../dist/control-ui/assets/d-CHTIqqSE.js                                          3.79 kB │ gzip:   1.78 kB │ map:    10.87 kB
../dist/control-ui/assets/vb-r_8gcpmz.js                                         3.79 kB │ gzip:   1.93 kB │ map:    11.63 kB
../dist/control-ui/assets/q-DgUvnPlH.js                                          3.79 kB │ gzip:   1.77 kB │ map:     9.81 kB
../dist/control-ui/assets/markdown-code-blocks-B8YJL2A_.js                       3.87 kB │ gzip:   1.87 kB │ map:    12.82 kB
../dist/control-ui/assets/swift-Bj43ctJA.js                           
… output truncated …

Assertions:

  • PASS expect_output: built

How this fits together

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

Before merge

  • Resolve merge risk (P1) - The exact current-main source comparison could not complete because this partial clone required unavailable GitHub DNS.
  • Resolve merge risk (P1) - Several exact-head checks are still in progress; merge should wait for their successful completion.
Agent review details

Security

None.

PR surface

Source +416, Tests +553. Total +969 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 8 452 36 +416
Tests 4 555 2 +553
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 1007 38 +969

Review metrics

Metric Value Why it matters
Production versus test delta production +452/-36; tests +555/-2 The production growth implements a visible session-information surface, while focused unit, Gateway, and Chromium coverage protects its rendering and hovercard ownership boundaries.

Stored data model

Persistent data-model change detected: serialized state: ui/src/components/session-hovercard.test.ts, serialized state: ui/src/components/session-hovercard.ts, serialized state: ui/src/components/session-owner-chip.ts, serialized state: ui/src/components/session-progress-hovercard-registration.ts, serialized state: ui/src/components/session-progress-hovercard.runtime.ts, serialized state: ui/src/e2e/session-progress-hovercard.e2e.test.ts, and 6 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a supplementary Control UI ergonomics feature rather than a critical workflow repair.
  • 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: The PR is maintainer-authored; its body includes after-fix screenshot links and focused Chromium E2E claims, though the review host could not retrieve attachments because GitHub DNS was unavailable.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the merged session navigation and pull-request snapshot work, then the active hovercard feature and its two focused follow-ups. (role: feature-history owner and recent area contributor; confidence: high; commits: 662abec75412, 7bae24760b09, c5a84a61e0ba; files: ui/src/components/session-progress-hovercard.runtime.ts, ui/src/components/app-sidebar-session-navigation.ts, src/gateway/control-ui-session-prs.ts)

Rank-up moves

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

  • Wait for the remaining exact-head checks to finish successfully 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-18T07:03:12.669Z sha addbc86e47ad153c4c9004c479ac2ce032ce0db4 :: found issues before merge. :: [P1] Restrict the always-open hovercard to sidebar rows
  • reviewed 2026-08-18T08:25:43.642Z sha 42d6f3e :: needs maintainer review before merge. :: none

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.
@steipete
steipete force-pushed the steipete/sitebar-progress-card-ee9c94 branch from addbc86 to 42d6f3e Compare August 18, 2026 08:18
@steipete

Copy link
Copy Markdown
Contributor Author

Addressed both ClawSweeper rank-up moves on 42d6f3e20991897b6603a4723b182aea5179251e:

  • Scoped both the lazy-registration and runtime trigger lookup to .sidebar-recent-session[data-session-key], so Markdown session links remain exclusively owned by SessionLinkHovercardProvider.
  • Added a focused Chromium regression that focuses a real Markdown session link, verifies the dedicated preview dialog retains aria-controls, proves no linked-session progress request occurs over the activation window, and confirms no sidebar hovercard mounts.

Regression proof: with the pre-fix broad [data-session-key] predicate restored temporarily, the new case failed because aria-controls was stolen by openclaw-session-progress-hovercard-1; with the sidebar-only predicate, the case passes. The full focused file passes 7/7, pnpm check:changed is green, and fresh autoreview is clean. The branch was also rebased cleanly onto current origin/main before this push.

@clawsweeper clawsweeper Bot added 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. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
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.
@steipete

Copy link
Copy Markdown
Contributor Author

Fixed the related build-artifacts failure on c5a84a61e0baf2d51521281231004c76b02fd2c7.

The first review fix pushed startup JavaScript to 334.2 KiB gzip against the 334.0 KiB limit because app-sidebar synchronously imported a new row registry. The hovercard runtime already has the hovered DOM row inside the authoritative sidebar, whose existing findSidebarSessionByKey() method owns the same projection. The follow-up reuses that owner seam and deletes the registry, its publish/unpublish lifecycle, and its implementation-only tests.

Proof on the final patch:

  • pnpm ui:build: green at 333.5 KiB startup JS gzip; 400 total JS requests and 878 sidecars (down from the failing 401/880 build).
  • Focused Gateway/renderer tests: 40/40 green.
  • Focused Chromium hovercard suite: 7/7 green.
  • pnpm check:changed: green, including full core lint across 17,464 files.
  • Fresh autoreview: clean.

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.

@steipete

Copy link
Copy Markdown
Contributor Author

Final ClawSweeper rank-up move handled: exact-head CI run 32117643482 completed successfully on c5a84a61e0baf2d51521281231004c76b02fd2c7. The native review artifacts validate with READY FOR /prepare-pr, and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 125678 passed without changing the PR head.

@steipete
steipete merged commit c5d4a82 into main Aug 18, 2026
229 checks passed
@steipete
steipete deleted the steipete/sitebar-progress-card-ee9c94 branch August 18, 2026 08:57
@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): 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.
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 gateway Gateway runtime maintainer Maintainer-authored PR 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