A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): record T12 evidence
Alan Buscagliadeeb33a30690
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex 10ff052..6d6afcc 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -61,7 +61,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo| T8 | S7 | inline | done | `ee74148` docker build OK, container smoke: health idle, companion setup 3/3 | `Dockerfile`, `compose.yaml`, `docs/deploy-vps.md`, security checklist, video step list || T10 | S9 | delegated writer (context backstop; parallel with T12) | done | `a5e1c5b` RED → GREEN: UI 9 failing → 13/13; Rust 17 compile errors → 34/34; tauri build OK; parent re-ran both | Apply the rose design: Dot surface (transparent rose window ~64×84, traced strokes, glow, traveling light per state), tray template glyph with frames, app icon from the neon rose || T11 | S10 | explore (delegated) then inline | done | `43a512d` RED → GREEN: 12 daemon auth tests (fake runtime + real offline ModelRuntime), 9 UI tests, e2e 8/8 incl. `/login` + API key connect/disconnect | Login from the UI for subscriptions and API keys (`/login` and a visible option) |-| T12 | S11 | explore (delegated) then delegated writer (context backstop; parallel with T10) | in progress | — | Profiles: list, create, edit, switch from the UI |+| T12 | S11 | explore (delegated) then delegated writer (context backstop; parallel with T10) | done | see L23; RED → GREEN per layer; parent re-ran 179 tests + typecheck | Profiles: list, create, edit, switch from the UI || T13 | S12 | inline | done | `43a512d` config + spawn tests; real smoke without gentle-shell on PATH: own home created, 42 providers, none configured | Bundle `gentle-pi`, own `--home` and profile store, first-run timeout, no PATH dependency || T14 | — (evaluation only, L21) | inline | pending | — | Linux port of the desktop app: per-platform window effects, tray icon, Wayland fallbacks, AppImage/deb bundles || T9 | S1–S6, S9–S12 | delegated verifier (high risk: process supervision, auth) | pending | — | Full verification: unit, integration, Playwright, `@real-agent`, `tauri build` + launch, manual macOS checklist with observed results |@@ -92,4 +92,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **L20 (2026-10-08, user decision):** "Propios del bot, con importar (Recomendado)": the assistant keeps its own profiles in `~/.gentle-dot`. When the person has Gentle Shell, an "Import my Gentle Shell profiles" button copies them once, and changes made in the assistant never touch Gentle Shell. `/gentle:profiles` takes no arguments (panel only, `extensions/gentle-ai.ts:3606`), so the daemon must manage profiles itself; a read-only map of what applying a profile writes is running. The Docker image with the bundled engine was verified (`8d5a135`): health idle, setup 3/3.- **L21 (2026-10-08, user):** "Ve evaluando que tan fácil es portarlo para Linux y actualiza el todo". Read-only evaluation: the daemon, UI, protocol, auth, and Docker image are already platform-neutral (the container is Linux). The desktop shell has macOS-only points (`src/shell.rs`): HudWindow vibrancy (macOS/Windows only), the accessory activation policy (already `cfg(target_os = "macos")`), `icon_as_template`, `accept_first_mouse`, the `macos-private-api` feature/`macOSPrivateApi`, Info.plist `LSUIElement`, and `.cargo/config.toml` pinning `/usr/bin/cc`. Linux constraints: on Wayland, apps cannot position their own windows or reliably stay on top, and global shortcuts need the GlobalShortcuts portal, so edge snapping, the floating rose, and Alt+Space are X11-only; on GNOME the tray needs the AppIndicator extension; transparency needs a compositor. Estimate: X11 parity is small (about 1–2 days); Wayland needs fallbacks (a normal window instead of the free-floating rose, a tray-or-panel launcher, a shortcut set by the user in desktop settings). Recorded as T14, pending a go-ahead.- **L22 (2026-10-08, T10 evidence):** The rose is an inline SVG built from the traced strokes: 178 static outline strokes, with light traveling along the 60 longest (at 64 px the shorter ones read as flicker). Finding: macOS system WebKit does not draw CSS `drop-shadow` on `<g>` inside inline SVG, so the rose is three stacked `<svg>` layers (base, light, sparkles), each with its own glow; verified with `qlmanage` system-WebKit renders. The Dot window is 64×84 with `initial_dot_position` using the real size. There are four tray template glyphs at 18/36 px (working is a static dashed variant, not two frames), plus a neon-rose squircle app icon and the favicon. Reduce motion hides the light layer and keeps a steady glow. Risks for T9: live animation in WKWebView is not yet observed, and the working tray glyph is subtle at 18 pt. The unused `icons/tray.png` was removed.-- **Next step:** integrate T12 after its writer, then T9; T14 when authorized.+- **L23 (2026-10-08, T12 evidence):** The writer stalled once on a bash command and was resumed in its own session with timeouts on every long command. The daemon reimplements the `gentle-pi.agent_model_profiles` v1 store: atomic 0600 writes through one queue. Applying a profile writes the four files in order, restores all four on failure, never touches agent `.md` files, then sends `set_model` and `set_thinking_level` (deferred until `agent_settled` while busy). Models forward only provider, id, name, and reasoning (a gateway test asserts that `headers` never reach a client). The import is read-only, skips `active`, renames collisions to `-imported[-N]`, and reports missing sign-ins. Extras beyond the request: editing the active profile re-applies it, identical imports are skipped, and Delete is disabled for the active profile. `SettingsManager` was not used because it cannot delete `defaultThinkingLevel`; a `settings.json.lock` mkdir lock (stale after 10 s) mimics proper-lockfile. Verification: 179 tests passed (2 opt-in skipped), typecheck OK, biome OK, e2e 9/9 (the e2e test was written after the implementation, so no RED). Open for T9: `set_model` against the real engine, lock compatibility with proper-lockfile, and one flaky `supervisor.test.ts:54` (busy after settle), seen once in four runs.+- **Next step:** T9 (full verification with an independent verifier, `@real-agent` tests, and launching the app); T14 when authorized.