Repository navigation
fix(ui): keep a session row highlighted while its context menu is open - #194468
Conversation
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]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesKeeps sidebar session rows highlighted while their context menus are open. Example: Right-click “Mobile layout smoke test” and move the pointer onto “Rename…”.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherControl 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a1386859ba45. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +11, Tests +13. Total +24 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 7, 2026, 12:04 AM ET / 05:04 UTC. |
|
Merged via squash auto-merge.
|
) * 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
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]>
…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
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 asidebar-recent-session--menu-openclass. In the stylesheet, that class gets the same fill as:hoverin 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:hovercounterpart, 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
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 withcontextmenu, checks the row is marked, closes the menu with Escape and checks the mark is gone.pnpm lint:ui:stylesandoxfmt --checkpass on the touched files.pnpm dev:ui:mock, synthetic data) driven with Playwright: I right-clicked "Mobile layout smoke test" and moved the pointer onto "Rename…".