diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 039f5a1..22ec19b 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -1796,7 +1796,23 @@ const tokGen = data.tokens_generated || 0; const durS = data.duration_ms ? (data.duration_ms / 1000).toFixed(1) + 's' : ''; const tokS = data.tokens_per_sec ? data.tokens_per_sec.toFixed(1) + ' tok/s' : ''; - statusDiv.innerHTML = ` ✓ ${esc(data.model || model)} ${tokGen} tok · ${durS} · ${tokS}`; + const inspectId = 'inspect-' + taskId; + + // Prompt-inspektor: tallennetaan promptin osat + const systemPrompt = 'You are a coding assistant. Respond with ONLY code. No explanations, no markdown, no comments unless asked.'; + const agentPromptText = agent?.prompt || ''; + const inputTokensEst = Math.round(fullPrompt.length / 3.5); + + statusDiv.innerHTML = ` ✓ ${esc(data.model || model)} ${tokGen} tok · ${durS} · ${tokS}` + + ` [>]` + + `
`; if (!silent) { // Kompakti yksirivinen esikatselu — klikkaa/hover laajentaa const firstLine = response.split('\n').find(l => l.trim()) || response;