Skip to content

feat(ui): add session hovercards - #125068

Merged
vyctorbrzezowski merged 13 commits into
mainfrom
sidebar/session-hovercard
Aug 23, 2026
Merged

vyctorbrzezowski merged 13 commits into
mainfrom
sidebar/session-hovercard

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The baseline session hovercard exposes too little context to distinguish similar sessions or understand active work without navigating away. Catalog-backed sessions also need the same session, repository, pull-request, participant, and progress facts as regular sidebar rows.

This replaces the earlier stacked exploration in #123594 with one self-contained Control UI change against main.

Why This Change Was Made

  • Resolves regular, lineage, and catalog rows through one sidebar lookup before rendering.
  • Keeps authoritative session, participant, workspace/project, branch, pull-request, latest-turn, and progress data in the owning UI boundaries.
  • Uses one portaled hovercard interaction path for pointer and keyboard access, menu suppression, focus recovery, viewport collision, and reduced motion.
  • Keeps mock data inside the existing Control UI test harness; no fixture or demo behavior ships in production.
  • Removes dead hover suppression and presentation residue found during closeout, and fixes the progress-marker exhaustive return required by lint.

User Impact

Hovering or focusing a session now shows a bounded card with its title and age, creator/participants, workspace or repository branch, up to four pull requests with state/check/diff facts, and current progress or latest-turn context. Catalog sessions use the same presentation.

Opening a session menu closes and suppresses the card, keyboard focus remains recoverable, and the card stays viewport-contained. Touch navigation continues to use the mobile sidebar drawer without introducing hover-only behavior.

Evidence

  • Exact head: baf5e085ff429d48dae818278bebf8f2b6a32a5c
  • Current-main integration baseline: 3e0ee38c06e628b8468b6999fe3f655398dcd4db
  • Focused units: 4 files, 50 tests passed.
  • Focused Chromium E2E: 1 file, 8 tests passed, including rich rendering, refresh, collision, pointer timing, menu suppression, catalog rows, focus recovery, and latest-turn fallback.
  • Visual matrix: 8 isolated Playwright states passed on both refs (desktop and mobile drawer × items, empty, approval, update); rich hovercard before/after and live progress refresh were also captured and inspected.
  • node scripts/check-changed.mjs: passed (structural guards, formatting, dead exports, i18n, test/UI typechecks, lint, and styles).
  • Closeout review: no actionable findings (confidence 0.98).
  • Current-main merge tree is clean: 889639067c7181bb6452410859bc00e3f03aa31f.
  • Current-main merged build: startup JS 345531 B gzip, below the 345561 B limit.
  • Diff classification: production +1237/-258 (net +979); tests +750/-57 (net +693); total +1987/-315 across 24 files.

Visual direction was approved for this closeout. The optional rebase was skipped to preserve the existing history as requested; focused exact-head validation and a clean merge-tree/build check against current main cover the integration risk for the lander.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 17, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 17, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 17, 2026 05:10
@openclaw-barnacle openclaw-barnacle Bot added size: L maintainer Maintainer-authored PR labels Aug 17, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 22, 2026, 11:54 PM ET / August 23, 2026, 03:54 UTC.

ClawSweeper review

What this changes

The PR enriches Control UI session hovercards with session, workspace, participant, pull-request, and progress details across regular and catalog sidebar rows.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for maintainer landing judgment. The branch adds meaningful richer context beyond current main’s basic hovercard, with no concrete correctness finding; its exact-head UI check is still in progress.

Priority: P2
Reviewed head: baf5e085ff429d48dae818278bebf8f2b6a32a5c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong direct UI evidence and focused coverage support a clean implementation review; landing still depends on maintainer sponsorship and the current exact-head check.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; its discussion nevertheless supplies direct Control UI screenshots and focused browser-run results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; its discussion nevertheless supplies direct Control UI screenshots and focused browser-run results.
Evidence reviewed 7 items Hovercard owner boundary: The provider resolves sidebar data, subscribes to progress and pull-request state, and renders the shared card from that owner boundary.
Catalog and normal-row lookup: The new lookup first projects regular or lineage rows and then enriches matching catalog rows, rather than creating separate hovercard render paths.
Progress protocol boundary: The changed renderer consumes OpenClaw’s generic ProgressCard status union, whose authoritative schema defines pending, in_progress, and completed; the PR does not depend on the Codex runtime.
Findings None None.
Security None None.

Live Verification

Command: pnpm test ui/src/e2e/session-progress-hovercard.e2e.test.ts

Result: FAIL (partial) — step 2 expect_output 8 passed: expected terminal output was not visible within 30 seconds: "8 passed"

