LocalAI/core/http/react-ui/src
Ettore Di Giacinto 7c5d6162f7
fix(ui): rename model config files on save to prevent duplicates (#9388)
Editing a model's YAML and changing the `name:` field previously wrote
the new body to the original `<oldName>.yaml`. On reload the config
loader indexed that file under the new name while the old key
lingered in memory, producing two entries in the system UI that
shared a single underlying file — deleting either removed both.

Detect the rename in EditModelEndpoint and rename the on-disk
`<name>.yaml` and `._gallery_<name>.yaml` to match, drop the stale
in-memory key before the reload, and redirect the editor URL in the
React UI so it tracks the new name. Reject conflicts (409) and names
containing path separators (400).

Fixes #9294
2026-04-17 08:12:48 +02:00
..
components chore(ui): improve visibility of forms, color palette 2026-04-14 21:53:03 +00:00
context fix(ui): pass by staticApiKeyRequired to show login when only api key is configured (#9220) 2026-04-04 12:11:22 +02:00
contexts feat: add users and authentication support (#9061) 2026-03-19 21:40:51 +01:00
hooks feat(ui): Interactive model config editor with autocomplete (#9149) 2026-04-07 14:42:23 +02:00
pages fix(ui): rename model config files on save to prevent duplicates (#9388) 2026-04-17 08:12:48 +02:00
utils feat: backend versioning, upgrade detection and auto-upgrade (#9315) 2026-04-11 22:31:15 +02:00
App.css chore(ui): improve visibility of forms, color palette 2026-04-14 21:53:03 +00:00
App.jsx chore(ui): improve visibility of forms, color palette 2026-04-14 21:53:03 +00:00
index.css chore(ui): improve visibility of forms, color palette 2026-04-14 21:53:03 +00:00
main.jsx feat: add users and authentication support (#9061) 2026-03-19 21:40:51 +01:00
router.jsx feat(ui): Interactive model config editor with autocomplete (#9149) 2026-04-07 14:42:23 +02:00
theme.css chore(ui): improve visibility of forms, color palette 2026-04-14 21:53:03 +00:00