Skip to content

fix(ui): keep a session row highlighted while its context menu is open - #194468

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/session-context-menu-hover
Nov 7, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/session-context-menu-hover

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Problem

Fixes: when you right-click a session in the Control UI sidebar, the row loses its highlight as soon as the pointer moves onto the menu, so nothing shows which session the menu acts on.

User Impact

User impact: the session row keeps its hover highlight while its context menu is open, so it's clear which session Pin, Rename, Archive and the other actions apply to.

Why This Change Was Made

Session rows and catalog rows already track whether their menu is open (for aria-expanded). They now also set a sidebar-recent-session--menu-open class. In the stylesheet, that class gets the same fill as :hover in each rule where a row has a hover style: normal rows, pinned rows, active rows and colored active rows. Each new selector has the same specificity as its :hover counterpart, so selected and active fills still take precedence in the same order. Hover-only action buttons and badge swaps are unchanged; only the row background is kept.

Evidence

  • New sidebar test keeps the context-menu row highlighted until its menu closes: it fails on base (expected false to be true) and passes with the fix. It opens the menu with contextmenu, checks the row is marked, closes the menu with Escape and checks the mark is gone.
  • pnpm lint:ui:styles and oxfmt --check pass on the touched files.
  • Mock Control UI (pnpm dev:ui:mock, synthetic data) driven with Playwright: I right-clicked "Mobile layout smoke test" and moved the pointer onto "Rename…".
Before After
Before: the right-clicked row has no fill while the menu is open After: the right-clicked row keeps its hover fill while the menu is open

Opening a session row's context menu moves the pointer onto the menu, so the
row lost its hover fill and the menu's target was no longer identifiable.
Mark the row while its menu is open and give that state the hover fill.

Co-authored-by: vyctorbrzezowski <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Keeps sidebar session rows highlighted while their context menus are open.

Example: Right-click “Mobile layout smoke test” and move the pointer onto “Rename…”.

  • Before: The session row loses its highlight.
  • After: The session row retains its hover fill.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Clear visual evidence and a small, appropriate implementation, with one concrete selection-precedence defect to repair.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the actual Control UI browser renderer using synthetic mock data: right-clicking “Mobile layout smoke test” and hovering Rename retains the row fill after the fix.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Moving onto a session context menu removes the visual indication of which row its actions target.
Reason: The maintainer-authored direction addresses demonstrated confusion using existing presentation state without adding settings, persistence, or another owner.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this PR open: the visual fix is useful and demonstrated, but one CSS precedence bug removes the active row’s multi-selection fill while its menu is open.

Priority: P2
Reviewed head: 2883c622be8b7f3d168ed0dd2dc58a742432791f

Before merge

  • Preserve multi-selection fill while the active row’s menu is open (P2) - Multi-select the currently open conversation and another unpinned session, right-click the active row, then move onto the menu. openSessionMenu preserves that selection, but this new selector has specificity 0,3,0 and overrides the later selected-row rule at 0,2,0. The selected:hover override stops matching after the pointer leaves, so the active row loses its accent selection fill even though batch actions still include it. Add a matching selected/menu-open override and extend the existing computed-paint regression to cover this state.
  • Explain or restore the original intent of Row hover, active, and multi-selection appearance - fix(ui): distinguish hover and selection surfaces #183319: Distinguish hover and selected surfaces while preserving the appearance of multi-selected rows.

Findings

  • [P2] Preserve multi-selection fill while the active row’s menu is open — ui/src/styles/layout.css:2791-2792

Provenance

Tests

  • Missing end-to-end proof: The supplied browser scenario does not cover moving onto the menu of an active, multi-selected, unpinned row.
Agent review details

How this fits together

Control UI sidebar renderers consume existing session-menu state and expose CSS classes that determine row appearance.

flowchart LR
  A[Session row interaction] --> B[Existing sidebar menu owner]
  B --> C[Reactive menu-open state]
  C --> D[Session and catalog renderers]
  D --> E[Row CSS classes]
  E --> F[Visible row highlight]
Loading

Technical review

Best possible solution:

Keep the existing menu-state bindings and add an equally specific selected/menu-open override so multi-selection retains its established fill.

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

The supplied before screenshot demonstrates the reported loss of highlight, and current-main source exposes the same hover-only styling; no target code was executed during review.

Is this the best way to solve the issue?

Reusing existing menu-open state is the smallest complete approach, provided the CSS preserves multi-selection precedence.

Full review comments:

  • [P2] Preserve multi-selection fill while the active row’s menu is open — ui/src/styles/layout.css:2791-2792
    Multi-select the currently open conversation and another unpinned session, right-click the active row, then move onto the menu. openSessionMenu preserves that selection, but this new selector has specificity 0,3,0 and overrides the later selected-row rule at 0,2,0. The selected:hover override stops matching after the pointer leaves, so the active row loses its accent selection fill even though batch actions still include it. Add a matching selected/menu-open override and extend the existing computed-paint regression to cover this state.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a1386859ba45.

Provenance checked

  • Colored active rows keeps the original intent (a1d62cf: Keep an open tagged row tinted more strongly while retaining independent selection styling.)
  • Existing row menu ownership keeps the original intent (0084028: Converted catalog sessions use native controls while source-only catalog sessions retain their own menu owner.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/styles/session-row-tint.node.test.ts
  • pnpm test ui/src/components/app-sidebar.test.ts
  • pnpm lint:ui:styles
  • pnpm exec oxfmt --check ui/src/styles/layout.css ui/src/styles/session-row-tint.node.test.ts

What I checked:

  • Pinned introduction: The introduced diff adds two bindings to existing menu-open state, extends existing hover selectors, and adds one menu-lifecycle test. (ui/src/components/app-sidebar-session-row-render.tsx:215, 2883c622be8b)
  • Reachable selection regression: openSessionMenu preserves selection when its target is selected. The new active/menu-open selector has specificity 0,3,0; after the pointer leaves an unpinned row, only the 0,2,0 selected selector matches, so the active hover fill wins over multi-selection. (ui/src/styles/layout.css:2791, 2883c622be8b)
  • Inspected visual proof: Both downloaded screenshots were inspected directly: the synthetic browser scenario shows the target row without a fill before and with a fill after, while Rename is highlighted in the menu. (2883c622be8b)
  • Existing selection contract: fix(ui): distinguish hover and selection surfaces #183319 explicitly preserves multi-selection appearance during hover; current CSS and the browser tint suite retain that contract. (ui/src/styles/session-row-tint.node.test.ts:48, ce732b1b97c0)
  • Current main and workflow state: Fetched main lacks the menu-open class. GitHub reports this maintainer-authored PR as draft and mergeable, with no failing checks; discussion contains only review-status comments. (ui/src/components/app-sidebar-session-row-render.tsx:138, a1386859ba45)
  • Policy and inspection limits: Applied root and UI AGENTS guidance and simplification steps 1–3; no maintainer-notes directory exists. The installed Solid cheatsheet is absent, and some older history objects could not be fetched; current source and relevant feature history remain sufficient for the finding. The checkout remained clean. (ui/AGENTS.md:5, 2883c622be8b)

PR surface

Source +11, Tests +13. Total +24 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 16 5 +11
Tests 1 13 0 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 29 5 +24

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: This is a useful sidebar clarity fix with a localized visual regression in multi-selection.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a useful sidebar clarity fix with a localized visual regression in multi-selection.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 7, 2026, 12:04 AM ET / 05:04 UTC.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 7, 2026 05:08
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 7, 2026 05:10
@roboclaw-bot
roboclaw-bot merged commit f231ad6 into main Nov 7, 2026
160 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/session-context-menu-hover branch November 7, 2026 05:22
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

steipete added a commit that referenced this pull request Nov 7, 2026
)

* fix(ci): clear inherited test budget and unused export failures

Reconcile outstanding test-line debt from #194468, #194417, and #194464 with exact per-PR allocations. Shrink the scalar by the 37 test lines removed here so the effective ceiling equals 6559825.

Remove the renderer test-only export introduced by #191935 and the digest helper orphaned by #194456. Route the ingress fixture through the production HTTP owner and retain install/persistence and worker loading proof.

* test(gateway): specify the ingress fixture base path

Supply the required empty controlUiBasePath to the production startup HTTP handler. The UI E2E typecheck passes; runtime behavior and test-line accounting are unchanged.

* test(gateway): close failed ingress responses safely
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 8, 2026
Opening a session row's context menu moves the pointer onto the menu, so the
row lost its hover fill and the menu's target was no longer identifiable.
Mark the row while its menu is open and give that state the hover fill.

Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 8, 2026
…claw#194509)

* fix(ci): clear inherited test budget and unused export failures

Reconcile outstanding test-line debt from openclaw#194468, openclaw#194417, and openclaw#194464 with exact per-PR allocations. Shrink the scalar by the 37 test lines removed here so the effective ceiling equals 6559825.

Remove the renderer test-only export introduced by openclaw#191935 and the digest helper orphaned by openclaw#194456. Route the ingress fixture through the production HTTP owner and retain install/persistence and worker loading proof.

* test(gateway): specify the ingress fixture base path

Supply the required empty controlUiBasePath to the production startup HTTP handler. The UI E2E typecheck passes; runtime behavior and test-line accounting are unchanged.

* test(gateway): close failed ingress responses safely
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant