You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Developer Settings panel, when a provider and model have been previously selected and saved, removing that provider leaves an empty space where the Model field used to be - even though the Model field itself is not rendered.
Expected Behavior
The Model field and its container should be fully hidden when the saved provider no longer exists. No empty space should appear between the Provider dropdown and the Reset to default link.
Actual Behavior
The Model field's container is still rendered (taking up vertical space) because isVisible only checks !! data.provider, which is true for any non-empty saved provider ID - even if that provider no longer exists in the available providers list.
Fix
Update the isVisible callback for the model field to also verify the saved provider ID exists in the current providers array:
Description
In the Developer Settings panel, when a provider and model have been previously selected and saved, removing that provider leaves an empty space where the Model field used to be - even though the Model field itself is not rendered.
Expected Behavior
The Model field and its container should be fully hidden when the saved provider no longer exists. No empty space should appear between the Provider dropdown and the
Reset to defaultlink.Actual Behavior
The Model field's container is still rendered (taking up vertical space) because
isVisibleonly checks!! data.provider, which istruefor any non-empty saved provider ID - even if that provider no longer exists in the available providers list.Fix
Update the
isVisiblecallback for themodelfield to also verify the saved provider ID exists in the currentprovidersarray:Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2026-05-14.at.12.24.04.PM.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except the AI plugin.
Please confirm which theme type you used for testing.