Description
Problem
Currently, the AI settings page correctly disables all settings when no connector is configured. This prevents users from updating settings without an active connector, which is the expected behavior.
However, there is an issue with the state handling after a connector is removed.
Step-by-step reproduction instructions
- Open the AI settings page without configuring any connector.
- Verify that all settings are disabled.
- Configure a connector with valid credentials.
- Update any AI settings successfully.
- Remove the connector credentials/configuration.
- Revisit the AI settings page.
Current Behavior
The settings remain editable even after the connector has been removed.
Expected Behavior
When no connector is configured — including after removing connector credentials — all AI settings should return to the disabled state, preventing users from updating settings until a valid connector is configured again.
Suggested Fix
Revalidate the connector setup status when the AI settings page is loaded (or when connector credentials are removed) and ensure the disabled state is applied whenever no active connector is available.
Environment info
No response
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.
Description
Problem
Currently, the AI settings page correctly disables all settings when no connector is configured. This prevents users from updating settings without an active connector, which is the expected behavior.
However, there is an issue with the state handling after a connector is removed.
Step-by-step reproduction instructions
Current Behavior
The settings remain editable even after the connector has been removed.
Expected Behavior
When no connector is configured — including after removing connector credentials — all AI settings should return to the disabled state, preventing users from updating settings until a valid connector is configured again.
Suggested Fix
Revalidate the connector setup status when the AI settings page is loaded (or when connector credentials are removed) and ensure the disabled state is applied whenever no active connector is available.
Environment info
No response
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.