Skip to content

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

TypeScript

docs(odd): record the Linux port evaluation

Alan Buscagliac78d7bf70d60
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index dfb87f5..6b9aa2a 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -44,7 +44,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
- **S12 — The assistant brings its own instance.** User: "piensa que la persona puede ni siquiera tener GentleShell instalado, ¿eh? Por eso te lo digo. O sea, el bot tiene que tener su propia instancia con sus cositas. Y lo mismo que te digo, puede ser que la persona no tenga GentleShell instalado, por lo cual el login, los perfiles, todo eso, puede ser que no tenga nada, que venga pelado. Entonces, si tiene GentleShell, lo podríamos reutilizar, pero claro, si vos guardas un modelo con un syncing y tal para lo que es el bot, que quede solamente para el bot."
- Acceptance: Gentle Shell ships as a dependency of the daemon (`gentle-pi`), and the daemon runs it with its own home `~/.gentle-dot/agent` (forced through `--home`, so `~/.gentle-shell/config.json` cannot redirect it) and its own profile store (`GENTLE_PI_CONFIG_HOME=~/.gentle-dot/gentle-ai`). Sign-ins, models, settings, and profiles saved by the assistant stay in the assistant. It works from a clean machine with nothing configured. Reusing an existing Gentle Shell setup is only ever an explicit user choice.
- Checks: integration test of the spawn arguments and environment; a smoke run with a fresh data dir and no `gentle-shell` on PATH.
- - Open decision (user: "Por ahí lo que se podría hacer es perfiles para el bot o reutilizar los que ya tenemos. No sé, eso tenemos que verlo."): whether profiles are the assistant's own or reused from Gentle Shell. T12 waits for it.
+ - Decided (L20): profiles are the assistant's own, with a one-time "Import my Gentle Shell profiles" action when an existing setup is found.
## Tasks
@@ -59,10 +59,11 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
| T6 | S2, S4, S5 | inline | done | `f871c01`, e2e `dc425c0` + `5b466a8`: Playwright 7/7 | Ask cards (select/confirm/input/editor with timeout), toasts, interrupted-run Continue prompt, reconnect with `seq` gap recovery |
| T7 | S1 | delegated writer (parallel units T5/T6 and T7, disjoint surfaces) | done | `81d70c3` cargo test 29/29 (parent re-ran), `tauri build --debug` produced `Gentle Dot.app`; GUI not launched yet (T9) | Tauri 2 app: tray menu, floating Dot window, expand panel, `⌥ Space` shortcut, daemon spawn/attach, position persistence, launch at login |
| 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 | inline | pending | — | 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 |
+| T10 | S9 | delegated writer (context backstop; parallel with the T12 read-only map) | in progress | — | 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 first, then inline | pending | — | Profiles: list, create, edit, switch from the UI |
+| T12 | S11 | explore (delegated, running) then implement | pending | — | 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 |
Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `rustc` is not, so T7 must first install or repair the Rust toolchain (rustup) and asks before installing. Xcode is present.
@@ -88,4 +89,6 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **L17 (2026-10-08, explore evidence):** `/login` is a built-in TUI command that RPC does not execute, and `/gentle:profiles`/`/gentle:models` use `ctx.ui.custom` (undefined in RPC). The daemon can sign in through `ModelRuntime.create({authPath, modelsPath}).login(providerId, type, {prompt, notify, signal}, {getDeviceId})`, exported from `@earendil-works/pi-coding-agent` (verified by the parent at `dist/core/model-runtime.d.ts:56-108`), with `AuthStorage` file locking. New credentials apply on the next request, but the model list needs a restart. Profiles live in `${GENTLE_PI_CONFIG_HOME:-~/.pi/gentle-ai}/profiles.json`; switching them globally exists only inside `extensions/gentle-ai.ts`.
- **L18 (2026-10-08, user):** S12 quote. Decision: the assistant owns its instance (bundled `[email protected]` with pinned `pi-coding-agent`, `pi-ai`, and `pi-tui` 1.0.4). pnpm 11 `allowBuilds`: esbuild and gentle-pi allowed; `@google/genai` and protobufjs denied.
- **L19 (2026-10-08, T13/T11 evidence):** A smoke run with a fresh data dir and `gentle-shell` removed from PATH started the bundled engine in `<data>/agent`: companion setup passed 3/3, the agent was idle, and `auth_list` returned 42 providers (9 with subscription sign-in: Claude Pro/Max, ChatGPT Plus/Pro and subscription, GitHub Copilot, xAI, Kimi, Meta, OpenRouter, Radius) with none configured. Defects found by the e2e and fixed test-first: (1) "Back to accounts" kept the finished flow on screen; (2) a fresh `ModelRuntime` with `refreshOnCreate: false` did not see stored credentials (verified with a direct probe), so it now refreshes on create, still offline. The real API key flow is one `secret` prompt with no network check, and `auth.json` is written with mode 0600. The Tauri capability adds `opener:default` for sign-in pages; cargo build + 29 tests pass. Dockerfile updated for the bundled engine (chown /app to dot; global `pi` pinned to the bundled version). Risk tier: high (credentials, item 2); independent verification in T9. Not verified: a real OAuth subscription sign-in (needs the user's account in a browser).
-- **Next step:** the profiles decision for T12 (asked), then T10, then T9.
+- **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.
+- **Next step:** T12 after the profile-apply map, integrate T10 after its writer, then T9; T14 when authorized.