pnpm test ui/src/e2e/session-progress-hovercard.e2e.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-125068-akICWn/target$ pnpm test ui/src/e2e/session-progress-hovercard.e2e.test.ts
$ node --import tsx scripts/test-projects.mts ui/src/e2e/session-progress-hovercard.e2e.test.ts
[test] starting test/vitest/vitest.ui-e2e.config.ts
[test] preflight test/vitest/vitest.ui-e2e.config.ts
pnpm test ui/src/e2e/session-progress-hovercard.e2e.test.ts
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.
Downloading FFmpeg (playwright ffmpeg v1011) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
|                                                                                |   0% of 2.3 MiB
|■■■■■■■■                                                                        |  10% of 2.3 MiB
|■■■■■■■■■■■■■■■■                                                                |  20% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.3 MiB
FFmpeg (playwright ffmpeg v1011) downloaded to /tmp/clawsweeper-live-proof-125068-akICWn/profile/cache/ms-playwright/ffmpeg-1011

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-125068-akICWn/target





























Assertions:

  • FAIL expect_output: 8 passed

How this fits together

Gateway session and catalog data become Control UI sidebar rows, then a shared portal presents additional context on pointer or keyboard focus. The hovercard also subscribes to progress and pull-request updates while it is open.

flowchart LR
A[Gateway sessions] --> C[Sidebar row lookup]
B[Catalog sessions] --> C
C --> D[Hovercard provider]
D --> E[Progress and pull request updates]
D --> F[Pointer and keyboard rules]
E --> G[Session context card]
F --> G
Loading

Decision needed

Question Recommendation
Should the Control UI maintainers sponsor the richer session-context hovercard and land this branch after its exact-head checks complete? Sponsor and land after checks: Accept the richer shared hovercard and merge once the exact-head required checks complete successfully.

Why: This is a substantial user-facing feature on a maintainer-labeled PR; source review finds no mechanical blocker, but design acceptance and landing remain maintainer choices.

Before merge

  • Resolve merge risk (P1) - The exact PR head still has a UI E2E check in progress, so landing should wait for the current-head check set to complete successfully.
Agent review details

Security

None.

PR surface

Source +979, Tests +693. Total +1672 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 19 1237 258 +979
Tests 5 750 57 +693
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 1987 315 +1672

Review metrics

Metric Value Why it matters
Production versus test delta production +979 net; tests +693 net This is justified feature growth across the shared sidebar interaction and its focused browser coverage, rather than a bug-fix delta.

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-progress-card.test.ts, serialized state: ui/src/components/session-progress-card.ts, serialized state: ui/src/components/session-progress-hovercard.runtime.ts, serialized state: ui/src/e2e/session-progress-hovercard.e2e.test.ts, and 11 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #125068
Summary: This PR is the active replacement for the earlier closed stacked session-information-card exploration.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Accept the richer hovercard design only with Control UI sponsorship, then land this shared sidebar implementation after the current-head checks are green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Accept the richer hovercard design only with Control UI sponsorship, then land this shared sidebar implementation after the current-head checks are green.

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

Not applicable as a bug reproduction: the PR supplies focused browser coverage and screenshots for the proposed hovercard behavior.

Is this the best way to solve the issue?

Yes, technically: the branch reuses the existing hovercard owner and routes regular, lineage, and catalog rows through one lookup; the remaining question is whether maintainers want this richer UX scope.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against af9a23066484.

Labels

Label changes:

  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P2: This is a bounded Control UI enhancement with visible operator value but no urgent regression evidence.
  • 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. Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; its discussion nevertheless supplies direct Control UI screenshots and focused browser-run results.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the merged current-main session-hovercard feature and adjacent restoration work. (role: introduced the merged baseline feature; confidence: high; commits: c5d4a82dec92, 57a65def4f4d; files: ui/src/components/session-hovercard.ts, ui/src/components/session-progress-hovercard.runtime.ts)
  • vyctorbrzezowski: Vyctor H. Brzezowski authored current-main hovercard menu and refactor commits as well as this branch. (role: recent area contributor; confidence: high; commits: 3aff572d74f1, 276ceaf19a7c; files: ui/src/components/session-progress-hovercard.runtime.ts, ui/src/e2e/session-progress-hovercard.e2e.test.ts)

Rank-up moves

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

  • Let the in-progress exact-head UI E2E check complete successfully before landing.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-20T13:51:41.010Z sha fbf5a35 :: found issues before merge. :: [P2] Suppress hovercards while any session menu is open
  • reviewed 2026-08-20T23:39:43.052Z sha 10d1c8a :: found issues before merge. :: [P2] Suppress hovercards while any session menu is open
  • reviewed 2026-08-21T00:08:00.382Z sha f9ade2b :: found issues before merge. :: [P2] Suppress hovercards while any session menu is open
  • reviewed 2026-08-21T00:23:58.159Z sha f7d8d6d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T00:56:13.230Z sha 127e3de :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T21:15:25.482Z sha 127e3de :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T21:35:15.176Z sha 127e3de :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T03:08:17.016Z sha 98ea1a8fe82c9e47ac0ed364375ddb0c6e00a2c3 :: needs maintainer review before merge. :: none

