diff --git a/frontend/templates/index.html b/frontend/templates/index.html
index ede9020..d91b2f9 100644
--- a/frontend/templates/index.html
+++ b/frontend/templates/index.html
@@ -49,6 +49,7 @@
+
@@ -75,8 +76,8 @@ function setPhase(label, pct, isSpinner) {
}
function showError(msg) {
- const status = document.getElementById('session-status');
- if (status) status.innerHTML += '' + msg + '
';
+ const el = document.getElementById('session-error');
+ if (el) el.innerHTML += '' + msg + '
';
}
function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }
@@ -91,12 +92,11 @@ async function startSession(e) {
btn.disabled = true;
analysis.innerHTML = '';
polling.innerHTML = '';
- status.innerHTML = `
-
-
- `;
+ // Reset permanent elements (no innerHTML — keeps DOM references alive)
+ document.getElementById('phase-label').textContent = '';
+ var pf = document.getElementById('progress-fill');
+ pf.style.width = '0%'; pf.textContent = '0%';
+ document.getElementById('session-error').textContent = '';
status.classList.remove('hidden');
const vmid = document.getElementById('vmid').value;