diff --git a/static/chat.html b/static/chat.html index 0a2b24c..5025e53 100644 --- a/static/chat.html +++ b/static/chat.html @@ -379,9 +379,11 @@ async function sendMessage() { } aiText += data.text; aiDiv._rawText = aiText; - // Re-render markdown (keep copy button) + // Re-render markdown (keep time + copy button) const copyBtn = aiDiv.querySelector('.copy-btn'); + const timeEl = aiDiv.querySelector('.msg-time'); aiDiv.innerHTML = renderMarkdown(aiText); + if (timeEl) aiDiv.prepend(timeEl); if (copyBtn) aiDiv.appendChild(copyBtn); msgs.scrollTop = msgs.scrollHeight; } else if (eventType === 'tool') {