Skip to content

fix(settings): wire up version dialog button in ServerHealthStatus - #253

Merged
chriswritescode-dev merged 4 commits into
mainfrom
fix/version-dialog-settings
Jun 5, 2026
Merged

fix(settings): wire up version dialog button in ServerHealthStatus#253
chriswritescode-dev merged 4 commits into
mainfrom
fix/version-dialog-settings

Conversation

@chriswritescode-dev

Copy link
Copy Markdown
Owner

The "Versions" button in the ServerHealthStatus component (visible inside the Settings dialog) was not wired up — the onOpenVersionDialog prop was never passed from SettingsDialog, so clicking the button did nothing.

The actual VersionSelectDialog component existed inside OpenCodeConfigManager but its opener button was hidden because the component is rendered with hideHealthStatus={true} in SettingsDialog.

Fix: Lift isVersionDialogOpen state up to SettingsDialog, pass onOpenVersionDialog to ServerHealthStatus, and render VersionSelectDialog directly in SettingsDialog. This makes the visible "Versions" button functional again.

Files

  • frontend/src/components/settings/SettingsDialog.tsx

…log render

Remove the createPortal + useRef guarded-close pattern for the version
dialog (introduced to work around Radix nesting issues). Instead render
VersionSelectDialog directly inside the Dialog and prevent outside
interactions via onInteractOutside/onFocusOutside/onPointerDownOutside
preventDefault. Delete the obsolete VersionSelectContent component.
@chriswritescode-dev
chriswritescode-dev merged commit ce4fd6e into main Jun 5, 2026
4 checks passed
@chriswritescode-dev
chriswritescode-dev deleted the fix/version-dialog-settings branch June 5, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant