Add voice input support to terminal

This commit is contained in:
James Babcock committed 2026-07-13 00:27:03 -07:00
1 parent b2c90bc043
commit 7ca3735c23
5 files changed
+110 -12

No files matched your search

+9
View File
@@ -109,6 +109,15 @@ global.onmessage = (event: { data: WorkerAppMessage }) => {
handleInput(window, message.event as DashboardInputEvent, message.frameId);
break;
}
case "text-input": {
const window = windows.get(message.windowId);
// Only attached view windows have a terminal to type into. Append "\r"
// (the Enter key) so voice-dictated text is submitted as a command.
if (window && window.kind === "view") {
window.client.sendInput(`${message.text}\r`);
}
break;
}
case "render": {
const window = windows.get(message.windowId);
if (window) renderAndSubmit(window, 0);