Skip to content

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

TypeScript

fix(desktop): say the rest was not sent once typing already landed characters

Marcelito1e99eecc86d3
diff --git a/apps/desktop/src-tauri/src/computer/fake.rs b/apps/desktop/src-tauri/src/computer/fake.rs
index 9d96b3c..c5abbd3 100644
--- a/apps/desktop/src-tauri/src/computer/fake.rs
+++ b/apps/desktop/src-tauri/src/computer/fake.rs
@@ -115,8 +115,10 @@ impl Desktop for FakeDesktop {
}
fn post_typed(&self, event: &InputEvent, recipient: &KeyboardRecipient) -> Result<(), String> {
+ // Only posts that went through, so this stays in step with `events`.
+ self.post(event)?;
self.typed_posts.lock().unwrap().push((event.clone(), *recipient));
- self.post(event)
+ Ok(())
}
fn list_apps(&self) -> Result<Vec<AppInfo>, String> {
diff --git a/apps/desktop/src-tauri/src/computer/mcp.rs b/apps/desktop/src-tauri/src/computer/mcp.rs
index 081db31..2b0ba29 100644
--- a/apps/desktop/src-tauri/src/computer/mcp.rs
+++ b/apps/desktop/src-tauri/src/computer/mcp.rs
@@ -71,7 +71,7 @@ risky actions ask the user to confirm, and some apps (Settings, Windows Security
/// The `key` and `open_app` tool descriptions, and the system an `open_app` confirmation names.
#[cfg(not(windows))]
-const KEY_DESCRIPTION: &str = "Press a key combo in the frontmost app, for example `cmd+shift+t`, `return`, or `esc`.";
+const KEY_DESCRIPTION: &str = "Press a key combo in the frontmost app, for example `shift+cmd+t`, `return`, or `esc`.";
#[cfg(windows)]
const KEY_DESCRIPTION: &str =
"Press a key combo in the frontmost app, for example `ctrl+shift+t`, `return`, or `esc` (`cmd` presses Ctrl).";
@@ -573,14 +573,16 @@ impl Helper {
/// The frontmost app and the app owning the focused element (they differ for a
/// non-activating panel), each refused when blocked. The one receiving the keys, for messages.
- fn keyboard_target(&self) -> Result<(String, KeyboardRecipient), String> {
+ /// `sent` says whether part of the input already landed, so a refusal never claims nothing was sent.
+ fn keyboard_target(&self, sent: bool) -> Result<(String, KeyboardRecipient), String> {
let front = self.desktop.frontmost_app().ok_or("Cannot tell which app is in front.")?;
self.refuse_blocked(&front)?;
// The user may have switched apps since the agent last looked: it looks again first.
if *lock(&self.seen_front) != Some(front.pid) {
return Err(format!(
- "{} is in front now, not the app of the latest screenshot, so nothing was sent. Take a screenshot first.",
- front.name
+ "{} is in front now, not the app of the latest screenshot, so {}. Take a screenshot first.",
+ front.name,
+ if sent { "the rest was not sent" } else { "nothing was sent" }
));
}
let focused = self.desktop.focused_app().filter(|focused| focused.pid != front.pid);
@@ -794,7 +796,7 @@ impl Helper {
Ok((format!("{action}: done."), SETTLE_MS))
}
Tool::Type { text: typed } => {
- let (target, recipient) = self.keyboard_target()?;
+ let (target, recipient) = self.keyboard_target(false)?;
let typed = typed.replace("\r\n", "\n").replace('\r', "\n");
let focus = self.desktop.focused_element();
let action = format!("Type {} characters", typed.chars().count());
@@ -803,7 +805,7 @@ impl Helper {
let total = typed.chars().count();
let mut posted = 0;
let mut post_typed = |event, characters| -> Result<(), String> {
- self.keyboard_target().and_then(|(_, current)| {
+ self.keyboard_target(posted > 0).and_then(|(_, current)| {
if current != recipient {
Err("The app receiving the keys changed while typing, so the rest was not sent.".into())
} else {
@@ -837,7 +839,7 @@ impl Helper {
Ok((format!("{action} in {target}: done."), SETTLE_MS))
}
Tool::Key { combo } => {
- let (target, recipient) = self.keyboard_target()?;
+ let (target, recipient) = self.keyboard_target(false)?;
let focus = self.desktop.focused_element();
let act = if combo.is_return() {
Act::Return(focus.as_ref())
@@ -850,7 +852,7 @@ impl Helper {
self.confirm_if_risky(assess(act, intent), &action, &target)?;
// Reading the focus or a confirmation can change the app in front: the key goes only
// to the recipient approved above, as each typed chunk does.
- let (_, current) = self.keyboard_target()?;
+ let (_, current) = self.keyboard_target(false)?;
if current != recipient {
return Err("The app receiving the keys changed before the key was sent, so it was not sent.".into());
}
@@ -1418,8 +1420,7 @@ mod tests {
*rig.desktop.front_after_posts.lock().unwrap() = Some((1, app(400, "com.apple.mail", "Mail")));
let result = rig.call("type", json!({"text": "a".repeat(45)}));
assert!(is_error(&result), "{result}");
- assert!(first_text(&result).contains("Mail is in front now, not the app of the latest screenshot, so nothing was sent. Take a screenshot first."), "{result}");
- assert!(first_text(&result).contains("Typing stopped after 20 of 45 characters."), "{result}");
+ assert_eq!(first_text(&result), "Mail is in front now, not the app of the latest screenshot, so the rest was not sent. Take a screenshot first. Typing stopped after 20 of 45 characters.");
assert_eq!(rig.desktop.events(), vec![InputEvent::Text("a".repeat(20))]);
}
@@ -1430,7 +1431,7 @@ mod tests {
*rig.desktop.front_after_posts.lock().unwrap() = Some((1, app(400, "com.apple.mail", "Mail")));
let result = rig.call("type", json!({"text": "🦀é\nsecond"}));
assert!(is_error(&result), "{result}");
- assert_eq!(first_text(&result), "Mail is in front now, not the app of the latest screenshot, so nothing was sent. Take a screenshot first. Typing stopped after 2 of 9 characters.");
+ assert_eq!(first_text(&result), "Mail is in front now, not the app of the latest screenshot, so the rest was not sent. Take a screenshot first. Typing stopped after 2 of 9 characters.");
assert_eq!(rig.desktop.events(), vec![InputEvent::Text("🦀é".into())]);
}
@@ -1477,6 +1478,10 @@ mod tests {
let result = rig.call("type", json!({"text": "hello"}));
assert!(is_error(&result), "{result}");
assert!(first_text(&result).ends_with("Typing stopped after 0 of 5 characters."), "{result}");
+ if change_front {
+ // Nothing landed yet, so the screenshot guard can still say so.
+ assert_eq!(first_text(&result), "Panel is in front now, not the app of the latest screenshot, so nothing was sent. Take a screenshot first. Typing stopped after 0 of 5 characters.");
+ }
assert!(rig.desktop.events().is_empty());
}
}
@@ -1544,6 +1549,8 @@ mod tests {
assert!(is_error(&result), "{result}");
assert_eq!(first_text(&result), format!("Native input failed. {expected}"));
assert_eq!(rig.desktop.events(), sent);
+ let typed: Vec<InputEvent> = rig.desktop.typed_posts.lock().unwrap().iter().map(|(event, _)| event.clone()).collect();
+ assert_eq!(typed, sent);
}
}
diff --git a/docs/design.md b/docs/design.md
index f56090a..249b6c2 100644
--- a/docs/design.md
+++ b/docs/design.md
@@ -172,7 +172,7 @@ The assistant can see the screen and operate apps through a built-in MCP server
- S24.1 Helper: native Rust inside the Tauri app (`apps/desktop/src-tauri`), never in the daemon or the engine. It serves MCP (JSON-RPC 2.0 over streamable HTTP) on `http://127.0.0.1:<random port>/mcp` and requires `Authorization: Bearer <key>`, a fresh random key per app launch.
- S24.2 Tools: `screenshot`, `click`, `move`, `drag`, `scroll`, `type`, `key`, `open_app`, `list_apps`, `wait`, each with an optional `intent`. Screenshots of the display under the pointer are downscaled to a long edge of 1280 px; coordinates are pixels of the latest screenshot; actions return a fresh one; Gentle Dot's own windows are left out.
- S24.3 Session grant: the first call without a session shows a native dialog ("Allow Gentle Dot to see and control this Mac for 30 minutes?"). A session ends on timeout, Stop, the tray item, or the panic shortcut ⌥⇧Esc, and queued actions are dropped.
-- S24.4 Guards: a fixed blocklist (Gentle Dot itself, System Settings, SecurityAgent, loginwindow, Keychain Access, password managers), 10 actions per second, and a native per-action confirmation for risky actions (send, pay, buy, delete, submit, confirm, transfer, and their Spanish equivalents, by Accessibility role and title, by `return` on a default button, or by the declared `intent`).
+- S24.4 Guards: a fixed blocklist (Gentle Dot itself, System Settings, SecurityAgent, loginwindow, Keychain Access, password managers), 10 actions per second, and a native per-action confirmation for risky actions (send, pay, buy, delete, submit, confirm, transfer, and their Spanish equivalents, by Accessibility role and title, by `return` on a default button, or by the declared `intent`). Keyboard actions go only to the app that was steadily in front during the latest screenshot; their recipient is fixed when they are checked and confirmed and rechecked before each chunk of text, each Return, and the key, and a change stops the input with the count of characters already sent. After a confirmation, the app in front before the dialog must be back in front within 500 ms, or nothing is done.
- S24.5 Permissions: the app reports and requests Accessibility and Screen Recording (`computer_permissions`, `computer_request_permission {kind}`). The Connectors screen shows a built-in "Computer" entry with both statuses, Grant buttons, Check again, the note that debug builds lose the grants on every rebuild (macOS ties them to the code signature), and a note when the current model does not accept images (`ConnectorInfo.noImages`, from the model's `input` in the engine's `get_state` and `set_model` answers).
- S24.6 Visible state: the app emits `computer://state {active, endsAt?, reason?}` (`computer_status` gives the current one). Between calls, the rose shows the "in control" state (`dot-in_control`, mood `control`: accent rim, steady traveling light) and the panel shows "Controlling your Mac · mm:ss left" with Stop (`computer_stop`). During a screenshot or action call (including an entire batch and its final screenshot), the Dot and panel are temporarily hidden and the top edge of the controlled display glows in the rose's neon with a light traveling along it, without text or logo. The click-through glow must be ready and hiding confirmed before capture or input; failed preparation sends no input. Completion and normal error/Stop paths restore prior visibility without changing saved preferences or taking focus. The tray's "Stop computer control" and the panic shortcut remain independent of the hidden panel; shortcut registration and full-screen tray availability must be verified on the target Mac.
- S24.7 Wiring: the app registers its helper itself, over the app channel, right after it spawns the daemon (`computer_register {url, token}`; the daemon accepts only `http://127.0.0.1:<port>/mcp` and a header-safe key). A window cannot register, repoint, or remove it (L61 closed): the panel only calls `computer_endpoint` to know whether a helper exists. The daemon keeps the endpoint in memory, never in `connectors.json`, and renders `computer: {url, headers: {Authorization: "Bearer <key>"}, exposure: "direct"}` into `mcp.json`, then restarts the engine when idle. The guard's policy lists it under `builtin`, so its tools run without in-engine approval cards. It is removed on `computer_unregister` from the app or when the app's channel closes; windows coming and going do not touch it. A daemon without a channel (`pnpm dev`) gets no helper; the app never uses one (§9, Daemon lifecycle). The key is never logged or sent to a window: `connectors` lists only a built-in "Computer" entry (`builtin: true`) that the connector messages cannot change or remove, no saved or imported connector can take the name `computer`, and the import scan never offers the helper.
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index 2610568..90fb5aa 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -80,7 +80,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
- **S24.1 Helper location.** A native helper inside the Tauri app (Rust, `apps/desktop/src-tauri`), never in the daemon or the engine, so macOS attributes Accessibility and Screen Recording to Gentle Dot.app and every rule below lives outside the agent's reach. It serves MCP (JSON-RPC 2.0 over streamable HTTP, `initialize`, `tools/list`, `tools/call`) on `127.0.0.1:<random port>/mcp`, requiring `Authorization: Bearer <token>` with a fresh random token per app launch. Off macOS the helper does not start.
- **S24.2 Tools.** `screenshot {}`, `click {x, y, button?: "left"|"right", count?: 1|2|3}`, `move {x, y}`, `drag {fromX, fromY, toX, toY}`, `scroll {x, y, dx, dy}`, `type {text}`, `key {combo}` (for example `cmd+shift+t`, `return`), `open_app {name}` (name or bundle id), `list_apps {}`, `wait {ms ≤ 5000}`. Every action accepts an optional `intent` string. Coordinates are pixels of the latest screenshot; the helper maps them to logical points with the scale and origin of that screenshot. Screenshots of the display under the pointer are downscaled to a long edge of at most 1280 px (Anthropic: "pre downscale your screenshots before sending them to the API"; Pi resizes above 2000×2000), returned as an MCP `image` block (PNG or JPEG) plus a text block with `{imageWidth, imageHeight, scale, frontApp}`. Actions return a fresh screenshot. Gentle Dot's own windows are excluded from screenshots.
- **S24.3 Session grant.** Any tool call (screenshots included) without an active session shows a native dialog owned by the app: "Allow Gentle Dot to see and control this Mac for 30 minutes?" (Allow / Deny). Deny returns a tool error and starts nothing. A session ends on timeout (30 min), the Stop button, the tray item "Stop computer control", or the panic shortcut **⌥⇧Esc**; ending drops queued actions immediately, and the next call asks again.
- - **S24.4 Guards enforced by the helper.** A fixed blocklist: no action targets Gentle Dot's own windows, System Settings, SecurityAgent, loginwindow, Keychain Access, or known password managers (1Password, Bitwarden, Dashlane, LastPass, Apple Passwords); a target is the frontmost app for keyboard actions and the app owning the window under the point for pointer actions. A rate limit of 10 actions per second. Risky actions need a native per-action confirmation showing the action and target: a click on an Accessibility element whose role is a button or menu item and whose title or description matches send, pay, buy, purchase, delete, remove, submit, confirm, transfer, place order, checkout, or their Spanish equivalents (enviar, pagar, comprar, eliminar, borrar, confirmar, transferir); `return` or `cmd+return` while the focused element is a default button or a send-like field; or any declared `intent` matching those words. The intent only adds checks, never removes them.
+ - **S24.4 Guards enforced by the helper.** A fixed blocklist: no action targets Gentle Dot's own windows, System Settings, SecurityAgent, loginwindow, Keychain Access, or known password managers (1Password, Bitwarden, Dashlane, LastPass, Apple Passwords); a target is the frontmost app for keyboard actions and the app owning the window under the point for pointer actions. Keyboard actions (`type`, `key`) go only to the app that was steadily in front during the latest screenshot (L130, #89); otherwise nothing is sent and the agent is told to take a screenshot first. Their recipient (the front app and, for a non-activating panel, the app owning the focused element) is fixed when the action is checked and confirmed, and rechecked before each chunk of text, each Return, and the key itself; a change stops the input and the error says how many characters were already sent ("the rest was not sent … Typing stopped after N of M characters"), never "nothing was sent" once some landed. After a confirmation, the app that was in front before the dialog must be back in front within 500 ms, or nothing is done. A rate limit of 10 actions per second. Risky actions need a native per-action confirmation showing the action and target: a click on an Accessibility element whose role is a button or menu item and whose title or description matches send, pay, buy, purchase, delete, remove, submit, confirm, transfer, place order, checkout, or their Spanish equivalents (enviar, pagar, comprar, eliminar, borrar, confirmar, transferir); `return` or `cmd+return` while the focused element is a default button or a send-like field; or any declared `intent` matching those words. The intent only adds checks, never removes them.
- **S24.5 Permissions guide.** The app reports Accessibility (`AXIsProcessTrusted`) and Screen Recording (`CGPreflightScreenCaptureAccess`) status, can prompt for them, and deep-links to the System Settings panes. The connectors screen shows a built-in "Computer" entry with both statuses, grant buttons, a note that ad-hoc signed debug builds lose the grant on every rebuild (macOS ties it to the code signature), and a note when the current model does not accept images.
- **S24.6 Visible state.** While a session is active, the rose shows an "in control" state, and the panel shows a banner with the remaining time and a Stop button.
- **S24.8 Speed (L66, user: "anda muy bien pero lento, bastante lento"; "hagamos todas si").** (a) A `batch {steps: [{tool, ...args}], intent?}` tool runs up to 20 steps of the action tools (click, move, drag, scroll, type, key, open_app, wait) in one call and returns one screenshot at the end; every step goes through the same checks as a single call (session, epoch/panic, rate limit, blocklist, risky confirmation, coordinate mapping against the screenshot taken before the batch); the batch stops at the first refused, declined, or failed step and reports which steps ran. The tool descriptions steer the model to batch predictable sequences. (b) The helper gets faster: dependencies that encode and resize images are optimized in debug builds, and the settle wait after an action drops from 300 ms to about 150 ms (open_app keeps its longer wait). (c) Screenshots get lighter (lower JPEG quality) without losing legibility of UI text. (d) Explain and fix the 18 s `type` seen in L66 if it is the helper's doing.
@@ -324,6 +324,7 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **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`).
- **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.
- **L104 (2026-10-09, user):** "sube todo esto al repo y fijate el readme de gentle ai como es para copiar el estilo y hacer el propio para Gentle Dot"; choices "Gentleman-Programming/gentle-dot, público" and "main + feat/gentle-dot, y abro el PR (recomendado)"; then "usa la rosa con glow como banner". TruffleHog over the whole history: no verified secrets (unverified hits are masking-test fixtures). README rewritten in Gentle-AI's layout with an honest Security status; banner and divider rendered from the Dot's own rose strokes and glow (`docs/brand/tools/build-banner.mjs`); MIT LICENSE as in Gentle-AI. Created the public repo github.com/Gentleman-Programming/gentle-dot, `main` at the first commit `5ec596c`, pushed `feat/gentle-dot` (153 commits, 286 files, +57,416), and opened PR #1 (single-pr). Merge is the user's decision.
+- **L130 (2026-10-31):** Review of #159 (egdev6) asked to record the keyboard guards in S24.4: the screenshot binding (#89), the recipient recheck per chunk, Return and key, and the 500 ms restore after a confirmation, all observable on macOS and Linux. It also found that a stop in the middle of `type` said "nothing was sent" next to "Typing stopped after 20 of 45 characters"; the guard now says "the rest was not sent" once characters landed. S24.4 rewritten; docs/design.md S24.4 updated.
- **L129 (2026-10-10):** T23h committed (`35b942b`): server mode `GENTLE_DOT_VPS=1` (image only; refuses without root); daemon root with SETUID, SETGID, CHOWN, FOWNER, DAC_OVERRIDE, KILL and no-new-privileges; engine `dot` (uid 1001), stdio connector servers `dotmcp` (uid 999) via setpriv with `<data>/connector-home` (they cannot see the engine's workspace; documented); data dir root 0711, token/state/connectors/secrets/PIN root 0600; secrets AES-256-GCM per record (id as AAD) under `GENTLE_DOT_SECRETS_KEY`, scrubbed from every child, old file secrets migrated once; web PIN `pin_set`/`pin_command`/`pin_approve` (6-12 digits, scrypt + salt, constant-time, 5 failures -> 15 min persisted lockout; declining needs no PIN); desktop with the app channel unchanged. RED across protocol (4), UI (5), env scrub, spawn uid, new modules, vps-gateway 10/10, migration, CLI -> GREEN; pnpm test 778. Writer deviation: one `git stash` to observe a RED (checked: stash empty, HEAD intact; told not to repeat). The first independent verifier crashed twice (runtime errors) after a lead the parent confirmed by code: **B1** the root daemon ran Pi's ModelRuntime on dot-owned `auth.json`/`models.json` (`resolveConfigValue` runs `!cmd` values; voice refresh calls it on every provider list) and wrote engine files dot could replace with links. Correction `162473c` (class fix): ModelRuntime in `cli.ts --auth-helper` spawned as dot (no capabilities, scrubbed env, Node IPC, plain data back); every other daemon access to engine folders (profiles/settings, mcp.json + shim, `.pi`, `.engram`, history/rotation, uploads + prompt images, legacy mcp-auth.json, isolation) inside a synchronous `engineAccess` bracket (setgroups/setegid/seteuid to dot and back, exit 70 if it cannot restore); root files through `writePrivateFile` (O_EXCL temp, owner check, refused inside a bracket); per-launch hand-over removed; static guard against async fs (seteuid applies to every thread). RED: 2 non-root + 5 root tests in the container against a mktemp copy of `35b942b`; GREEN: pnpm test 790 (13 root-only skipped on macOS), root tests 18/18 in the image, 3 mutations caught. Fresh full verifier (7ff8021..162473c): **no blockers**; S25.8 PASS, desktop S25.1/2/5/6 unchanged; as dot every daemon file EACCES, environ denied, links and hardlinks refused, planted `!cmd` ran only as uid 1001, PIN lockout persisted, PIN never in logs. Advisories fixed in `4d1035e`: the user switch moved inside its try (root tests 18/18 in the image), entrypoint `.engram` hand-over only of root-owned files (`--from=0:0`), capability reasons in compose.yaml/deploy-vps.md corrected, stale token-folder comment. Advisories kept: connector `!cmd` values (user- or root-import-supplied only) resolve as root; root `existsSync` on engine-reported paths (boolean only); upgrade-only chmod in `prepareVpsLayout` follows a link left by an older image; `docker exec` shells inherit the key (documented); dot can ptrace/kill the helper (spoofed data or DoS, no root execution); a future library doing async fs as root is not caught by the guard. Not run: startup hand-over link probe (the safety policy blocks recursive chown commands), a daemon restart for lockout, a live connector `pin_approve`. S25 stage 2 complete (T23a-T23h). **Next step:** PR for T23f-T23h (about 4,700 changed lines; delivery decision pending), then the user's real-Mac round.
- **L128 (2026-10-10):** T23g independent verifier: S25.1 (Linux channel) and S25.7 store PASS, Docker Linux check rerun green (379 tests, clippy, GNOME Keyring cases); two blockers. B1: the new docs said a keyring installed later needs no restart and that the assistant names it, but a keyring missing (or a prompt dismissed) at start leaves `unchecked` for the whole run (T23e fail-closed, by design), so the assistant gets INTEGRITY_UNCHECKED until a restart. B2: the daemon's mapping matched every `the secret store is unavailable: ` answer, changing macOS's locked-keychain wording and dropping the proxy's log line. Correction `920455b`: only the Linux answer (`/^the secret store is unavailable: .*Secret Service/`) is passed on; macOS keeps its wording (regression test); the proxy logs `connector <id> cannot get its secrets: …`; install.md, linux-testing.md, and design.md say to unlock/install the keyring and restart Gentle Dot. RED 2 → GREEN 43/43. Recheck: B1 and B2 closed (probes against a `git archive` copy). Advisories kept: getrlimit not on the POSIX async-signal-safe list (safe in glibc/musl); fcntl fallback never exercised; the 120 s bound is per prompt and the crate never dismisses a timed-out prompt; no-prompter maps to Denied; provider error text reaches the model unbounded (same-user only). T23h design accepted (writer's notice): `GENTLE_DOT_VPS=1` only in the container; daemon root, engine `dot`, stdio connector servers `dotmcp` via `setpriv`; `/app` root-owned read-only; root 0600 token, connectors.json, secrets, PIN; AES-256-GCM per record with `GENTLE_DOT_SECRETS_KEY` scrubbed from env; PIN over the WebSocket, scrypt + salt, 5 failures → 15 min persisted lockout; desktop unchanged. Parent added: `no-new-privileges`, `cap_drop: ALL`, only justified `cap_add`, and a smoke check that the engine and `dotmcp` have no effective or ambient capabilities.
- **L127 (2026-10-10):** T23f done (`e9869d4`): subagents on by default (`GENTLE_DOT_SUBAGENTS=off` opts out); children load the approval guard through a daemon-written, protected shim in `<agentHome>/extensions/` that is inert outside assistant children and imports the guard from the daemon's install path; no `propose_connector` in children; inherited child markers scrubbed. RED 10 → GREEN 21/21; mutations (inert shim, `&&`→`||`) caught; opt-in offline real-engine probe (`GENTLE_DOT_SUBAGENT_PROBE=1`) passes in ~4 s. Risk tier high (item 2). Independent verifier: one blocker B1, an unwritable `extensions` folder made `enforce()` throw (daemon failed to start with subagents on or off; a planted `.pi/mcp.json` stayed; error logged every second). Correction `b6e235d`: any error placing the shim is reported once, subagents start off, the other checks still run; RED 2 tests → GREEN 9/9; recheck: B1 closed (scenarios A, B, C). Advisories kept: A1 shim written even with subagents off (harmless now), A2 planted `<shim>.<pid>.tmp` symlink (same as `mcp.json` at baseline), A3 children in other worktrees (baseline), A4 up-to-1 s unguarded window and a running engine keeps subagents on until its next start (documented), A5 probe uses a launcher fixture, not full gentle-shell. T23g done (`837a42d`): Linux crate 379 tests + clippy in the container; Secret Service put/get/delete against GNOME Keyring; no bus/no provider → Unavailable with the keyring reason; locked keyring → Denied fast; 120 s prompt bound; the app marks other fds close-on-exec in `pre_exec` (`close_range`, fcntl fallback); Node marks fd 3 CLOEXEC at startup so no daemon child holds the channel (strace; package smoke on debian and ubuntu: other holders none); same-user keyring limit documented (install.md, design.md, README, linux-testing step 17). Parent added the daemon side of the writer's finding: an app error starting `the secret store is unavailable: ` becomes `SecretsUnavailableError`, so the assistant names the missing keyring instead of "Could not reach X right now" (RED 1 → GREEN). Checks at `837a42d`: cargo test 385 passed 4 ignored, pnpm test 734 passed 6 skipped, typecheck, tracked lint clean. Not run: the GTK approval dialog on a real Linux desktop (S25.3 on Linux, tester step 17), KWallet, amd64. **Next step:** T23g verifier verdict, then T23h.