fix: hide todo list/status when all todos complete, fix notifications (#124)

This commit is contained in:
vio1ator
2026-01-11 17:00:01 +02:00
committed by GitHub
parent e09559f711
commit 53b51a12c9
3 changed files with 9 additions and 7 deletions
+4 -1
View File
@@ -1048,7 +1048,8 @@ export const useEventStream = () => {
completeStreamingMessage(sessionId, messageId);
if (isWebRuntime() && nativeNotificationsEnabled) {
// Only notify when entire message is finished (finish === 'stop')
if (finish === 'stop' && isWebRuntime() && nativeNotificationsEnabled) {
const notifiedMessages = notifiedMessagesRef.current;
if (!notifiedMessages.has(messageId)) {
@@ -1288,6 +1289,7 @@ export const useEventStream = () => {
}
}, [
currentSessionId,
nativeNotificationsEnabled,
addStreamingPart,
completeStreamingMessage,
updateMessageInfo,
@@ -1711,6 +1713,7 @@ export const useEventStream = () => {
cooldownTimers.forEach((timer) => clearTimeout(timer));
cooldownTimers.clear();
messageCache.clear();
// eslint-disable-next-line react-hooks/exhaustive-deps -- Intentionally accessing current ref value at cleanup time
notifiedMessagesRef.current.clear();
pendingResumeRef.current = false;