fix(ux): SSE JSON.parse guard в чате + финальный статус ревизии

- chat.html: одна битая data-строка SSE больше не роняет весь стрим в «Нет связи»
  (try/catch + continue). v2026-07-18k.
- docs: зафиксирован итог Fable-sweep (регрессий нет) + честный список отложенного
  (security.html — контент-решение Юрия; «Утвердить»; хвост долгов).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-07-18 21:09:15 +10:00
co-authored by Claude Opus 4.8
parent 910efa557c
commit af20cc3a0d
3 changed files with 25 additions and 9 deletions
+3 -1
View File
@@ -1274,7 +1274,9 @@ async function runChat(text) {
if (line.startsWith('event: ')) {
eventType = line.slice(7);
} else if (line.startsWith('data: ')) {
const data = JSON.parse(line.slice(6));
let data;
try { data = JSON.parse(line.slice(6)); }
catch (e) { continue; } // одна битая data-строка не должна ронять весь стрим в «Нет связи»
if (eventType === 'text') {
if (!aiDiv) {
aiDiv = addMsg('ai', '');