fix: clear modelWarming notice when job completes via SSE done event
Some checks failed
Build & Push Docker Image / test (push) Failing after 10s
Build & Push Docker Image / build-and-push (push) Has been skipped

Previously, if a job completed while the model-warming notice was shown
(e.g. model loaded mid-job), the 'Warming up model' banner persisted on
the Done screen because the SSE 'done' handler didn't clear modelWarming.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Giancarmine Salucci
2026-05-10 15:52:28 +02:00
parent 10a3669b42
commit 470dd1642f

View File

@@ -92,6 +92,7 @@
} else if (data.type === 'status') {
if (job) job = { ...job, status: data.status, progress: data.progress ?? job.progress };
} else if (data.type === 'done') {
modelWarming = null;
eventSource?.close();
loadJob();
} else if (data.type === 'error') {