Skip to content

fix(ui): convert reference image configs when switching main model base#8811

Merged
lstein merged 2 commits intoinvoke-ai:mainfrom
Pfannkuchensack:fix/ref-image-config-conversion
Jan 31, 2026
Merged

fix(ui): convert reference image configs when switching main model base#8811
lstein merged 2 commits intoinvoke-ai:mainfrom
Pfannkuchensack:fix/ref-image-config-conversion

Conversation

@Pfannkuchensack
Copy link
Copy Markdown
Collaborator

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

  1. Select a FLUX.2 Klein model as main model
  2. Add one or more reference images (these will be model-less flux2_reference_image configs)
  3. Switch the main model to Flux.1 (or another model that uses IP adapters)
  4. Verify that the reference images now show the model selector, weight slider, and other IP adapter controls without needing to delete and re-add them
  5. Switch back to FLUX.2 Klein and verify the model selector disappears (configs converted back to flux2_reference_image)

Merge Plan

No special merge considerations.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

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.
@github-actions github-actions bot added the frontend PRs that change frontend files label Jan 30, 2026
@lstein lstein added the v6.11.0 Intended for release 6.11.0 label Jan 30, 2026
@lstein lstein moved this from 6.12.x to 6.11.x in Invoke - Community Roadmap Jan 30, 2026
@lstein lstein self-assigned this Jan 31, 2026
Copy link
Copy Markdown
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@lstein lstein enabled auto-merge (squash) January 31, 2026 22:01
@lstein lstein merged commit 9ee7baa into invoke-ai:main Jan 31, 2026
13 checks passed
@Pfannkuchensack Pfannkuchensack deleted the fix/ref-image-config-conversion branch January 31, 2026 22:57
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files v6.11.0 Intended for release 6.11.0

Projects

Status: 6.11.x

Development

Successfully merging this pull request may close these issues.

2 participants