Repository navigation
feat(ui): sidebar rows use full width; actions overlay with a hover fade - #110959
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 5:06 PM ET / 21:06 UTC. Summary PR surface: Source +37. Total +37 across 1 file. Reproducibility: not applicable. This PR proposes a visual sidebar refinement rather than reporting a currently failing behavior. The claimed result is directly observable through a Control UI sidebar run. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the overlay approach confined to non-child sidebar rows and land it after a maintainer confirms accessible before/after visual proof for resting, hovered, focused, child-toggle, and touch layouts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a visual sidebar refinement rather than reporting a currently failing behavior. The claimed result is directly observable through a Control UI sidebar run. Is this the best way to solve the issue? Yes, conditionally: keeping the behavior as CSS scoped to the existing sidebar-row structure is the narrowest solution, provided the overlay interaction states are visually confirmed before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5fe8d6a852ad. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +37. Total +37 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
Session-row titles run to the sidebar edge instead of reserving the hover action cluster's width in-flow. The trailing aside overlays the row (pointer-events off at rest so link clicks pass through) and the link content fades out beneath the surfaced controls via a mask, which stays correct over rest/hover/active/selected backgrounds. Rows with a child toggle keep it rightmost; actions land at the link edge either way. Child rows keep the in-flow aside since their runtime trail is resting content. Touch keeps actions visible, so the fade is permanent there.
bb6bbf6 to
e6429a2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e6429a2674
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .sidebar-recent-session:not(.sidebar-recent-session--child):hover > .sidebar-recent-session__link, | ||
| .sidebar-recent-session:not(.sidebar-recent-session--child):focus-within | ||
| > .sidebar-recent-session__link { | ||
| mask-image: linear-gradient(to right, black calc(100% - 80px), transparent calc(100% - 52px)); |
There was a problem hiding this comment.
Size the fade for catalog rows’ single action
When hovering or keyboard-focusing a catalog-only session, the row rendered in ui/src/components/app-sidebar-session-catalogs.ts:411 has only one 24px menu action (ui/src/styles/components.css:5146), but this mask is sized for the normal two-button cluster: it makes the final 52px fully transparent and fades another 28px. This unnecessarily hides roughly an extra button-width of the catalog title—the opposite of the commit’s full-width goal—so the mask width should follow the row/action variant rather than applying the two-action dimensions to every non-child sidebar row.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
…ade (openclaw#110959) Session-row titles run to the sidebar edge instead of reserving the hover action cluster's width in-flow. The trailing aside overlays the row (pointer-events off at rest so link clicks pass through) and the link content fades out beneath the surfaced controls via a mask, which stays correct over rest/hover/active/selected backgrounds. Rows with a child toggle keep it rightmost; actions land at the link edge either way. Child rows keep the in-flow aside since their runtime trail is resting content. Touch keeps actions visible, so the fade is permanent there.
…ade (openclaw#110959) Session-row titles run to the sidebar edge instead of reserving the hover action cluster's width in-flow. The trailing aside overlays the row (pointer-events off at rest so link clicks pass through) and the link content fades out beneath the surfaced controls via a mask, which stays correct over rest/hover/active/selected backgrounds. Rows with a child toggle keep it rightmost; actions land at the link edge either way. Child rows keep the in-flow aside since their runtime trail is resting content. Touch keeps actions visible, so the fade is permanent there.
What Problem This Solves
Sidebar session rows permanently reserve the width of the hover-only action cluster (pin + menu, ~50px), so titles truncate — "Home server migr…", "Long running session …" — while the reserved space sits empty at rest. The buttons only matter while hovering; the title matters all the time.
Why This Change Was Made
CSS-only restructure of the row's trailing aside, scoped to sidebar rows (the shared chat session picker is untouched):
pointer-events: noneat rest — clicks on the newly covered link tail pass through; the buttons re-enable their own pointer-events on hover/focus (existing rule).Leading state chrome (unread dot, run spinner) is unaffected; trailing glyphs (dashboard, badges) fade under the buttons only while the row is hovered.
User Impact
Sidebar rows show meaningfully more of every title at rest; hovering swaps the tail for the management controls with a soft fade instead of a layout jump.
Hovered row with a child toggle (actions sit left of the chevron + count, title fades beneath them):
Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts— 124 passed (CSS-only change; markup and behavior untouched).oxfmtclean; screenshots from the deterministic mock harness (scripts/control-ui-mock-dev.ts) with simulated Mac web chrome — before-shots from the merge base, after-shots from this branch, identical fixtures.