KI-Chat: Verlaufs-Titel live aktualisiert + sauberes Floating-Icon

- Der automatisch generierte Verlaufs-Titel (aus der ersten Nachricht) erscheint
  jetzt sofort in der Sidebar, nicht erst nach Reload. Der titel wird im
  done-Event mitgeschickt und clientseitig gesetzt.
- Floating-Button-Icon durch eine saubere Chat-Bubble ersetzt.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-07 14:57:35 +00:00
co-authored by Claude
parent 26a61aa302
commit 40b4de12e1
3 changed files with 9 additions and 2 deletions
+6
View File
@@ -258,6 +258,12 @@
if (typing) typing.remove();
addMessage('assistant', ev.content || '(keine Antwort)');
}
// Live-update the auto-generated thread title in the sidebar.
if (ev.titel && activeId) {
const li = threadList && threadList.querySelector('li[data-thread-li="' + activeId + '"]');
const titleEl = li && li.querySelector('.threadLink .font-medium');
if (titleEl && ev.titel && ev.titel !== titleEl.textContent) titleEl.textContent = ev.titel;
}
scrollBottom();
} else if (ev.type === 'error') {
if (typing) typing.remove();