The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): a compressed conversation read at its listed segment stays read when the receipt lands late (currently failing)
yoniebans4173a80d9fe9
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/message-stream.test.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/message-stream.test.tsindex 6deaad73a11..9df23b3c229 100644--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/message-stream.test.ts+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/message-stream.test.ts@@ -169,6 +169,16 @@ describe('unread dot for a messaging turn Desktop sent', () => {expect($unreadFinishedMarkers.get()).toEqual({})})+ it('does not light a compressed conversation whose listed segment the user read before the receipt landed', () => {+ $messagingSessions.set([makeSessionInfo({ id: 'tg-tip', source: 'telegram', _lineage_root_id: 'tg-root' })])+ complete('late-compressed', 'tg-root')+ setSelectedStoredSessionId('tg-tip')+ setSelectedStoredSessionId(null)+ admit('late-compressed')+ expect($unreadFinishedSessionIds.get()).not.toContain('tg-tip')+ expect($unreadFinishedMarkers.get()).toEqual({})+ })+it('marks the listed segment of a compressed conversation', () => {$messagingSessions.set([makeSessionInfo({ id: 'tg-tip', source: 'telegram', _lineage_root_id: 'tg-root' })])noteDesktopAdmission('compressed-turn')