@clawsweeper

Copy link
Copy Markdown
Contributor

Visual UI proof blocked

No screenshot is attached because neither the exact head 73594609073d nor the live GitHub merge ref builds.

Focused command:

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-information-card.e2e.test.ts

Build error:

"formatSessionPullRequestSummary" is not exported by "ui/src/components/session-row-badges.ts"
ui/src/components/session-row-hover-card.ts:5

The branch must export that contract or stop importing it before honest light/dark desktop/mobile proof can be produced.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the sidebar/session-hovercard branch from 7359460 to fbf5a35 Compare August 20, 2026 13:46
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. clawsweeper-recovery-stuck and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. clawsweeper-recovery-stuck labels Aug 20, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the sidebar/session-hovercard branch from 127e3de to 98ea1a8 Compare August 23, 2026 03:02
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Visual evidence

Exact head: 98ea1a8fe82c9e47ac0ed364375ddb0c6e00a2c3

Focused validation:

  • pnpm test ui/src/components/session-progress-card.test.ts ui/src/e2e/session-progress-hovercard.e2e.test.ts
  • Unit: 1 file, 5 tests passed. UI E2E: 1 file, 8 tests passed.
  • Real /chat route with the local mock fixture, full desktop viewport. Coarse touch intentionally does not synthesize hovercards.
  • Codex keeps pending, in_progress, and completed distinct in plan_tool.rs:9-12, mapped unchanged by turn.rs:444-465.

Dark — project, branch, PR metrics, and all three plan states

Green check = completed · muted spinner = in progress · muted clock = pending.

Dark session hovercard with project, branch, PR metrics, and three plan states

Dark — no authoritative project, workspace, or PR context

The metadata rows are omitted; creator and last-message context remain.

Dark session hovercard without project, workspace, or PR metadata

Light — project, branch, PR metrics, and all three plan states

The same status hierarchy and aligned 14px glyph column remain legible on the light palette.

Light session hovercard with project, branch, PR metrics, and three plan states

Light — no authoritative project, workspace, or PR context

The same omission contract holds in light mode.

Light session hovercard without project, workspace, or PR metadata

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 23, 2026
@vyctorbrzezowski

vyctorbrzezowski commented Aug 23, 2026 •

Copy link
Copy Markdown
Member Author

Closeout proof for baf5e085ff429d48dae818278bebf8f2b6a32a5c against main at 3e0ee38c06e628b8468b6999fe3f655398dcd4db.

Before (main): desktop/mobile attention states plus the baseline hovercard.

Before main visual matrix

After (PR head): the same attention matrix plus the richer bounded hovercard and its 1/3 → 2/3 refresh.

After head visual matrix

Verified locally:

  • 4 focused unit files: 50 tests passed
  • focused Chromium hovercard E2E: 8 tests passed
  • isolated proof matrix: 8 states passed on main, then 8 passed on the PR head
  • node scripts/check-changed.mjs: passed
  • clean merge tree against current main; merged startup bundle 345531 B gzip under the 345561 B limit
  • closeout review: no actionable findings (confidence 0.98)

ClawSweeper follow-through: the UI direction is approved for this closeout. The optional rebase was intentionally skipped because this lane must preserve the existing commit history; the exact-head E2E and clean merge-tree/build proof above cover the requested current-main validation without rewriting the stack.

@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 23, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the sidebar/session-hovercard branch from baf5e08 to 0191a65 Compare August 23, 2026 04:05
@vyctorbrzezowski
vyctorbrzezowski merged commit 434fd0c into main Aug 23, 2026
145 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the sidebar/session-hovercard branch August 23, 2026 04:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 23, 2026
* feat(ui): add session hovercards

* fix(ui): polish session hovercards

* fix(ui): rearm focused session hovercards

* fix(ui): suppress hovercards across session menus

* fix(ui): preserve hovercard focus on refresh

* fix(ui): restore focus after hovercard refresh

* fix(ui): distinguish pending plan steps

* fix(ui): spin active plan steps

* fix(ui): mute active plan spinner

* fix(ui): align plan status glyphs

* chore(ui): tighten session hovercard implementation

* perf(ui): keep hovercard age formatting lazy

* test(ui): drop non-regressing hovercard marker case
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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.

2 participants