Skip to content

fix(ui): restore sidebar session hovercards - #126222

Merged
steipete merged 2 commits into
mainfrom
steipete/sidebar-session-hovercard
Aug 19, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/sidebar-session-hovercard

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

PR #125733 intentionally restricted the session hovercard trigger to chat session links, leaving sidebar session rows hover-inert. That maintainer decision is now reversed: sidebar rows need the same glanceable session information, pull request state, progress, and bounded last-turn fallback already available from chat references.

Why This Change Was Made

This keeps the single unified hovercard and renderer established by #125968. A precise selector union matches only chat session links and sidebar session rows; the same matcher drives lazy bootstrap and the live provider so those paths cannot drift. Sidebar rows use horizontal placement beside the row, while inline chat links retain their vertical text-flow placement. The deleted session-link-hovercard* preview remains deleted.

User Impact

Hovering a sidebar session row now opens the unified session card with its info header, pull request chips/diff stats, and progress card. Sessions without progress show the same bounded plain-text last-turn excerpt. Chat session references keep the existing unified hovercard behavior.

Evidence

Pre-fix regression proof:

  • matcher test failed because a valid .sidebar-recent-session[data-session-key] returned no target
  • mocked browser flow failed because sidebar hover never subscribed or loaded a card

Validation:

  • pnpm tsgo:ui
  • pnpm lint:ui:styles
  • pnpm deadcode:exports
  • pnpm check:assertion-safety
  • pnpm format:docs:check
  • pnpm docs:check-mdx
  • pnpm ui:build
  • pnpm format
  • node scripts/run-vitest.mjs ui/src/components/session-progress-hovercard-target.test.ts
  • OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-hovercard.e2e.test.ts
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main

Sidebar row hover — card is horizontally beside the row and includes the session header, PR/diff chip, and progress:

Sidebar row unified hovercard

Chat-link hover — the same unified content uses vertical placement under the inline reference:

Chat-link unified hovercard

Sidebar session without progress — the bounded last-turn excerpt is plain text:

Sidebar row last-turn fallback

@clawsweeper

clawsweeper Bot commented Aug 19, 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 19, 2026 06:34
@steipete steipete self-assigned this Aug 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 19, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification is complete for exact head fc696fdec2b9cf55b5a4b775552e3642c64bf561.

Behavior proof:

  • Sidebar row hover opens the unified card horizontally beside the row with session header, PR/diff chip, and progress content.
  • Chat session-reference hover keeps the same unified card with vertical text-flow placement.
  • A sidebar session without progress shows the bounded plain-text last-turn excerpt.
  • The inspected screenshots for all three states are embedded in the PR body.

Focused/local proof:

  • pnpm tsgo:ui
  • pnpm lint:ui:styles
  • pnpm deadcode:exports
  • pnpm check:assertion-safety
  • pnpm format:docs:check
  • pnpm docs:check-mdx
  • pnpm ui:build
  • pnpm format
  • node scripts/run-vitest.mjs ui/src/components/session-progress-hovercard-target.test.ts — 4/4
  • OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-hovercard.e2e.test.ts — 3/3
  • node scripts/run-vitest.mjs test/vitest-projects-config.test.ts — 18/18
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-codex-app-server-tools.config.ts --configLoader runner extensions/codex/src/app-server/run-attempt-tools.test.ts — 3/3
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main — clean, no accepted/actionable findings

CI and native landing gates:

ClawSweeper's exact-head comment remains a review-started placeholder and contains no findings or rank-up moves. No proof gaps remain.

@steipete
steipete merged commit 57a65de into main Aug 19, 2026
259 of 262 checks passed
@steipete
steipete deleted the steipete/sidebar-session-hovercard branch August 19, 2026 07:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 19, 2026
Three PRs fixed the same orphaned test within minutes of each other -- #126222,
#126225 and #126190 -- so the full-suite ownership audit flipped from "missing" to
"duplicated" and main went red at 554dfbe.

Keeps the claim from #126225, whose entire purpose was routing this test, and drops
the two incidental ones added while landing unrelated UI work. The audit passes 18/18
and the test still runs, once, in the attempt-light shard.

Root cause is the shard layout: the support shard globs app-server/**/*.test.ts but
excludes the whole run-attempt* pattern while the attempt shards enumerate by
filename, so every new run-attempt-* file is unowned until someone hand-adds it, and
concurrent fixers then collide.
steipete added a commit that referenced this pull request Aug 19, 2026
Three PRs fixed the same orphaned test within minutes of each other -- #126222,
#126225 and #126190 -- so the full-suite ownership audit flipped from "missing" to
"duplicated" and main went red at 554dfbe.

Keeps the claim from #126225, whose entire purpose was routing this test, and drops
the two incidental ones added while landing unrelated UI work. The audit passes 18/18
and the test still runs, once, in the attempt-light shard.

Root cause is the shard layout: the support shard globs app-server/**/*.test.ts but
excludes the whole run-attempt* pattern while the attempt shards enumerate by
filename, so every new run-attempt-* file is unowned until someone hand-adds it, and
concurrent fixers then collide.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix(ui): restore sidebar session hovercards

* test(codex): include run-attempt tools in full suite
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
Three PRs fixed the same orphaned test within minutes of each other -- openclaw#126222,
openclaw#126225 and openclaw#126190 -- so the full-suite ownership audit flipped from "missing" to
"duplicated" and main went red at 0d090ac.

Keeps the claim from openclaw#126225, whose entire purpose was routing this test, and drops
the two incidental ones added while landing unrelated UI work. The audit passes 18/18
and the test still runs, once, in the attempt-light shard.

Root cause is the shard layout: the support shard globs app-server/**/*.test.ts but
excludes the whole run-attempt* pattern while the attempt shards enumerate by
filename, so every new run-attempt-* file is unowned until someone hand-adds it, and
concurrent fixers then collide.
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant