Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Dec 12, 2025

Summary

Fixes #8344

Fixes the checkpoint restore button not displaying on hover on Rocky Linux and some Windows configurations.

Problem

PR #7985 changed the checkpoint menu to be hidden by default and only visible on hover using Tailwind's group-hover:block CSS class. However, this CSS-based hover approach doesn't work reliably on all platforms, creating a chicken-and-egg problem where users can never see the checkpoint buttons to click them.

Solution

Replaced CSS-based hover (group-hover:block) with JavaScript-based hover using onMouseEnter/onMouseLeave handlers with useState. This approach:

  • Follows the same pattern used by MermaidButton.tsx, ImageViewer.tsx, and Markdown.tsx
  • Gives JavaScript full control over visibility
  • Works regardless of platform CSS quirks

Changes

  • Added isHovering state and mouse event handlers to CheckpointSaved.tsx
  • Updated visibility logic to include hover state: menuVisible = isHovering || isPopoverOpen || isClosing
  • Removed CSS-based group-hover:block class dependency
  • Updated tests to verify the new hover behavior

Testing

  • ✅ All 4636 tests pass
  • ✅ Linting passes
  • ✅ Type checking passes

Fixes #8344

Replace CSS group-hover with onMouseEnter/onMouseLeave handlers to fix
checkpoint restore button not displaying on Rocky Linux and some Windows
configurations where CSS :hover doesn't trigger reliably.

Fixes #8344
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Dec 12, 2025
@roomote
Copy link
Contributor

roomote bot commented Dec 12, 2025

Oroocle Clock   See task on Roo Cloud

Review completed. No issues were found with the current changes; the PR looks ready to merge.

  • Review checkpoint hover behavior implementation
  • Verify tests cover hover and popover interactions

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 12, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 12, 2025
@cte cte merged commit a3b258a into main Dec 12, 2025
24 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Dec 12, 2025
@cte cte deleted the fix/checkpoint-menu-hover-8344 branch December 12, 2025 22:06
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] checkpoint restore button cannot display

4 participants