Skip to content

The agent that grows with you

fix(desktop): hoist GatewayMock type into #82462 edit recovery suite

rainbowgits3e0bf6dcaa42
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 fb1abcf4df5..25afbea6daf 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
@@ -5172,6 +5172,9 @@ describe('usePromptActions stale-closure session routing', () => {
})
describe('usePromptActions editMessage stale-target recovery (#82462)', () => {
+ type GatewayRequestFn = <T>(method: string, params?: Record<string, unknown>, timeoutMs?: number) => Promise<T>
+ type GatewayMock = GatewayRequestFn & { mock: { calls: unknown[][] } }
+
afterEach(() => {
cleanup()
clearNotifications()