The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): resolve runtime timer salvage against current main
Hermes Agent81b0ee63234c
diff --git a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsxindex 01dabd6c778..0547bab333f 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx+++ b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx@@ -2120,7 +2120,7 @@ describe('branchStoredSession desktop source tagging', () => {vi.spyOn(Date, 'now').mockReturnValue(runtimeStartedAt)const requestGateway = vi.fn(async (method: string) => {- if (method === 'session.create') {+ if (method === 'session.create' || method === 'session.branch_stored') {return { session_id: 'branch-runtime', stored_session_id: 'branch-stored' } as never}diff --git a/apps/desktop/src/app/shell/hooks/use-statusbar-items.test.tsx b/apps/desktop/src/app/shell/hooks/use-statusbar-items.test.tsxindex b4ac72351a0..90b1de65b3f 100644--- a/apps/desktop/src/app/shell/hooks/use-statusbar-items.test.tsx+++ b/apps/desktop/src/app/shell/hooks/use-statusbar-items.test.tsx@@ -4,25 +4,18 @@ import { isValidElement, type ReactNode } from 'react'import { MemoryRouter } from 'react-router'import { afterEach, describe, expect, it, vi } from 'vitest'-<<<<<<< HEADimport {$connection,$currentCwd,$selectedStoredSessionId,$sessions,$sessionStartedAt,- $tileSessionFocusStartedAt+ $tileSessionFocusStartedAt,+ setActiveSessionId} from '@/store/session'-import { $focusedTreePaneId as $focusedTreePaneIdMock } from '@/store/session-focus'-import { $sessionTiles } from '@/store/session-states'-=======-import { group } from '@/components/pane-shell/tree/model'-import { $activeTreeGroup, $layoutTree } from '@/components/pane-shell/tree/store'import { createClientSessionState } from '@/lib/chat-runtime'-import { $activeSessionId, $selectedStoredSessionId, $sessions, $sessionStartedAt } from '@/store/session'+import { $focusedTreePaneId as $focusedTreePaneIdMock } from '@/store/session-focus'import { $sessionStates, $sessionTiles } from '@/store/session-states'-import type { SessionInfo } from '@/types/hermes'->>>>>>> 5c4eee88f4 (style(desktop): format runtime timer changes)import { useStatusbarItems } from './use-statusbar-items'@@ -108,6 +101,12 @@ describe('statusbar workspace menu — "Open containing folder"', () => {})const statusbarOptions = {+ agentsOpen: false,+ chatOpen: true,+ commandCenterOpen: false,+ extraLeftItems: [],+ extraRightItems: [],+ freshDraftReady: false,gatewayState: 'ready' as const,inferenceStatus: null,openAgents: () => {},@@ -201,6 +200,9 @@ describe('useStatusbarItems session timer — runtime cache anchor', () => {const parentRowStartedAt = 1_600_000_000const branchRuntimeStartedAt = 1_800_000_000_000+ // The branch is a live runtime on the focused tile; its slice carries the+ // runtime's own start, which must win over the parent row's stored age.+ setActiveSessionId('branch-runtime')$selectedStoredSessionId.set('parent-stored')$sessionStartedAt.set(1_700_000_000_000)$sessions.set([@@ -214,6 +216,9 @@ describe('useStatusbarItems session timer — runtime cache anchor', () => {storedSessionId: 'branch-stored'}] as never)+ $sessionStates.set({+ 'branch-runtime': { ...createClientSessionState('branch-stored'), runtimeStartedAt: branchRuntimeStartedAt }+ } as never)$focusedTreePaneId.set('session-tile:branch-stored')const item = sessionTimerItem()