feat: freundliche Hinweise bei abgeschalteter/aufgebrauchter Web-Suche
Ist die Web-Suche bei einer offensichtlich tagesaktuellen Frage
(should_force_search) nicht verfuegbar, sendet ws.py einen {type:"notice"}-
Event mit einer kleinen, lokalisierten Senioren-Systemnachricht ("Web-Suche
aus" bzw. "Tageskontingent aufgebraucht"); Frontend zeigt sie als System-Bubble.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
88c8c9df7f
commit
4f1e15176b
2 changed files with 34 additions and 0 deletions
|
|
@ -757,6 +757,10 @@ function runTurn(path, onopen) {
|
|||
scrollToBottom();
|
||||
ws.close();
|
||||
break;
|
||||
case "notice":
|
||||
// Kleine System-Notiz (z. B. Web-Suche aus / Kontingent aufgebraucht).
|
||||
if (msg.text) addMessage("system", msg.text, { lang: turnLang() });
|
||||
break;
|
||||
case "error":
|
||||
addMessage("system", "Fehler: " + (msg.detail || msg.status || "unbekannt"));
|
||||
ws.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue