A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): review dictations before sending (S30.4, L103)
Alan Buscaglia9c41cc3feb36
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex 96fab91..c2fb29c 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -118,7 +118,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo- **S30.2 OpenAI API key, when connected.** If an OpenAI API key is connected in Accounts, the daemon transcribes recorded audio with OpenAI (`/v1/audio/transcriptions`, a gpt-4o transcribe model) and speaks replies with OpenAI text to speech; the key never leaves the daemon. On the desktop the key is preferred when present; in the web UI it is the only way to talk (the web shows the mic only when a key is connected, over HTTPS or localhost). Recordings are capped (about 60 s) to fit the WebSocket limit.- **S30.3 Spoken replies.** Without a key, replies are spoken with the system voices (speechSynthesis in the UI, matching the reply language when possible). Only replies to a spoken message are read aloud; a mute toggle in the panel header silences them (remembered), and starting to talk or pressing Stop cuts the speech.- **S30.5 Optional local model (L89).** User: "no seria mejor sino tener un modelo de ia local chiquito? Parakeet es muy muy bueno", then "pero que sea opcional para descargarlo si solo quiere". Voice settings offer a "Download local voice model" action for NVIDIA Parakeet TDT 0.6B v3 (25 European languages incl. Spanish, huggingface.co/nvidia/parakeet-tdt-0.6b-v3), run through the `sherpa-onnx` Rust crate (offline transducer, int8 model; works on macOS and Linux). Nothing downloads unless the user asks; the download shows size and progress, can be cancelled, verifies the files, and can be removed. When present, it is the preferred speech-to-text engine on that machine (fully offline); otherwise S30.1/S30.2 apply. On Linux it is the only desktop voice engine besides an API key.- - **S30.4 Mic button.** A mic button in the composer: tap to start, tap to stop; while recording it shows the level and elapsed time, Esc or ✕ cancels, and the final transcript is sent as the user's message (assumption: sent automatically, since the user asked for a voice conversation; the transcript stays visible as the message). When voice is unavailable the button explains why (missing permission, unsupported, web without a key).+ - **S30.4 Mic button.** A mic button in the composer: tap to start, tap to stop; while recording it shows the level and elapsed time, Esc or ✕ cancels, and the final transcript is left in the input, after any typed text, for the user to confirm with Enter (L103); a remembered "Send when I stop" switch in the recording strip sends it on stop instead. A sent message that included a dictation has its reply read aloud. When voice is unavailable the button explains why (missing permission, unsupported, web without a key).- **S31 — Send files to the assistant (L91).** User: "y una cosa mas :) la posibilidad de pasar archviso por chat, eso estaria genial". Choice: "Solo yo al agente".- **S31.1 Attach.** In the panel and the web UI the user attaches files to a message with an attach button, drag and drop onto the chat, or paste (images); attachments show as removable chips before sending and as chips in the sent message.@@ -284,4 +284,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **L100 (2026-10-09, user):** "donde elijo lo de voz? lo de descargar el mdoelo" — the download UI did not exist yet. Added a Voice entry in the desktop Connectors screen (`4848d24`): current engine, "Download local voice model (487 MB)" only on request, progress, "Checking and unpacking…", Cancel, failure reason, "Remove local model (670 MB)"; RED (missing module) → GREEN 5/5, pnpm test 589. Rebuilt, signed with the stable identity, restarted.- **L101 (2026-10-09, user):** "el modelo no funciona muy bien (el de voz) tanto en ingle como en español no toma lo que digo, o mejor dicho lo toma pero es cualquier cosa"; "ahhh porque estaba usando el de mac era". Checked: the local model was not installed (the parent's app restart killed the first download, leaving `.parakeet-…download`), so Apple Speech was used; suspicion: our 16 kHz box-filter conversion degrades the audio (Parakeet decoded test WAVs correctly). The user downloaded the model again ("Using: local model (Parakeet)"), and asked about the "Built in" chip (it marks the Voice entry as part of the app; proposed showing the engine instead). User: "otra cosa, hasta que no hago click en el model arriba del input no toma mi modelo actual, aparece como que noengo ninguno". Cause: `ready` carries the model only when known (bridge.ts:155) and the computer registration restarts the engine at launch, so nothing told windows the model later. Fix: broadcast the models payload whenever the engine becomes ready (RED reproduced → GREEN, pnpm test 590).- **L102 (2026-10-09, user):** "bien pero, mientras estoy hablando no me aparece lo que se va enviar como cuando uso el bui† in de mac" — Parakeet transcribes correctly with our capture, so the earlier garbage came from Apple Speech with our converted 16 kHz audio (open: feed Apple the device's native buffers). Live text with the local model (`e027b19`): the recording so far (last 30 s at most) is decoded again every 0.8 s of new audio, skipping when the model is still loading or a decode runs (never blocking the audio thread), serialized with the final decode, and never shown after stop/cancel; RED (compile) → GREEN, cargo test 296. The Voice chip now names the engine ("Offline", "macOS", "Off"; `1396457`). Rebuilt, signed, restarted (also applies the model-chip fix `7ab0c0a`).-- **Next step:** the user's check of live text, the model chip at launch, and NaN with computer control; then Apple Speech fed with native buffers; T30 verifier verdict; the T29c UI hook (download button, "Transcribing…"); drag-drop handler; pin sherpa-onnx libs; rebuild for a real-Mac round; the T29c UI hook; pin sherpa-onnx libs in packaging; drag-drop handler change; T29c, T31, T30 verdict; then the T29c UI hook, the drag-drop change, and a rebuild for a real-Mac round; grant both permissions, take a screenshot (the Dot must be absent), click and type in a harmless app, a risky "Send" confirmation, ⌥⇧Esc panic, a blocked app (System Settings), and `screencapture -x /tmp/t.png` from the agent's bash must fail (R1); the community tester runs docs/linux-testing.md when the user shares it; T23/S25 before any public release.+- **L103 (2026-10-09, user):** "estaria bueno que si pongo el boton de grabar de nuevo en vez de enviarlo, que se quede escrito en el input para confirmarlo, como se comporta ahora estaria bueno que sea una opcion que uno elijiese". S30.4 updated: review in the input is the default; "Send when I stop" (switch in the recording strip, stored in localStorage) keeps send-on-stop; the mic button reads "Stop and review" or "Stop and send". `e0010eb`: RED 3 failing → GREEN, pnpm test 593 (the earlier tests now cover the option). Rebuilt, signed, restarted.+- **Next step:** the user's check of review-before-send, live text, the model chip at launch, and NaN with computer control; then Apple Speech fed with native buffers; T30 verifier verdict; the T29c UI hook (download button, "Transcribing…"); drag-drop handler; pin sherpa-onnx libs; rebuild for a real-Mac round; the T29c UI hook; pin sherpa-onnx libs in packaging; drag-drop handler change; T29c, T31, T30 verdict; then the T29c UI hook, the drag-drop change, and a rebuild for a real-Mac round; grant both permissions, take a screenshot (the Dot must be absent), click and type in a harmless app, a risky "Send" confirmation, ⌥⇧Esc panic, a blocked app (System Settings), and `screencapture -x /tmp/t.png` from the agent's bash must fail (R1); the community tester runs docs/linux-testing.md when the user shares it; T23/S25 before any public release.