Skip to content

The agent that grows with you

style(desktop): import order in the unread poll and its message-stream tests

yoniebans20d9fc038603
diff --git a/apps/desktop/src/app/contrib/hooks/use-background-sync.ts b/apps/desktop/src/app/contrib/hooks/use-background-sync.ts
index a33523c6061..9426d74b546 100644
--- a/apps/desktop/src/app/contrib/hooks/use-background-sync.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-background-sync.ts
@@ -48,8 +48,8 @@ import {
setLiveTurnBackend,
setSessionStalled
} from '@/store/session-states'
-import { loadArchivedSessions } from '@/store/sidebar-archive'
import { noteLiveSessionSource } from '@/store/session-unread'
+import { loadArchivedSessions } from '@/store/sidebar-archive'
import {
clearActiveSessionTodos,
clearSessionTodos,
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.ts
index 9df23b3c229..facbafb3217 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
@@ -8,7 +8,9 @@ vi.mock('@/store/session-control', () => ({ refreshSupportedSessionControlAfterT
import type { GatewayEventName } from '@hermes/shared'
+import { CanonicalDesktopProtocol } from '@/api/canonical-protocol'
import { createClientSessionState } from '@/lib/chat-runtime'
+import { $activeGatewayProfile } from '@/store/profile'
import {
$lastReadAtBySessionId,
$messagingSessions,
@@ -18,8 +20,6 @@ import {
setSelectedStoredSessionId
} from '@/store/session'
import { $sessionStates, publishSessionState } from '@/store/session-states'
-import { CanonicalDesktopProtocol } from '@/api/canonical-protocol'
-import { $activeGatewayProfile } from '@/store/profile'
import { $unreadFinishedMarkers, noteDesktopAdmission } from '@/store/session-unread'
import { makeSessionInfo } from '@/test/session-info'
@@ -93,11 +93,15 @@ describe('unread dot for a messaging turn Desktop sent', () => {
// A receipt as the canonical client sees it, whichever surface sent the prompt.
const admit = (admission: string, status = 'queued') =>
- new CanonicalDesktopProtocol().result('prompt.submit', { session_id: 'tg-1', submission_id: admission }, {
- admission_id: admission,
- ref: { session_id: 'tg-1' },
- status
- })
+ new CanonicalDesktopProtocol().result(
+ 'prompt.submit',
+ { session_id: 'tg-1', submission_id: admission },
+ {
+ admission_id: admission,
+ ref: { session_id: 'tg-1' },
+ status
+ }
+ )
it('lights on the stamped completion of a turn Desktop submitted, once', () => {
noteDesktopAdmission('desktop-turn')