mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
The model editor polled a queued import forever: every status error was swallowed and retried, and nothing stopped the loop when the editor closed. A job the server had already dropped left the editor stuck on "saving". Move the job-status reading into a shared helper used by the import page and the editor. It classifies cancelled, failed (error field or an "error:" message) and finished jobs once, gives up after 10 consecutive status failures or 2 hours of waiting, and stops on unmount. The editor now shows the failure instead of looping. Assisted-by: Claude:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>