fix(ui): convert reference image configs when switching main model base#8811
Merged
lstein merged 2 commits intoinvoke-ai:mainfrom Jan 31, 2026
Merged
Conversation
When switching between FLUX.2 (model-less reference images) and other models that require IP adapter/Redux models, the reference image configs were not being converted, leaving stale config types that hid or showed the wrong UI controls.
lstein
approved these changes
Jan 31, 2026
Collaborator
lstein
left a comment
There was a problem hiding this comment.
Works as advertised.
The main issue is that the modelSelected.ts frontend code is rapidly filling up with special case code with hard-coded specific models. I think we need to generalize this code by expanding the main model configuration definition to include hints about what type of reference image handling the main model supports.
I created issue #8815 to track this suggestion.
dunkeroni
pushed a commit
to dunkeroni/InvokeAI
that referenced
this pull request
Feb 2, 2026
…se (invoke-ai#8811) When switching between FLUX.2 (model-less reference images) and other models that require IP adapter/Redux models, the reference image configs were not being converted, leaving stale config types that hid or showed the wrong UI controls. Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
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.
Summary
When switching between FLUX.2 (model-less reference images) and other models that require IP adapter/Redux models, the reference image configs were not being converted, leaving stale config types that hid or showed the wrong UI controls.
Users had to delete and re-add each reference image after switching models to get the correct UI (model selector, weights, etc.) to appear.
Related Issues / Discussions
https://discord.com/channels/1020123559063990373/1049495067846524939/1466651762210508911
QA Instructions
flux2_reference_imageconfigs)flux2_reference_image)Merge Plan
No special merge considerations.
Checklist
What's Newcopy (if doing a release after this PR)