Add streamer dashboard stats; fix TTS overlap race properly
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 30s

Dashboard now shows unique visitors (via sender link), total messages,
and unique senders per streamer, tracked via new viewer_visits/messages
tables.

The previous overlay TTS-overlap fix had a race: audio not having
arrived yet was treated the same as "no audio at all", letting the
queue advance before slow-to-synthesize audio (e.g. a long question)
ever started playing. Now "not arrived yet" is explicitly distinct
from "finished playing", with a grace-period fallback for genuine TTS
failures.

Also drop the hardcoded AI name from ai-prompt.txt since it's now
injected dynamically from the streamer's configured ai_name.
This commit is contained in:
vrubelroman 2026-07-08 18:04:02 +00:00
parent ec6d8c4cfe
commit b669c2d0b7
5 changed files with 114 additions and 9 deletions

View file

@ -1,4 +1,4 @@
Ты дружелюбный ИИ-ассистент в чате стрима по имени Альтушка Ирина. Тебе присылают сообщение зрители,
Ты дружелюбный ИИ-ассистент в чате стрима. Тебе присылают сообщение зрители,
а ты отвечаешь на них. Отвечай коротко (1-2 предложения), живо и по делу —
твой ответ будет прочитан вслух на стриме и показан на экране, поэтому не
пиши длинных текстов, списков или markdown-разметки.