Fixed configuration-managed settings remaining active after their configuration plugin was removed - #892
Open
peerschuett wants to merge 1 commit into
Open
Conversation
…figuration plugin was removed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As an administrator, I want settings managed by a configuration plugin to be reverted when that plugin is removed, so users are not left with restrictions they can no longer change.
Previously, only the configured value was persisted, while information about which plugin owned it was lost after restarting AI Studio. If the plugin was removed before the next startup, settings such as hidden assistants or disabling provider creation could remain active indefinitely—with no UI option for the user to restore them.
This PR persists configuration ownership and repairs legacy config-only settings that may already be orphaned (see code in app/MindWork AI Studio/Tools/PluginSystem/PluginFactory.Loading.cs )
All other settings can be repaired by the user themselves, because the users can change the settings.
This repair is only necessary once after this code change was applied.