Skip to content

The agent that grows with you

fix(desktop): reading any segment of a messaging or cron conversation marks the whole conversation read

yoniebanse569eea1ba2c
diff --git a/apps/desktop/src/store/session.ts b/apps/desktop/src/store/session.ts
index 71ed97487eb..9c760965540 100644
--- a/apps/desktop/src/store/session.ts
+++ b/apps/desktop/src/store/session.ts
@@ -1583,8 +1583,8 @@ export const markSessionRead = (storedSessionId: string | null | undefined) => {
return
}
- const sessions = $sessions.get()
- const familyIds = new Set<string>(lineageAliases(storedSessionId, sessions))
+ const rows = [...$sessions.get(), ...$messagingSessions.get(), ...$cronSessions.get()]
+ const familyIds = new Set<string>(lineageAliases(storedSessionId, rows))
const lastReadAt = Date.now()
const nextReadMap = { ...$lastReadAtBySessionId.get() }