The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): cover another profile's messaging row hiding a local completion (currently failing)
yoniebansb3c1f7c1349b
diff --git a/apps/desktop/src/store/session-states-eviction.test.ts b/apps/desktop/src/store/session-states-eviction.test.tsindex c9d3e93bcd0..d9654bed356 100644--- a/apps/desktop/src/store/session-states-eviction.test.ts+++ b/apps/desktop/src/store/session-states-eviction.test.ts@@ -8,7 +8,13 @@ import {$sessions,$unreadFinishedSessionIds} from '@/store/session'-import { $sessionStates, $sessionTiles, closeSessionTile, publishSessionState } from '@/store/session-states'+import {+ $sessionStates,+ $sessionTiles,+ closeSessionTile,+ publishSessionState,+ recordSessionEventScope+} from '@/store/session-states'import { makeSessionInfo } from '@/test/session-info'/**@@ -57,6 +63,16 @@ describe('publish-time eviction', () => {expect($unreadFinishedSessionIds.get()).not.toContain('wechat-1')})+ it('marks a background profile local completion unread when another profile holds a messaging row of that id', () => {+ $messagingSessions.set([makeSessionInfo({ id: 'shared', source: 'telegram', profile: 'default' })])+ recordSessionEventScope({ connectionId: 'conn-work', profile: 'work', session_id: 'rt-work' })++ publishSessionState('rt-work', state('shared', { busy: true }))+ publishSessionState('rt-work', state('shared', { busy: false }))++ expect($unreadFinishedSessionIds.get()).toContain('shared')+ })+it('keeps a busy session with no surface — its background turn feeds the sidebar dot', () => {publishSessionState('rt-1', state('stored-1', { busy: true }))publishSessionState('rt-1', state('stored-1', { busy: true, awaitingResponse: true }))