diff --git a/network-poc/static/index.html b/network-poc/static/index.html
index a9dd0a5..cb6648b 100644
--- a/network-poc/static/index.html
+++ b/network-poc/static/index.html
@@ -2567,10 +2567,23 @@
document.getElementById('coder-status').style.color = '#d29922';
coderWsReady = true;
+ // Proaktiivinen mallin esilataus: lähetetään tyhjä warmup-prompt
+ // joka triggeröi get_or_build_model:n ilman varsinaista generointia.
+ // Pipeline-tilakone seuraa logeja ja merkkaa vaiheet valmiiksi.
+ setTimeout(() => {
+ if (uiSocket && uiSocket.readyState === 1) {
+ uiSocket.send(JSON.stringify({
+ type: 'user_text',
+ text: '{"prompt":"warmup","max_tokens":1}',
+ task_type: 'qwen-coder'
+ }));
+ }
+ }, 500);
+
if (pendingCodePrompt) {
setTimeout(() => {
sendCodeToHub(pendingCodePrompt);
- }, 800);
+ }, 2000); // Hieman pidempi odotus jotta warmup ehtii ensin
pendingCodePrompt = null;
}
} catch(e) {