diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx index f27d7fa464e1..a06ee1294c08 100644 --- a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx +++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx @@ -109,6 +109,7 @@ function Harness({ const localActiveSessionIdRef = useRef( activeSessionId === undefined ? RUNTIME_SESSION_ID : activeSessionId ) + const activeSessionIdRef = activeSessionIdRefProp ?? localActiveSessionIdRef const selectedStoredSessionIdRef: MutableRefObject = selectedStoredSessionIdRefProp ?? { @@ -564,6 +565,7 @@ describe('usePromptActions submit / queue drain semantics', () => { const updates: { sessionId: string; state: Record; storedSessionId: null | string | undefined }[] = [] + const requestGateway = vi.fn(async () => ({}) as never) let handle: HarnessHandle | null = null