The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(app): record why assistant-ui dictation stays unwired
M3gA-Minddf05563765ca
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsxindex a872bdc2c2..db7c7e2ad7 100644--- a/app/src/components/assistant-ui/thread.tsx+++ b/app/src/components/assistant-ui/thread.tsx@@ -796,6 +796,16 @@ const ComposerAction: FC<{<MicIcon className="size-4" /></TooltipIconButton>)}+ {/*+ Permanently false, deliberately: `useOpenHumanExternalStore` supplies+ no `adapters.dictation`, and the reasoning for keeping it that way+ lives there. Short version — Web Speech's constructor exists in our+ WKWebView but `start()` never succeeds, and with the speech usage+ strings present it hangs silently rather than erroring, which would+ strand the composer in `dictation != null`. Working dictation already+ ships as the `mic-cloud` composer, whose "Voice mode" button is the+ one directly above this block.+ */}<AuiIf condition={s => s.thread.capabilities.dictation}><AuiIf condition={s => s.composer.dictation == null}><ComposerPrimitive.Dictate asChild>diff --git a/app/src/providers/useOpenHumanExternalStore.ts b/app/src/providers/useOpenHumanExternalStore.tsindex 4426b880f2..7f048325b9 100644--- a/app/src/providers/useOpenHumanExternalStore.ts+++ b/app/src/providers/useOpenHumanExternalStore.ts@@ -300,6 +300,42 @@ export function useOpenHumanExternalStore(threadId: string | null) {[dispatch, threadId]);+ // DO NOT add `adapters: { dictation: new WebSpeechDictationAdapter() }` here.+ //+ // It is exported by `@assistant-ui/react` at our pinned 0.15.16 and looks like+ // a one-line win: the transcript already renders Dictate / StopDictation+ // behind `s.thread.capabilities.dictation` (`thread.tsx`), and the runtime+ // derives that capability from nothing but the key's presence —+ // `dictation: this._store.adapters?.dictation !== void 0`. Supplying the+ // adapter would light the button up immediately. It would also trap the user.+ //+ // Measured in a WKWebView harness, which is the engine Wry gives us on macOS:+ //+ // no Info.plist `webkitSpeechRecognition` present, start() →+ // onerror "service-not-allowed"+ // + NSMicrophoneUsage… `webkitSpeechRecognition` present, start() →+ // + NSSpeechRecognition… NO EVENT AT ALL within 6s+ //+ // The second row is the dangerous one. A detectable error could be caught and+ // the capability withdrawn; silence cannot. The composer would enter+ // `dictation != null`, never leave it, and `StopDictation` would be the only+ // way out — an affordance that looks like it works, unlike the merely inert+ // Edit / BranchPicker / Reload controls gated off in #5897 and #6467.+ //+ // This is NOT "speech is impossible here". The app already ships working+ // speech-to-text by a different route: the `mic-cloud` composer captures with+ // `MediaRecorder` and transcribes through the core's `voice_*` RPC+ // (`features/human/voice/sttClient.ts`), with `voice` in+ // `scripts/ci/product-features.txt`. Its entry point is the "Voice mode" mic+ // button rendered a few pixels from the dictation gate it would duplicate.+ // The desktop `Info.plist` even describes that path — it declares+ // `NSMicrophoneUsageDescription` ("voice dictation") and, tellingly, no+ // `NSSpeechRecognitionUsageDescription`, which only the mobile plist carries.+ //+ // Inline dictation into the composer is still worth having; it should reuse+ // that shipped capture + transcription rather than Web Speech. Tracked+ // separately — it needs a capture lifecycle, interim results, cancellation+ // and error surfacing, none of which this key would provide.return useMemo(() => ({messages: runtimeMessages,