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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user