diff --git a/network-poc/static/index.html b/network-poc/static/index.html index cfeb178..40bef5c 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -1773,9 +1773,11 @@ const statusDiv = document.createElement('div'); statusDiv.className = 'terminal-line'; statusDiv.id = 'status-' + taskId; - statusDiv.innerHTML = ` ${model} käsittelee...`; + statusDiv.innerHTML = ` ${model} käsittelee... (selain voi hidastua)`; termPanel.appendChild(statusDiv); termPanel.scrollTop = termPanel.scrollHeight; + // Yield jotta status-rivi ehditään piirtää ennen mahdollista blokkia + await new Promise(r => setTimeout(r, 50)); try { const agent = Object.values(agentPrompts).find(a => a.model === model);