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
+2 -1
View File
@@ -2546,7 +2546,8 @@ initializeDatabase().then(() => {
[threadId, 'assistant', saved]
);
await dbRun('UPDATE chat_threads SET updated_at = CURRENT_TIMESTAMP WHERE id = ?', [threadId]);
send({ type: 'done', messageId: lastID, content: saved });
const threadRow = await dbGet('SELECT titel FROM chat_threads WHERE id = ?', [threadId]);
send({ type: 'done', messageId: lastID, content: saved, titel: threadRow && threadRow.titel });
} catch (error) {
send({ type: 'error', message: 'Antwort konnte nicht gespeichert werden.' });
}