fix: Highlight nur bei API-Antworten, nicht bei Begruessung

Dieser Commit ist enthalten in:
Claude Dev
2026-03-15 23:37:20 +01:00
Ursprung a7741b5985
Commit 711b8b625b

Datei anzeigen

@@ -146,6 +146,7 @@ const Chat = {
this._updateResetBtn(); this._updateResetBtn();
this._hideTyping(); this._hideTyping();
this.addMessage('assistant', data.reply); this.addMessage('assistant', data.reply);
this._highlightUI(data.reply);
} catch (err) { } catch (err) {
this._hideTyping(); this._hideTyping();
const msg = err.detail || err.message || 'Etwas ist schiefgelaufen. Bitte versuche es erneut.'; const msg = err.detail || err.message || 'Etwas ist schiefgelaufen. Bitte versuche es erneut.';
@@ -178,7 +179,6 @@ const Chat = {
container.scrollTop = container.scrollHeight; container.scrollTop = container.scrollHeight;
} else { } else {
bubble.scrollIntoView({ behavior: 'smooth', block: 'start' }); bubble.scrollIntoView({ behavior: 'smooth', block: 'start' });
this._highlightUI(text);
} }
}, },