Hold viewer message until AI reply is ready, when requested
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 30s

Previously the viewer's message displayed immediately and the AI
reply showed up whenever DeepSeek happened to respond, landing with
an awkward gap. Now, when the AI checkbox is checked, both texts are
fetched/prepared before anything is broadcast, so the original
message and the AI reply queue back-to-back on the overlay. Falls
back to just showing the original message if the AI call fails.
Behavior without the checkbox is unchanged (still immediate).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-07-01 17:39:33 +00:00
parent ad78436ae2
commit 729f6eb47e
2 changed files with 39 additions and 42 deletions

View file

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