Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

test(speech): type the overlay's onClose mock so main typechecks again

review4ad4b752b677
diff --git a/src/renderer/components/DictationOverlay.lifecycle.test.tsx b/src/renderer/components/DictationOverlay.lifecycle.test.tsx
index fdecf1b44..06069d1d2 100644
--- a/src/renderer/components/DictationOverlay.lifecycle.test.tsx
+++ b/src/renderer/components/DictationOverlay.lifecycle.test.tsx
@@ -9,7 +9,7 @@
// transcript (whisper's "Thank you." over silence, or a meeting's audio) into the terminal.
import { act } from 'react'
import { createRoot, type Root } from 'react-dom/client'
-import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+import { afterEach, beforeEach, describe, expect, it, vi, type Mock } from 'vitest'
;(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true
@@ -67,7 +67,7 @@ const CAP_PLUS_MARGIN_MS = 200_000 // past MAX_RECORDING_MS (2:30)
let host: HTMLDivElement
let root: Root
-let onClose: ReturnType<typeof vi.fn>
+let onClose: Mock<() => void>
let micConsent: ReturnType<typeof vi.fn>
let transcribe: ReturnType<typeof vi.fn>