Skip to content

The agent that grows with you

test(desktop): expect client_capture in wake.start/status params

Brooklyn Nicholsonc6fe31a9becf
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 9ac368fd44e..48e5398b6ef 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
@@ -485,8 +485,12 @@ describe('usePromptActions /wake', () => {
await handle!.submitText('/wake on')
- expect(requestGateway).toHaveBeenCalledWith('wake.start', { persist: true, surface: 'gui' }, 180_000)
- expect(requestGateway).toHaveBeenCalledWith('wake.status', {})
+ expect(requestGateway).toHaveBeenCalledWith(
+ 'wake.start',
+ { client_capture: true, persist: true, surface: 'gui' },
+ 180_000
+ )
+ expect(requestGateway).toHaveBeenCalledWith('wake.status', { client_capture: true, surface: 'gui' })
expect(requestGateway).not.toHaveBeenCalledWith('slash.exec', expect.anything())
expect(requestGateway).not.toHaveBeenCalledWith('command.dispatch', expect.anything())
expect($wakeWord.get()).toMatchObject({ available: true, enabled: true, listening: true })
diff --git a/apps/desktop/src/store/wake-word.test.ts b/apps/desktop/src/store/wake-word.test.ts
index 1d09a92eef2..2673e9a3f16 100644
--- a/apps/desktop/src/store/wake-word.test.ts
+++ b/apps/desktop/src/store/wake-word.test.ts
@@ -77,7 +77,7 @@ describe('toggleWakeWord', () => {
await toggleWakeWord(request)
- expect(request).toHaveBeenCalledWith('wake.start', { persist: true, surface: 'gui' })
+ expect(request).toHaveBeenCalledWith('wake.start', { client_capture: true, persist: true, surface: 'gui' })
expect($wakeWord.get()).toMatchObject({ listening: true, notice: '', pending: false })
})
@@ -297,7 +297,7 @@ describe('resumeWakeAfterVoice (post-voice reconcile)', () => {
await resumeWakeAfterVoice(request)
- expect(startParams).toEqual([{ surface: 'gui' }])
+ expect(startParams).toEqual([{ client_capture: true, surface: 'gui' }])
})
it('stops after the resume alone brings the listener back', async () => {