Skip to content

Conversation

@Pfannkuchensack
Copy link
Contributor

Summary

Adds ability to update the file path for external models in the Model Manager.

What:

  • New "Update Path" button in the model details view
  • Modal dialog to enter a new path for the model
  • Button is only shown for external models (models with absolute paths like D:/Models/model.safetensors)
  • Invoke-controlled models (relative paths like uuid/model.safetensors) are excluded

Why:
Users who manage their model files externally may move them to different locations on disk. This feature allows updating the path in InvokeAI's database without having to remove and re-add the model.

How:

  • Added isExternalModel() helper that checks if a path is absolute (Unix /... or Windows X:/...)
  • ModelUpdatePathButton component with modal for path input
  • Uses existing useUpdateModelMutation API

Related Issues / Discussions

QA Instructions

  1. Add an external model (with absolute path) via "Add Model" → "Path"
  2. Open the model in Model Manager
  3. Verify "Update Path" button is visible
  4. Click button, enter new path, save
  5. Verify path is updated

Negative test:

  1. Install a model via HuggingFace (Invoke-controlled)
  2. Open the model in Model Manager
  3. Verify "Update Path" button is NOT visible

Merge Plan

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 ability to update file paths for externally managed models (models with
absolute paths). Invoke-controlled models (with relative paths in the models
directory) are excluded from this feature to prevent breaking internal
model management.

- Add ModelUpdatePathButton component with modal dialog
- Only show button for external models (absolute path check)
- Add translations for path update UI elements
@github-actions github-actions bot added the frontend PRs that change frontend files label Dec 8, 2025
@Pfannkuchensack
Copy link
Contributor Author

image Preview

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant