LocalAI/core/http/react-ui
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
..
e2e feat(ui): Interactive model config editor with autocomplete (#9149) 2026-04-07 14:42:23 +02:00
src fix(ui): rename model config files on save to prevent duplicates (#9388) 2026-04-17 08:12:48 +02:00
bun.lock feat(ui): Interactive model config editor with autocomplete (#9149) 2026-04-07 14:42:23 +02:00
eslint.config.js feat(ui): move to React for frontend (#8772) 2026-03-05 21:47:12 +01:00
index.html chore: css cleanups 2026-03-31 16:37:38 +02:00
package-lock.json chore(deps): bump the npm_and_yarn group across 1 directory with 6 updates (#9373) 2026-04-16 08:23:03 +02:00
package.json chore(deps): bump the npm_and_yarn group across 1 directory with 6 updates (#9373) 2026-04-16 08:23:03 +02:00
playwright.config.js feat(ui, gallery): Show model backends and add searchable model/backend selector (#9060) 2026-03-18 21:14:41 +01:00
vite.config.js fix(ui): fix /app redirect 2026-03-05 21:43:46 +00:00