From fb37abd2b319957a330f1e7f4fd364f5df36714d Mon Sep 17 00:00:00 2001 From: anor Date: Fri, 27 Mar 2026 02:35:25 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20timestamp=20=D0=BF=D1=80=D0=BE=D0=BF?= =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BB=20=D0=BF=D1=80=D0=B8=20streaming=20?= =?UTF-8?q?=E2=80=94=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D1=8F=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BF=D1=80=D0=B8=20re-render?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit innerHTML = renderMarkdown() стирал .msg-time element. Теперь сохраняем timeEl перед re-render и prepend обратно. Co-Authored-By: Claude Opus 4.6 (1M context) --- static/chat.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') {