feat: Stream-Abbruch per Stop-Button

- Neuer Stop-Button (#stop) neben Send-Button, erscheint nur während Stream
- AbortController in chat.js: abort() schließt SSE-Verbindung → Backend CancellationToken triggered
- apiChat() akzeptiert optionales AbortSignal
- AbortError-Handling: zeigt 'Abgebrochen' statt Fehlermeldung
- Button-Toggle in sendMessage(), stopStreaming(), startStreamingPoll(), Page-Load-Recovery
- CSS: .stop-btn mit --dangerous Farbe
- Diverse kleine UI-Fixes (TODO.md, theme.css box-spacing, settings-section Layout)
This commit is contained in:
Meleki committed 2026-03-02 06:52:26 +01:00
1 parent 190a0d0a8b
commit 4bf500ad47
8 files changed
+73 -22

No files matched your search

+8
View File
@@ -240,6 +240,14 @@
.stop-btn {
color: var(--dangerous);
}
.stop-btn:hover {
background: rgb(from var(--dangerous) r g b / 0.15);
}
.input-area textarea {
flex: 1;
min-height: 0;