fixed injection watcher

This commit is contained in:
2026-06-11 07:18:19 +03:00
parent 827f9016cd
commit 06e09cd728
7 changed files with 93 additions and 84 deletions
+3 -2
View File
@@ -114,11 +114,12 @@ export default function Chat() {
if (seq > lastNotifySeq) {
setLastNotifySeq(seq);
refreshPomodoro().catch(console.error);
if (activeId) {
// Не перезагружать историю во время стрима — ломает UI и сбивает ответ.
if (activeId && !loading) {
loadMessages(activeId).catch(console.error);
}
}
}, [pomodoroStatus?.cycle?.chat_notify_seq, activeId, lastNotifySeq, refreshPomodoro]);
}, [pomodoroStatus?.cycle?.chat_notify_seq, activeId, lastNotifySeq, refreshPomodoro, loading]);
const handleNewChat = async () => {
const session = await api.createSession();