Skip to content

A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.

TypeScript

docs(odd): specify the in-chat model picker (S32, T31)

Alan Buscaglia4e2efc504970
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index 77ab90c..145aa92 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -125,6 +125,8 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
- **S31.3 Limits and safety.** A per-file size limit (assumption: 25 MB) and a per-message limit (assumption: 10 files, 50 MB); names are sanitized (no path traversal, no hidden or reserved names); nothing is executed or opened on upload; refused files explain why.
- Out of scope (L91): the agent sending files back to the user.
+- **S32 — Change the model from the chat (L93).** User: "una cosa mas, da la posibilidad de cambiar los modelos en el chat mismo". A model picker in the chat (panel and web) shows the current model and, on open, the models of the connected accounts grouped by account (and the saved profiles), with the thinking level when the model supports it; choosing one switches the running engine live (`set_model`, `set_thinking_level`, already used by profile apply, profiles.ts:670-698) for the next message, without leaving the chat. While a reply is running the switch applies to the next message. The image note (S24.5) and voice capability follow the chosen model. Assumption: the choice persists like today's model setting.
+
## Tasks
| ID | Specs | Route | Status | Commit / evidence | Scope |
@@ -169,6 +171,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
| T29b | S30.2–S30.4 | delegated writer, parallel with T29a (surface `packages/**`) | done (real Mac pending) | `fd7c25f`; RED → GREEN; parent re-ran pnpm test 520 | Daemon OpenAI-key transcription/TTS, mic button, spoken replies |
| T29c | S30.5 | delegated writer (Rust: engine, download, commands), parallel with T30; UI hook after T30 | in progress | — | Optional Parakeet local model via sherpa-onnx: download, verify, remove, prefer |
| T30 | S31 | delegated writer, parallel with T29c (surface `packages/**`) | in progress | — | Attach files to messages: upload, workspace storage, images to the model |
+| T31 | S32 | queued after T30 (same surface: chat UI, bridge) | pending | — | Model picker in the chat |
| T22 | S18 (hardening, L47 B1/B2) | delegated writer | done (accepted with documented gaps, L52) | `8651bba`; parent re-ran 328 tests + typecheck | Option A: authoritative in-memory connector state with revert, credential reads blocked, path-independent bash checks, full approval preview, redirect manual, private Engram stop, onboarding overlap fix |
| T23 | S25 | explore → spec → implement (stage 2) | pending | — | Daemon-side MCP proxy with Keychain tokens |
| T9 | S1–S6, S9–S12 | delegated verifier (high risk: process supervision, auth) | done | L24 + L31 | Full verification: unit, integration, Playwright, `@real-agent`, `tauri build` + launch, manual macOS checklist with observed results |
@@ -269,4 +272,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **L90 (2026-10-09):** incident: commit `70c3f69` wrote back a 50 KB-truncated read of this document (log L12–L87 lost from HEAD, reported by both T29 writers). Restored from `70e5498` and the S30/L88/L89 changes reapplied with a full-file edit; lesson: never rewrite this document from a paged read.
- **L91 (2026-10-09, user):** "y una cosa mas :) la posibilidad de pasar archviso por chat, eso estaria genial"; choice "Solo yo al agente". Checked: the engine's RPC prompt accepts `images?: ImageContent[]` (pi-coding-agent rpc-types.d.ts:18-29) and the WebSocket caps messages at 1 MiB (daemon.ts:197), so uploads go over HTTP. Recorded as S31/T30, queued after T29b.
- **L92 (2026-10-09):** T29a done (`93ee637`): SFSpeechRecognizer (SpeechAnalyzer is Swift-only), native 16 kHz mono capture behind a `Recognizer` trait, Info.plist usage strings, `voice` capability for the panel only. T29b done (`fd7c25f`): protocol voice messages and capability, daemon VoiceService using only an OpenAI API key (`checkAuth("openai").type === "api_key"`; the ChatGPT sign-in is refused), mic button, source choice, spoken replies, mute. The lint failure T29b reported was T29a's capabilities formatting, fixed. User: "una cosa mas, no veo para conectar NaN, fijate que si lo tenemos en gentle shell, hasta tenemos nuestro propio plugin". Cause: the Accounts screen's ModelRuntime runs without gentle-pi's extensions, and NaN is registered by `extensions/nan-provider.ts`. Fix `627f2ad`: the daemon registers gentle-pi's NaN provider as a native provider, loaded through jiti 2.7.0 (gentle-pi ships TypeScript inside node_modules); RED → GREEN, pnpm test 521; jiti added to the runtime's dependencies. App restarted.
-- **Next step:** T29c (Rust) and T30 in parallel, then the T29c UI hook, then a rebuild for a real-Mac round of voice and files; 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.
+- **L93 (2026-10-09, user):** "una cosa mas, da la posibilidad de cambiar los modelos en el chat mismo". Checked: the engine RPC has `get_available_models`, `set_model`, `set_thinking_level` (rpc-types.d.ts:45-56) and profile apply already switches live (profiles.ts:670-698), so this is mostly UI. Recorded as S32/T31, queued after T30.
+- **Next step:** T29c (Rust) and T30 in parallel, then the T29c UI hook and T31, then a rebuild for a real-Mac round of voice, files, and the model picker; 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.