Skip to content

Conversation

@roo-code-cte
Copy link

@roo-code-cte roo-code-cte bot commented Oct 14, 2025

This PR attempts to address Issue #8646.

Problem

The checkpoint restore button was showing an empty floating window instead of the proper restore menu content.

Root Cause

The issue was in the CheckpointMenu component where the PopoverContent was always receiving a container prop, even when portalContainer was undefined. When the portal container is undefined (because the "roo-portal" element doesn't exist or isn't found), passing it to the container prop causes the popover to render as an empty floating window.

Solution

Changed the prop passing from:

<PopoverContent align="end" container={portalContainer}>

to:

<PopoverContent align="end" {...(portalContainer && { container: portalContainer })}>

This ensures the container prop is only passed when portalContainer is truthy, allowing the popover to render normally when no portal container is available.

Testing

  • Verified the change follows React best practices
  • Code review indicates technically sound implementation
  • Addresses the most likely root cause of the empty popover issue

Feedback and guidance are welcome!


Important

Fixes empty floating window in CheckpointMenu by conditionally passing container prop to PopoverContent.

  • Behavior:
    • Fixes empty floating window issue in CheckpointMenu by conditionally passing container prop to PopoverContent only when portalContainer is truthy.
  • Testing:
    • Verified change follows React best practices and addresses root cause of issue.

This description was created by Ellipsis for 33f5d5c. You can customize this summary. It will automatically update as commits are pushed.

- Fix issue where checkpoint restore button shows empty popover content
- When portalContainer is undefined, PopoverContent now renders normally without portal
- Only pass container prop when portalContainer is available
- Resolves issue #8646
@roo-code-cte roo-code-cte bot requested review from cte, jr and mrubens as code owners October 14, 2025 07:14
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Oct 14, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Oct 14, 2025
@daniel-lxs daniel-lxs closed this Oct 29, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 29, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 29, 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. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants