The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#87257)
hermes-seaeye[bot]0c50bdbdea57
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.tsindex 6b29fedcba0..50291775e66 100644--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts@@ -605,6 +605,7 @@ export function useGatewayEventHandler(deps: GatewayEventDeps) {typeof payload!.turn_started_at === 'number' && payload!.turn_started_at > 0? payload!.turn_started_at * 1000: null+return {...state,busy,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 e48ee69f92a..ea5cc084ceb 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@@ -667,6 +667,7 @@ function ResumeTimerHarness({}) {const activeSessionId = useStore($activeSessionId)const busyRef = useRef(false)+const cache = useSessionStateCache({activeSessionId,busyRef,@@ -675,6 +676,7 @@ function ResumeTimerHarness({setBusy,setMessages})+const actions = useSessionActions({activeSessionId,activeSessionIdRef: cache.activeSessionIdRef,@@ -1198,6 +1200,7 @@ describe('session.resume turn timer contract', () => {return {} as never})+vi.mocked(getAllSessionMessages).mockResolvedValue({ messages: [], session_id: 'stored-running' } as never)let resume: ((storedSessionId: string, replaceRoute?: boolean) => Promise<unknown>) | null = null@@ -1868,12 +1871,15 @@ describe('resumeSession warm-cache mapping integrity', () => {it('restores the warm reconnect turn clock from session.activate', async () => {const turnStartedAtSeconds = 1_700_000_123+const runtimeIdByStoredSessionIdRef: MutableRefObject<Map<string, string>> = {current: new Map([['stored-A', 'rt-A']])}+const cachedState = clientState('stored-A')cachedState.busy = truecachedState.turnStartedAt = null+const sessionStateByRuntimeIdRef: MutableRefObject<Map<string, ClientSessionState>> = {current: new Map([['rt-A', cachedState]])}diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts b/apps/desktop/src/app/session/hooks/use-session-actions/index.tsindex 85a53266d82..361a553fd08 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts+++ b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts@@ -1227,13 +1227,10 @@ export function useSessionActions({// Point live deltas at the recovered row when the backend is// still mid-turn; a settled recovery keeps the stream idle.streamId: resumedRunning ? inFlightRecovery.streamId : null,- turnStartedAt: resumedRunning- ? (inFlightRecovery.turnStartedAt ?? resumedTurnStartedAt)- : null+ turnStartedAt: resumedRunning ? (inFlightRecovery.turnStartedAt ?? resumedTurnStartedAt) : null}: {- turnStartedAt:- resumedRunning && resumedTurnStartedAt !== null ? resumedTurnStartedAt : null+ turnStartedAt: resumedRunning && resumedTurnStartedAt !== null ? resumedTurnStartedAt : null})}),storedSessionId