Skip to content

feat: add bulk reidentify action for models (#8951)#8952

Open
Pfannkuchensack wants to merge 6 commits intoinvoke-ai:mainfrom
Pfannkuchensack:feat/bulk_reidentify
Open

feat: add bulk reidentify action for models (#8951)#8952
Pfannkuchensack wants to merge 6 commits intoinvoke-ai:mainfrom
Pfannkuchensack:feat/bulk_reidentify

Conversation

@Pfannkuchensack
Copy link
Copy Markdown
Collaborator

Summary

Add a "Reidentify Models" bulk action to the model manager, allowing users to re-probe multiple models at once instead of one by one.

  • Backend: POST /api/v2/models/i/bulk_reidentify endpoint with partial failure handling (returns succeeded/failed lists)
  • Frontend: bulk reidentify mutation, confirmation modal with warning about custom settings reset, toast notifications for all outcomes
  • i18n: new translation keys for bulk reidentify UI strings

Related Issues / Discussions

Closes #8951

QA Instructions

  1. Open the Model Manager
  2. Select multiple models via checkboxes
  3. Click "Actions" dropdown → "Reidentify Models"
  4. Confirm in the modal dialog
  5. Verify toast notification shows correct counts (succeeded/failed)
  6. Verify models are updated in the list after reidentification

Merge Plan

No special considerations needed.

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)

Add a "Reidentify Models" bulk action to the model manager, allowing
users to re-probe multiple models at once instead of one by one.

- Backend: POST /api/v2/models/i/bulk_reidentify endpoint with partial
  failure handling (returns succeeded/failed lists)
- Frontend: bulk reidentify mutation, confirmation modal with warning
  about custom settings reset, toast notifications for all outcomes
- i18n: new translation keys for bulk reidentify UI strings
@github-actions github-actions bot added api python PRs that change python files frontend PRs that change frontend files labels Mar 8, 2026
@lstein lstein self-assigned this Mar 24, 2026
@lstein lstein added the 6.14.x label Mar 24, 2026
@lstein lstein moved this to 6.14.x Theme: LIBRARY UPDATES in Invoke - Community Roadmap Mar 24, 2026
@lstein lstein moved this from 6.14.x Theme: LIBRARY UPDATES to 6.13.x Theme: MODELS in Invoke - Community Roadmap Mar 24, 2026
@lstein lstein added v6.13.x and removed 6.14.x labels Mar 24, 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.

I ran into unexpeted behavior with the bulk reidentification function. There are a number of ControlNet models, including the starter QRCode Monster (SDXL) model, which successfully reidentify when they are individually selected and the "Reidentify" button is pushed, but when they are checked and the bulk Reidentify menu item is selected the reidentification fails with 'ControlNet_Diffusers_SDXL_Config' object has no attribute 'trigger_phrases'

Please see the screenshot below. The log shows a couple of unsuccessful bulk reidentification attempts, followed by an apparently successful individual reidentification. Any idea of what causes this behavior?

Image

The bulk reidentify endpoint was directly assigning trigger_phrases
without checking if the config type supports it, causing an
AttributeError for ControlNet models. Added the same hasattr guard
used by the individual reidentify endpoint. Also restored the
missing path preservation that the individual endpoint has.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api frontend PRs that change frontend files python PRs that change python files v6.13.x

Projects

Status: 6.13.x Theme: MODELS

Development

Successfully merging this pull request may close these issues.

[enhancement]: (Bulk action) Re-identify model

2 participants