Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
Merge local main (c3980cc5a) into GitHub main
rubenluetke10-beep2c871608a0b4
diff --cc .github/workflows/desktop-installers.ymlindex b1ebe54174,c5e2c1ccbe..1c8a8e4844--- a/.github/workflows/desktop-installers.yml+++ b/.github/workflows/desktop-installers.yml@@@ -222,9 -215,9 +222,36 @@@ jobsshell: bashrun: |python -m pip install --upgrade pip- python -m pip install -e ".[desktop,dev]"+ python scripts/pip_install.py -e ".[desktop,desktop-macos,dev]"++ - name: Import the Developer ID certificate into a temporary keychain++ if: env.HAS_APPLE_SIGNING == 'true'++ shell: bash++ env:++ APPLE_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_CERTIFICATE_P12_BASE64 }}++ APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}++ run: |++ set -euo pipefail++ umask 077++ : "${APPLE_CERTIFICATE_P12_BASE64:?Signing requires the publisher certificate}"++ : "${APPLE_CERTIFICATE_PASSWORD:?Signing requires the certificate password}"++ keychain="$RUNNER_TEMP/jarvis-signing.keychain-db"++ certificate="$RUNNER_TEMP/jarvis-signing.p12"++ trap 'rm -f "$certificate"' EXIT++ security list-keychains -d user | sed -e 's/^ *"//' -e 's/" *$//' > "$RUNNER_TEMP/jarvis-original-keychains.txt"++ printf '%s' "$APPLE_CERTIFICATE_P12_BASE64" | /usr/bin/base64 -D > "$certificate"++ password="$(openssl rand -hex 32)"++ echo "::add-mask::$password"++ security create-keychain -p "$password" "$keychain"++ security set-keychain-settings -lut 21600 "$keychain"++ security unlock-keychain -p "$password" "$keychain"++ security import "$certificate" -P "$APPLE_CERTIFICATE_PASSWORD" -A -t cert -f pkcs12 -k "$keychain"++ security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$password" "$keychain"++ keychains=("$keychain")++ while IFS= read -r original; do keychains+=("$original"); done < "$RUNNER_TEMP/jarvis-original-keychains.txt"++ security list-keychains -d user -s "${keychains[@]}"++ - name: Import the Developer ID certificate into a temporary keychainif: env.HAS_APPLE_SIGNING == 'true'shell: bashenv:diff --cc docs/appshots.mdindex 8233967ad4,fb068c70fc..1cb4a03dd8--- a/docs/appshots.md+++ b/docs/appshots.md@@@ -360,7 -394,7 +394,7 @@@ original any-order behaviour| | Windows | macOS | Linux/X11 | Wayland / headless ||---|---|---|---|---|- | Both-Alt shortcut | `GetAsyncKeyState` (AltGr counts as right Alt) | `CGEventSourceKeyState`; whether this read needs the Input Monitoring grant is **unverified** (not measured on a Mac), so the page shows no Input Monitoring row for it | `XQueryKeymap` via python-xlib | Unavailable, reason shown on the page; voice and the button still work where capture works |-| Both-Alt shortcut | `GetAsyncKeyState` (AltGr counts as right Alt) | `CGEventSourceKeyState`, needs the Input Monitoring grant | `XQueryKeymap` via python-xlib | Unavailable, reason shown on the page; voice and the button still work where capture works |++| Both-Alt shortcut | `GetAsyncKeyState` (AltGr counts as right Alt) | `CGEventSourceKeyState`, needs the Input Monitoring grant; a silent check (never a prompt) reports the shortcut unavailable and names the grant when it is missing | `XQueryKeymap` via python-xlib | Unavailable, reason shown on the page; voice and the button still work where capture works || Other shortcuts (incl. the area shortcut) | Shared hotkey backends (`jarvis/trigger/backends`) | same | same | same as above || Area picker and its marking toolbar | PySide6 overlay; a global Esc also cancels until an area is chosen, because Windows may not hand it keyboard focus until the first click | PySide6 overlay | PySide6 overlay | Unavailable, reason shown on the page; the window appshot still works || Burning the markings into the appshot | Pillow, in the main process (`jarvis/appshot/markup.py`) | same | same | same (no display needed) |diff --cc docs/os-parity.mdindex 071fa3a734,6a3f545928..8d789b6bad--- a/docs/os-parity.md+++ b/docs/os-parity.md@@@ -1,157 -1,66 +1,215 @@@# OS Feature Parity — macOS / Linux Gap Register+ ## Screenshots paste anywhere (2026-10-05, T2)++ Appshots taken by shortcut or button and Jarvis X screenshots go on the+ clipboard in several formats at once (`jarvis/platform/clipboard_image.py`):+ Windows `PNG` + `CF_DIB` (transparency laid on white in the bitmap), macOS+ `public.png` + `public.tiff` through `osascript -l JavaScript` with an+ AppleScript PNG-only fallback, Linux `image/png` through `wl-copy` or `xclip`.+ The Linux copy commands (images and text) no longer wait on a pipe that the+ forked clipboard owner keeps open, which used to report every copy as failed+ after the five-second timeout. Verified live on Windows (PNG, DIB and the+ derived bitmap formats read back); macOS and Linux are covered by unit tests+ of the exact commands, not by a real pasteboard or X11/Wayland session.++ ## AppShot colour fidelity: HDR and wide gamut (2026-10-05, T3)++ Screenshots and recordings decide at capture time, per monitor, whether the+ desktop holds more than 8-bit sRGB (`jarvis/platform/display_color.py`).++ - **Windows** reads the active colour mode (SDR / wide colour gamut / HDR on+ Windows 11 24H2+, "advanced colour" on older builds), the bit depth, the SDR+ white level and the monitor's ICC profile. On an HDR or WCG monitor both+ capture paths read the framebuffer at full depth through FP16 Desktop+ Duplication (`jarvis/platform/win_duplication.py`, ctypes only):+ - recordings convert each frame on the GPU (compute shader) to BT.2020 PQ+ P010 and encode 10-bit AV1 or HEVC Main 10, hardware first, then+ SVT-AV1 / x265, tagged BT.2020 / SMPTE ST 2084 / BT.2020-NCL+ (`jarvis/appshot/hdr_recording.py`). The pointer is drawn in; windows+ excluded from capture stay out. Clip exports keep the 10-bit depth and+ the tags (`jarvis/appshot/video_edit.py`).+ - appshots read the rectangle once at full depth and derive the model's+ 8-bit frame from it (SDR white = sRGB white), so redaction boxes cover the+ same pixels in both. The user's copy is a lossless full-resolution PNG+ plus a 16-bit BT.2020 PQ PNG with `cICP`/`cLLi`+ (`jarvis/appshot/master.py`, `jarvis/platform/hdr_image.py`); Save writes+ both (`appshot-….png`, `appshot-…-hdr.png`), the library keeps both.+ - Both PQ outputs place the monitor's SDR white at PQ reference white+ (203 nits, ITU-R BT.2408), the level HDR viewers and players show at+ their screen's SDR white; highlights keep their ratio to it. Encoding+ the absolute SDR white (e.g. 284 nits) made white pages glare.+ - A rotated monitor, a rectangle across two monitors, or any duplication+ failure falls back to the 8-bit path; a still desktop gets one repaint+ nudge before that fallback.+ - **macOS** reports EDR headroom and the screen's colour space from NSScreen;+ captures stay 8-bit (no full-depth ScreenCaptureKit path yet). Appshot+ copies carry the screen's ICC profile, recordings carry sRGB tags.+ - **Linux / headless** has no portable colour API: captures are 8-bit sRGB,+ said so by `DisplayColor.source == "default"`.++ Every SDR recording now states the matrix its encoder used (BT.601 for NVENC+ RGB input and swscale) plus sRGB primaries and transfer. Untagged files had+ been decoded with BT.709 by players, shifting saturated colours by up to 39 of+ 255 levels.++ Verified on Windows 11 with a 10-bit HDR monitor: 4K60 HDR recording+ (AV1 hardware), decoded pixels within 0.0002 scRGB of the framebuffer; HDR+ appshot master through the real Screen Context service; SDR tag correctness+ by decoding colour bars. macOS and Linux paths are covered by unit tests only.++## Native macOS window controls (2026-10-03, T2)++Main, reopened main, and detached windows retain Cocoa's native title bar on+macOS. The red, yellow, and green traffic lights belong to the operating system;+the frontend renders no duplicate caption buttons. Native zoom/fullscreen no+longer goes through the web-caption maximize/restore toggle, whose pywebview+Cocoa restore operation only deminiaturizes. Existing close/background and+detached-window lifecycle handling remains attached to the native window events.+Windows and Linux retain their existing frameless web captions.++Regression coverage checks all three platform configurations, reopened and+detached window creation, the chrome API, and the existing close/background+lifecycle. The macOS desktop lane runs these tests on Intel, Apple Silicon,+and standalone Python alongside its dependency and application-bundle checks.+These automated checks do not replace a physical Mac acceptance pass: verify+red close, yellow minimize/Dock restore, green fullscreen/exit and Option-green+zoom in light and dark appearance, including a detached view and a reopened+main window. This Windows development host cannot qualify those native clicks.++## Current cryptography and SSH channel validation (2026-10-01, T3)++Every architecture now requires cryptography >=50.0.2 and AsyncSSH >=2.24.0.+Intel macOS 13+ and Windows ARM64 use project-built cp311-abi3 wheels with+statically linked OpenSSL, published through an explicit supplemental index.+Apple Silicon, Windows x64 and Linux continue to use upstream PyPI artifacts.+The old Intel/ARM dependency downgrades are removed. Source installers and+frozen browser packaging select the reviewed wheel automatically; raw pip/pipx+users must supply the index documented in the installation guide.++The 24-cell CPython 3.11-3.14 base/full resolution gate checks exact artifact+URLs, identities, architecture tags and hashes. Native CI additionally installs+the hashed base on Intel and Apple Silicon macOS (Python 3.11/3.14) and Windows+ARM64 (Python 3.12/3.14), then exercises X.509 name constraints, bounded issuer+verification, Ed25519, signing-identity PKCS12 and encrypted SSH keys. Native+build jobs check the actual Mach-O deployment floor and Windows PE architecture.+These checks do not imply physical microphone, UI or device verification.++All SSH connections reject zero effective channel packet sizes before AsyncSSH+can enter its send loop, including the compressed Dropbear size-one form.+Real loopback contracts cover rejection and ordinary channel traffic, while+unit tests preserve the password-authentication callback and host-key handling.++## Remote agents retain Jarvis tools (2026-10-01, T3)++Remote coding turns carry their Jarvis MCP tools over a reverse forward on+the existing pinned SSH connection. Both listeners bind to loopback. The+remote credential belongs to one active chat turn; the Control API key stays+on the main computer. Session headers cannot change the owner, and stale+requests cannot acquire the next turn's user context. The existing session+catalog and ToolExecutor still enforce grants, approvals and cancellation.+Routine execution chats retain their owner's computer placement.++The transport uses portable AsyncSSH and asyncio/uvicorn, with no native OS+imports or boot-time initialization. Windows remote launchers and POSIX argv+receive the remote endpoint through their existing launch paths. Claude,+Codex, Antigravity, Grok, OpenCode, Kimi and Cursor have MCP configuration+adapters; other runners fail before starting model work. Project-discovered+configurations are restored after the turn and cannot overlap in one+workspace. Native files and society_shell remain remote; Jarvis's browser,+memory and file-tool workspace remain on the main computer.++Verification: real in-process SSH forwarding tests cover authentication,+session isolation, expired and revoked credentials, connection refusal,+cleanup, configuration adapters, and routine creation/readback through MCP+with a real SQLite store and scheduler. Reopening the store preserves the+calendar schedule. Existing Windows launcher tests cover the launch path.+Native macOS/Linux hosts and all seven real vendor CLIs are not qualified+by those tests; SSH servers must permit TCP forwarding. No browser is+started by this transport.++Live qualification on Windows: a resumed Claude subscription chat on a+connected Windows computer discovered the Jarvis tools, created a temporary+daily routine, read back its persisted ID and next run,+deleted it and verified the empty routine list. The final CLI configuration+uses an explicit HTTP transport type; omitting it hid the server from the+actual Claude tool catalog despite successful protocol-level tests. Browser+actions were not executed in this qualification.++Behavioral acceptance uses a fresh agent and an ordinary request to check+repository issues every day at 09:00, without tool names, an implementation+sequence or earlier chat history. The agent independently saves the routine,+reads it back and confirms the next execution without a clarification round.+The shared execution guidance stays at the front of compact briefings and is+refreshed on resumed CLI turns. Recoverable tool failures can trigger one+continuation even after a successful process exit; unrelated successful calls+do not erase failed task parts. User denials, policy blocks, missing login and+quota failures do not trigger that continuation. This is a receipt check,+not a semantic guarantee that every arbitrary user goal was accomplished.++Protocol references: [AsyncSSH port forwarding](https://asyncssh.readthedocs.io/en/latest/),+[OpenCode MCP](https://opencode.ai/docs/mcp-servers/),+[Kimi MCP configuration](https://github.com/MoonshotAI/kimi-cli/blob/main/README.md),+[Cursor MCP](https://docs.cursor.com/en/cli/mcp).++## Linux CLI discovery and headless credentials (2026-10-01, T2)++The Linux installer exposes `jarvis` and `jarvisctl` through symlinks in+`~/.local/bin`, including headless installs and updates. Existing unrelated+commands are preserved. When that directory is absent from `PATH`, the installer+prints a shell-quoted export command and a profile hint. Windows and macOS skip+this step. Covered by `tests/unit/install/test_cli_links.py` and the installer+flow tests; a complete fresh installation on each OS is not implied.++An absent OS credential store is an expected headless configuration, so its+working file-store fallback logs at INFO. A previously available vault failing+still logs a warning. Credential storage and recovery behavior remain covered+by the headless-keyring, locked-keyring, and backend-recovery tests.++## Remote agents retain Jarvis tools (2026-10-01, T3)++Remote coding turns carry their Jarvis MCP tools over a reverse forward on+the existing pinned SSH connection. Both listeners bind to loopback. The+remote credential belongs to one active chat turn; the Control API key stays+on the main computer. Session headers cannot change the owner, and stale+requests cannot acquire the next turn's user context. The existing session+catalog and ToolExecutor still enforce grants, approvals and cancellation.+Routine execution chats retain their owner's computer placement.++The transport uses portable AsyncSSH and asyncio/uvicorn, with no native OS+imports or boot-time initialization. Windows remote launchers and POSIX argv+receive the remote endpoint through their existing launch paths. Claude,+Codex, Antigravity, Grok, OpenCode, Kimi and Cursor have MCP configuration+adapters; other runners fail before starting model work. Project-discovered+configurations are restored after the turn and cannot overlap in one+workspace. Native files and society_shell remain remote; Jarvis's browser,+memory and file-tool workspace remain on the main computer.++Verification: real in-process SSH forwarding tests cover authentication,+session isolation, expired and revoked credentials, connection refusal,+cleanup, configuration adapters, and routine creation/readback through MCP+with a real SQLite store and scheduler. Reopening the store preserves the+calendar schedule. Existing Windows launcher tests cover the launch path.+Native macOS/Linux hosts and all seven real vendor CLIs are not qualified+by those tests; SSH servers must permit TCP forwarding. No browser is+started by this transport.++Live qualification on Windows: a resumed Claude subscription chat on a+connected Windows computer discovered the Jarvis tools, created a temporary+daily routine, read back its persisted ID and next run,+deleted it and verified the empty routine list. The final CLI configuration+uses an explicit HTTP transport type; omitting it hid the server from the+actual Claude tool catalog despite successful protocol-level tests. Browser+actions were not executed in this qualification.++Protocol references: [AsyncSSH port forwarding](https://asyncssh.readthedocs.io/en/latest/),+[OpenCode MCP](https://opencode.ai/docs/mcp-servers/),+[Kimi MCP configuration](https://github.com/MoonshotAI/kimi-cli/blob/main/README.md),+[Cursor MCP](https://docs.cursor.com/en/cli/mcp).+## Live computer control by the session's own model (2026-10-03, T3)-Voice sessions operate the screen through `computer` (ADR-0038). The same+Voice sessions operate the screen through `computer` (ADR-0039). The samecode runs on every OS through the existing capture and input backends; onlythe readiness check differs. macOS requires Screen Recording to look andAccessibility plus Input Control to act, and Secure Input blocks typing.@@@ -1060,15 -811,10 +1118,15 @@@ implementations, not stubs| Area | Verdict ||---|---|+| Computer-Use / desktop actions (click, type, hotkey, scroll, drag, windows, apps, screenshots, UI trees) | Full per-OS backends (Win32/UIA, Quartz/AX, xdotool/AT-SPI); honest degradation on Wayland/headless/missing TCC grants. macOS: Accessibility is asked when Jarvis first types, clicks or focuses a window, Screen Recording at the first user-started capture; AX reads never prompt, and nothing is asked at launch |+| On-demand Screen Context | One-shot capture is wired into the production brain on Windows, macOS, and Linux/X11; UIA/AX/AT-SPI text is source-filtered, the indicator precedes capture, and Wayland/headless/missing grants refuse honestly (on macOS a flat wallpaper-only frame is refused, never delivered) |+| Appshots (front-window capture on a shortcut, button or request) | Capture, privacy and delivery are OS-neutral (Screen Context engine, `jarvis/appshot`). The two-sided shortcuts (both Alt, both Shift, both Ctrl) read key state per OS: Windows `GetAsyncKeyState`, macOS `CGEventSourceKeyState` (whether this read needs the Input Monitoring grant is UNVERIFIED; the repo contradicts itself and no Mac measured it, so it is not an Input Monitoring row — see `docs/macos-permissions.md`), Linux/X11 `XQueryKeymap`; Wayland/headless report it unavailable on the Appshots page. The flash and the area picker (both Shift keys, drag a rectangle) are PySide6 overlays where one can run; Wayland/headless report the area picker unavailable. Verified live on Windows only; see `docs/appshots.md` |+| Voice / audio (capture, playback, VAD, wake, STT, TTS, realtime) | Clean; a headless host has no local voice stack, so the browser that presses Start holds the call over `/ws/audio` (realtime, or the classic STT → brain → TTS bridge while `[browser_voice].enabled`, the default — issue #399); WASAPI logic is inert-by-data off Windows. macOS microphone: asked at the first dictation, push-to-talk, voice session, wake-word switch or mic self-test, never at launch (2026-10-02 pass) |+| macOS privacy permissions (TCC) | One just-in-time service (`jarvis/platform/permission_service.py`, AP-35, ADR-0038): `check` is silent, `ensure` asks only from a user gesture and only from the installed app (or after a confirmation naming the grantee); Windows and Linux return NOT_REQUIRED before touching anything. The app draws nothing around macOS's dialog; after a denied user-started use it shows one toast with one action. Verified against fake frameworks and runner packaging probes only, not on a physical Mac (`docs/macos-permissions.md` section 7) || Computer-Use / desktop actions (click, type, hotkey, scroll, drag, windows, apps, screenshots, UI trees) | Full per-OS backends (Win32/UIA, Quartz/AX, xdotool/AT-SPI); honest degradation on Wayland/headless/missing TCC grants || On-demand Screen Context | One-shot capture is wired into the production brain on Windows, macOS, and Linux/X11; UIA/AX/AT-SPI text is source-filtered, the indicator precedes capture, and Wayland/headless/missing grants refuse honestly |- | Appshots (front-window capture on a shortcut, button or request) | Capture, privacy and delivery are OS-neutral (Screen Context engine, `jarvis/appshot`). The two-sided shortcuts (both Alt, both Shift, both Ctrl) read key state per OS: Windows `GetAsyncKeyState`, macOS `CGEventSourceKeyState` (Input Monitoring grant), Linux/X11 `XQueryKeymap`; Wayland/headless report it unavailable on the Appshots page. The flash and the area picker (both Shift keys, drag a rectangle, then mark it up with its toolbar) are PySide6 overlays where one can run; the markings are burnt into the capture with Pillow on every OS (`jarvis/appshot/markup.py`); Wayland/headless report the area picker unavailable. The appshot editor is web code and behaves the same everywhere; its Copy writes the PNG natively (`jarvis/platform/clipboard_image.py`): Windows `CF_DIB` + the registered PNG format, macOS `osascript` as `«class PNGf»`, Linux `wl-copy` or `xclip`, and with neither the browser clipboard. Save goes to `~/Downloads` on every OS. Verified live on Windows only; see `docs/appshots.md` |+ | Appshots (front-window capture on a shortcut, button or request) | Capture, privacy and delivery are OS-neutral (Screen Context engine, `jarvis/appshot`). The two-sided shortcuts (both Alt, both Shift, both Ctrl) read key state per OS: Windows `GetAsyncKeyState`, macOS `CGEventSourceKeyState` (Input Monitoring grant), Linux/X11 `XQueryKeymap`; Wayland/headless report it unavailable on the Appshots page. The flash and the area picker (both Shift keys, drag a rectangle, then mark it up with its toolbar) are PySide6 overlays where one can run; the markings are burnt into the capture with Pillow on every OS (`jarvis/appshot/markup.py`); Wayland/headless report the area picker unavailable. The appshot editor is web code and behaves the same everywhere; its Copy, and every shortcut or button appshot, writes the picture natively in several formats (`jarvis/platform/clipboard_image.py`): Windows the registered PNG format + `CF_DIB`, macOS `public.png` + `public.tiff` via `osascript -l JavaScript`, Linux `wl-copy` or `xclip`; the editor falls back to the browser clipboard without them. Save goes to `~/Downloads` on every OS. Verified live on Windows only; see `docs/appshots.md` |-| Voice / audio (capture, playback, VAD, wake, STT, TTS, realtime) | Clean; headless disables voice honestly; WASAPI logic is inert-by-data off Windows |+| Voice / audio (capture, playback, VAD, wake, STT, TTS, realtime) | Clean; a headless host has no local voice stack, so the browser that presses Start holds the call over `/ws/audio` (realtime, or the classic STT → brain → TTS bridge while `[browser_voice].enabled`, the default — issue #399); WASAPI logic is inert-by-data off Windows || Core (launcher, config, keyring, restart, autostart, tray, elevation, paths) | Clean; per-OS autostart (Registry / LaunchAgent / XDG `.desktop`), keyring falls back to a 0600 file on headless hosts || Data / agents (wiki, contacts, telephony, sessions, missions, skills, self-mod, channels, MCP) | Clean; mission workers run on POSIX with a real process-group reaper || Agent society hands (own shell, browser via browser-use, learned skills) | Shell: local subprocess in the agent's workspace on every OS (Git Bash/PowerShell/bash/sh pick as the chat's folder tools), no container by decision. Browser: browser-use lives in a managed venv under the data dir (its pins collide with the app's), installed on demand — `uv`/`venv`, a 3.11–3.13 interpreter preferred, Chromium downloaded once; headless runs need no display, so a headless Linux box runs agents' browsers; the headed login session needs a display (409 without one is the follow-up); attach mode needs a running Chrome with `--remote-debugging-port`. Learning is pure files + the brain, OS-neutral |diff --cc docs/product/extend-and-automate/screen-context.mdindex 23ee630664,f0cd743ddc..3b9ba4809b--- a/docs/product/extend-and-automate/screen-context.md+++ b/docs/product/extend-and-automate/screen-context.md@@@ -105,15 -103,11 +105,15 @@@ changing settings also clears captures| Windows desktop | Supported without a separate screen-recording grant | Supported through Windows UI Automation || macOS desktop | Requires **Screen Recording** permission | Requires **Accessibility** permission; the image can still work without it || Linux with X11 | Supported when the desktop capture dependency is available | Uses an active AT-SPI session |- | Linux with Wayland | Unavailable until a supported desktop-portal capture backend is installed | Does not make global capture available |+ | Linux with Wayland | Unavailable; sign in with an X11 session (for example GNOME on Xorg) | Does not make global capture available || Headless server | Unavailable because there is no addressable display | Not applicable |-Missing support produces a refusal, not a blank screenshot. Reopen the macOS-app if the system requests it after a permission change.+Missing support produces a refusal, not a blank screenshot. On macOS, the+capture you start is the moment macOS asks for Screen Recording; if you decline,+the capture is refused with a message and one click opens the right System+Settings pane. Reopen the app only if the message says macOS needs it after a+permission change. Reading on-screen text never opens a dialog: without+Accessibility the image still works and the text is simply left out.## How It Fits Togetherdiff --cc jarvis/agent_chat/runner_cli.pyindex 2f917ade9f,d7bbb286ba..7070b5caec--- a/jarvis/agent_chat/runner_cli.py+++ b/jarvis/agent_chat/runner_cli.py@@@ -3162,6 -3269,59 +3267,59 @@@ async def _run_cli_once}await _write_stdin(json.dumps(frame, ensure_ascii=False) + "\n")+ async def _claude_question(tool_input: dict[str, Any]) -> dict[str, Any]:+ """Claude Code's own ``AskUserQuestion``, answered on the chat's question card.++ The answers go back the way the CLI reads them: ``updatedInput`` keeps+ the questions and adds ``answers`` keyed by each question's text.+ """+ raw = tool_input.get("questions")+ rows = raw if isinstance(raw, list) else []+ try:+ specs = parse_questions({"questions": rows})- except ValueError as exc:++ except ValueError as exc: # the error text goes back to the model in the deny message+ return {+ "behavior": "deny",+ "message": f"Invalid questions ({exc}). Ask 1-4 questions with 2-4 options each.",+ }+ ask = getattr(handle.control_service, "ask_questions", None)+ if not callable(ask):+ return {+ "behavior": "deny",+ "message": "Nobody can answer here. Decide yourself and state your assumptions.",+ }+ try:+ answers = await ask(session.session_id, specs)+ except (TooManyQuestions, RuntimeError) as exc:+ # The turn already used its cards (or has none to show): the+ # agent's own first options stand, exactly as on an unanswered card.+ log.info("agent chat %s: question not shown (%s)", handle.turn_id, exc)+ answers = [recommended_answer(spec, UNATTENDED) for spec in specs]+ if any(a.source == CANCELLED for a in answers):+ return {"behavior": "deny", "message": "The turn was stopped."}+ picked = {+ str(row.get("question") or ""): a.answer for row, a in zip(rows, answers, strict=True)+ }+ return {"behavior": "allow", "updatedInput": {**tool_input, "answers": picked}}++ async def _leave_plan_mode() -> str:+ """The build mode an approved plan continues in, or "" to leave it to the CLI.++ Coding threads only (``turn_prompts``): the session leaves plan mode+ for the runner's default, so the next message builds too and the+ composer's access pick shows it.+ """+ from jarvis.agent_chat.surface_kits import kit_for++ if not kit_for(session.surface).turn_prompts:+ return ""+ build = default_permission(runner)+ store = getattr(handle.control_service, "store", None)+ if store is not None and build != session.permission_mode:+ store.update_session(session.session_id, permission_mode=build)+ await handle.emit(make_event("session_updated", {"permission_mode": build}))+ return build+async def _feed_stdin() -> None:if proc.stdin is None:returndiff --cc jarvis/agent_chat/service.pyindex 8de865c782,edd4ffe084..bc6c1b883f--- a/jarvis/agent_chat/service.py+++ b/jarvis/agent_chat/service.py@@@ -1716,6 -1522,167 +1733,167 @@@ class AgentChatServiceopen_q.wake.set()questions.pop(qid, None)+ # ------------------------------------------------------------ end-of-turn cards++ #: How far back a finished turn's reply is looked for. The question block+ #: ends the reply, so the newest events always hold it.+ _TURN_PROMPT_TAIL: Final[int] = 2000++ def _turn_prompt_lock(self) -> asyncio.Lock:+ # Lazily: a service built without __init__ (test doubles) still works.+ lock: asyncio.Lock | None = getattr(self, "_prompt_lock", None)+ if lock is None:+ lock = asyncio.Lock()+ self._prompt_lock = lock+ return lock++ async def _open_turn_prompts(self, session_id: str, turn_id: str, runner: str) -> None:+ """After a coding agent's turn: its question card, else its plan card.++ A reply ending in a ``jarvis-ask`` block opens a deferred question+ card; a finished turn while the session is still in plan mode opens a+ plan card. Nothing waits on either — the answer is the next message.+ """+ events = self.store.list_events(session_id, tail=self._TURN_PROMPT_TAIL)+ status, text = turn_prompts.turn_reply(events, turn_id)+ if status != "done":+ return+ specs = turn_prompts.parse_ask_block(text)+ if specs:+ await self._emit(+ session_id,+ make_event(+ "question_required",+ {+ "turn_id": turn_id,+ "question_id": uuid.uuid4().hex,+ "asker": "",+ "questions": [spec.to_payload() for spec in specs],+ "deferred": True,+ },+ ),+ )+ return+ session = self.store.get_session(session_id)+ if session is None or session.permission_mode != "plan" or not text.strip():+ return+ build = default_permission(ladder_key(session.surface, runner))+ if build == "plan":+ return+ await self._emit(+ session_id,+ make_event("plan_ready", {"turn_id": turn_id, "build_mode": build}),+ )++ async def answer_turn_question(+ self,+ session_id: str,+ question_id: str,+ *,+ index: int = 0,+ option_index: int | None = None,+ text: str | None = None,+ ) -> bool:+ """The person's answer to one question of an end-of-turn card.++ False for an unknown, closed or already answered question; raises+ ``ValueError`` for an answer that does not fit. The last answer closes+ the card and sends the answers to the agent as the next message.+ """+ async with self._turn_prompt_lock():+ card = turn_prompts.open_ask(self.store.list_events(session_id), question_id)+ if card is None:+ return False+ try:+ answers = turn_prompts.answer(+ card, index, option_index=option_index, text=text+ )- except IndexError:++ except IndexError: # a stale option index is a no-op click; the caller reports False+ return False+ if any(a is None for a in answers):+ await self._emit(+ session_id,+ make_event(+ "question_progress",+ {+ "turn_id": card.turn_id,+ "question_id": question_id,+ "answers": [a.to_payload() if a else None for a in answers],+ },+ ),+ )+ return True+ final = [a for a in answers if a is not None]+ await self._resolve_turn_question(session_id, card, final)+ await self._send_turn_answer(session_id, card, final)+ return True++ async def skip_turn_question(self, session_id: str, question_id: str) -> bool:+ """The person closed an end-of-turn card: the agent's recommendations stand."""+ async with self._turn_prompt_lock():+ card = turn_prompts.open_ask(self.store.list_events(session_id), question_id)+ if card is None:+ return False+ final = turn_prompts.skipped(card)+ await self._resolve_turn_question(session_id, card, final)+ await self._send_turn_answer(session_id, card, final)+ return True++ async def _resolve_turn_question(+ self, session_id: str, card: turn_prompts.OpenAsk, answers: list[QuestionAnswer]+ ) -> None:+ await self._emit(+ session_id,+ make_event(+ "question_resolved",+ {+ "turn_id": card.turn_id,+ "question_id": card.question_id,+ "answers": [a.to_payload() for a in answers],+ },+ ),+ )++ async def _send_turn_answer(+ self, session_id: str, card: turn_prompts.OpenAsk, answers: list[QuestionAnswer]+ ) -> None:+ await self.send(+ session_id,+ turn_prompts.answers_prompt(card.specs, answers),+ display_text=turn_prompts.answers_display(card.specs, answers),+ )++ async def resolve_turn_plan(self, session_id: str, turn_id: str, decision: str) -> bool:+ """The person's answer to a plan card: ``build`` or ``keep``.++ ``build`` moves the session to the build mode the card offered and+ sends the go-ahead as the next message; ``keep`` only closes the card,+ so the person can tell the agent what to change. False when the card+ is not open (any more).+ """+ if decision not in turn_prompts.PLAN_DECISIONS:+ raise ValueError(f"decision must be one of {turn_prompts.PLAN_DECISIONS}")+ async with self._turn_prompt_lock():+ card = turn_prompts.open_plan(self.store.list_events(session_id), turn_id)+ if card is None:+ return False+ await self._emit(+ session_id,+ make_event("plan_resolved", {"turn_id": turn_id, "decision": decision}),+ )+ if decision == turn_prompts.PLAN_KEEP:+ return True+ session = self.store.get_session(session_id)+ build = card.build_mode+ if session is not None and build and session.permission_mode != build:+ self.store.update_session(session_id, permission_mode=build)+ await self._emit(+ session_id,+ make_event("session_updated", {"permission_mode": build}),+ )+ await self.send(session_id, turn_prompts.PLAN_GO_AHEAD)+ return True+__all__ = ["AgentChatService",diff --cc jarvis/agent_chat/store.pyindex de0ebca44a,1f8024a2f1..544241e05a--- a/jarvis/agent_chat/store.py+++ b/jarvis/agent_chat/store.py@@@ -281,6 -274,26 +281,26 @@@ class AgentChatStore).fetchall()return [self._row_to_session(r) for r in rows]+ def title_is_automatic(self, session: AgentChatSession) -> bool:+ """Whether ``session``'s title is still the one its first message gave it.++ A title the person typed differs from that; a session with no message+ yet has nothing to compare and counts as automatic.+ """+ with self._lock:+ row = self._conn.execute(+ "SELECT payload FROM agent_chat_events WHERE session_id = ? "+ "AND kind IN ('user_message', 'agent_message') ORDER BY seq ASC LIMIT 1",+ (session.session_id,),+ ).fetchone()+ if row is None:+ return True+ try:+ text = str((json.loads(row["payload"]) or {}).get("text") or "")- except (TypeError, ValueError, AttributeError):++ except (TypeError, ValueError, AttributeError): # unreadable: keep auto-titling+ return True+ return session.title == _title_from(text)+def list_sessions_matching(self, prefix: str, suffix: str = "", *, limit: int = 200) -> list[AgentChatSession]:diff --cc jarvis/agent_chat/turn_prompts.pyindex 0000000000,eeee53904c..e382f50e4dmode 000000,100644..100644--- a/jarvis/agent_chat/turn_prompts.py+++ b/jarvis/agent_chat/turn_prompts.py@@@ -1,0 -1,272 +1,272 @@@+ """What a coding agent asks the person at the end of its turn — for every CLI.++ Claude Code (and GLM, which runs its binary) can stop mid-turn and ask: its+ control protocol hands Jarvis ``AskUserQuestion`` and ``ExitPlanMode``, and the+ chat's cards answer them on stdin (``runner_cli``). Every other coding CLI —+ Codex, Antigravity, Grok Build, OpenCode, Kimi, Cursor, DeepSeek Harness — runs+ headless here, with no channel to ask on. Two end-of-turn prompts give all of+ them the same two moments, without any vendor cooperation:++ * **Questions.** The agent is told (:data:`ASK_PROTOCOL`, in front of every+ prompt) to end its reply with one fenced ``jarvis-ask`` block when a decision+ genuinely belongs to the person, and to stop there. When the turn finished,+ the service turns that block into the chat's ordinary question card+ (``question_required`` with ``deferred: true``). Nothing waits on it: the+ answers go back to the agent as the next message, and its vendor session+ resumes with the context it had.+ * **Plan approval.** A turn that finished while the session is in plan mode+ gets a ``plan_ready`` card. *Build* switches the session to the runner's+ build mode and sends the go-ahead as the next message; *Keep planning* just+ closes the card. Claude's own ``ExitPlanMode`` still asks mid-turn; when it+ is approved the session leaves plan mode, so no second card follows.++ Both cards are event-sourced. A card is open while its event has no closing+ event and no later turn started — a reopened chat, or an app restart, answers+ the same card the person sees.+ """++ from __future__ import annotations++ import json+ import re+ from collections.abc import Iterable, Sequence+ from dataclasses import dataclass+ from typing import Any, Final++ from jarvis.agent_chat.questions import (+ PERSON,+ SKIPPED,+ QuestionAnswer,+ QuestionSpec,+ answer_from,+ parse_questions,+ recommended_answer,+ )++ #: The fence language of an end-of-turn question block. The frontend hides+ #: these blocks from the rendered reply (``ASK_FENCE`` in+ #: ``src/components/agentchat/askFence.ts``) — a parity test keeps both equal.+ ASK_FENCE: Final[str] = "jarvis-ask"++ #: In front of every prompt of a CLI that cannot ask mid-turn.+ ASK_PROTOCOL: Final[str] = (+ "QUESTIONS FOR THE PERSON: decide everything you reasonably can yourself. "+ "Only when a decision genuinely belongs to the person (their taste, priorities, "+ "money, accounts, or an irreversible trade-off you cannot infer), end your reply "+ f"with exactly one fenced code block whose language is {ASK_FENCE}, containing "+ 'JSON like {"questions": [{"question": "Which database?", "options": '+ '[{"label": "SQLite", "description": "One file, no server"}, {"label": "Postgres", '+ '"description": "A server to run"}], "recommendation_reason": "Why the first '+ 'option wins"}]}. Ask 1-4 questions, each with 2-4 options, your recommendation '+ "first. Then stop and wait: the person answers in a card and their answers arrive "+ "as the next message. Never ask for permission to do what you were asked.\n\n"+ )++ #: What the agent is told when the person approved its plan.+ PLAN_GO_AHEAD: Final[str] = (+ "The plan is approved. Implement it now, step by step, and report what you changed."+ )++ #: The answers to a plan card.+ PLAN_BUILD: Final[str] = "build"+ PLAN_KEEP: Final[str] = "keep"+ PLAN_DECISIONS: Final[tuple[str, ...]] = (PLAN_BUILD, PLAN_KEEP)++ _FENCE_RE: Final[re.Pattern[str]] = re.compile(+ r"```[ \t]*" + re.escape(ASK_FENCE) + r"[ \t]*\r?\n(?P<body>.*?)\r?\n?```",+ re.DOTALL,+ )+++ def parse_ask_block(text: str) -> tuple[QuestionSpec, ...] | None:+ """The questions of the reply's last ``jarvis-ask`` block, or ``None``.++ A block that is not valid JSON, or whose questions do not validate, is no+ question at all: the reply still reads as text and the person answers it in+ the composer, exactly as before this card existed.+ """+ matches = list(_FENCE_RE.finditer(text or ""))+ if not matches:+ return None+ try:+ payload = json.loads(matches[-1].group("body"))- except ValueError:++ except ValueError: # a malformed fence is ordinary model text, not a question card+ return None+ if isinstance(payload, list):+ payload = {"questions": payload}+ if not isinstance(payload, dict):+ return None+ try:+ return parse_questions(payload)- except ValueError:++ except ValueError: # an invalid question block is shown as plain text instead+ return None+++ def turn_reply(events: Iterable[dict[str, Any]], turn_id: str) -> tuple[str, str]:+ """``(status, text)`` of a finished turn: its ``turn_finished`` status and+ every finished text block it wrote, joined. ``("", ...)`` while unfinished."""+ status = ""+ parts: list[str] = []+ for event in events:+ payload = event.get("payload") or {}+ if payload.get("turn_id") != turn_id:+ continue+ kind = event.get("kind")+ if kind == "assistant_text":+ text = str(payload.get("text") or "")+ if text.strip():+ parts.append(text)+ elif kind == "turn_finished":+ status = str(payload.get("status") or "")+ return status, "\n\n".join(parts)+++ @dataclass(frozen=True, slots=True)+ class OpenAsk:+ """An end-of-turn question card that still waits for the person."""++ question_id: str+ turn_id: str+ specs: tuple[QuestionSpec, ...]+ answers: tuple[QuestionAnswer | None, ...]+++ @dataclass(frozen=True, slots=True)+ class OpenPlan:+ """A plan card that still waits for the person."""++ turn_id: str+ build_mode: str+++ def _answers_from(raw: Any, count: int) -> list[QuestionAnswer | None]:+ rows = raw if isinstance(raw, list) else []+ out: list[QuestionAnswer | None] = []+ for index in range(count):+ row = rows[index] if index < len(rows) else None+ if not isinstance(row, dict):+ out.append(None)+ continue+ option = row.get("option_index")+ out.append(+ QuestionAnswer(+ str(row.get("answer") or ""),+ option if isinstance(option, int) else None,+ str(row.get("source") or PERSON),+ )+ )+ return out+++ def open_ask(events: Sequence[dict[str, Any]], question_id: str) -> OpenAsk | None:+ """The deferred card ``question_id`` if it is still open, else ``None``."""+ found: OpenAsk | None = None+ answers: list[QuestionAnswer | None] = []+ for event in events:+ kind = event.get("kind")+ payload = event.get("payload") or {}+ if found is None:+ if (+ kind == "question_required"+ and payload.get("deferred")+ and payload.get("question_id") == question_id+ ):+ try:+ specs = parse_questions({"questions": payload.get("questions") or []})- except ValueError:++ except ValueError: # a corrupt stored ask is treated as no open question+ return None+ found = OpenAsk(question_id, str(payload.get("turn_id") or ""), specs, ())+ answers = [None] * len(specs)+ continue+ if kind == "turn_started":+ return None # the person moved on; the card closed with it+ if payload.get("question_id") != question_id:+ continue+ if kind == "question_resolved":+ return None+ if kind == "question_progress":+ answers = _answers_from(payload.get("answers"), len(found.specs))+ if found is None:+ return None+ return OpenAsk(found.question_id, found.turn_id, found.specs, tuple(answers))+++ def open_plan(events: Sequence[dict[str, Any]], turn_id: str) -> OpenPlan | None:+ """The plan card of ``turn_id`` if it is still open, else ``None``."""+ found: OpenPlan | None = None+ for event in events:+ kind = event.get("kind")+ payload = event.get("payload") or {}+ if found is None:+ if kind == "plan_ready" and payload.get("turn_id") == turn_id:+ found = OpenPlan(turn_id, str(payload.get("build_mode") or ""))+ continue+ if kind == "turn_started":+ return None+ if kind == "plan_resolved" and payload.get("turn_id") == turn_id:+ return None+ return found+++ def answer(+ card: OpenAsk, index: int, *, option_index: int | None, text: str | None+ ) -> list[QuestionAnswer | None]:+ """The card's answers with question ``index`` answered by the person.++ Raises ``ValueError`` for an answer that does not fit, ``IndexError`` for a+ question that does not exist or was already answered.+ """+ if not 0 <= index < len(card.specs) or card.answers[index] is not None:+ raise IndexError(index)+ answers = list(card.answers)+ answers[index] = answer_from(card.specs[index], option_index=option_index, text=text)+ return answers+++ def skipped(card: OpenAsk) -> list[QuestionAnswer]:+ """Every open question left to the agent's recommendation."""+ return [+ a if a is not None else recommended_answer(spec, SKIPPED)+ for spec, a in zip(card.specs, card.answers, strict=True)+ ]+++ def answers_prompt(specs: Sequence[QuestionSpec], answers: Sequence[QuestionAnswer]) -> str:+ """The next message the agent receives once the card closed."""+ lines = ["Answers to your questions:"]+ for spec, picked in zip(specs, answers, strict=True):+ if picked.source == SKIPPED:+ lines.append(+ f"- {spec.question} -> left to you; go with your recommendation ({picked.answer})."+ )+ else:+ lines.append(f"- {spec.question} -> {picked.answer}")+ lines.append("Continue with these answers.")+ return "\n".join(lines)+++ def answers_display(specs: Sequence[QuestionSpec], answers: Sequence[QuestionAnswer]) -> str:+ """What the timeline shows as the person's message: the picks, in their words."""+ return "\n".join(+ f"{spec.question} — {picked.answer}" for spec, picked in zip(specs, answers, strict=True)+ )+++ __all__ = [+ "ASK_FENCE",+ "ASK_PROTOCOL",+ "PLAN_BUILD",+ "PLAN_DECISIONS",+ "PLAN_GO_AHEAD",+ "PLAN_KEEP",+ "OpenAsk",+ "OpenPlan",+ "answer",+ "answers_display",+ "answers_prompt",+ "open_ask",+ "open_plan",+ "parse_ask_block",+ "skipped",+ "turn_reply",+ ]diff --cc jarvis/agentic_ide/skill_library.pyindex 0000000000,d4534f0961..76d661245emode 000000,100644..100644--- a/jarvis/agentic_ide/skill_library.py+++ b/jarvis/agentic_ide/skill_library.py@@@ -1,0 -1,404 +1,404 @@@+ """The Agentic IDE's skill library — saved Markdown prompts for terminal panes.++ A skill here is a titled piece of Markdown the user keeps at hand: a review+ checklist, a house style, a SKILL.md they collected somewhere. The IDE's+ Skills tab lists them, and dragging one onto a terminal pane pastes its text+ into that pane's prompt (never submitted — the user still says what to do).++ This is deliberately NOT the assistant's skill system (``jarvis.skills``):+ those are capabilities Jarvis itself runs, with lifecycle states and a+ registry. These are inert text the user hands to whichever coding agent they+ choose, so they live in their own small store and never enter a tool set.++ Storage is one JSON sidecar under ``user_data_dir()/data/`` written atomically+ (tempfile + ``os.replace``), the same discipline as the STT dictionary. The+ order of the list is the user's order; new skills join at the top.+ """+ from __future__ import annotations++ import dataclasses+ import json+ import logging+ import os+ import re+ import tempfile+ import uuid+ from dataclasses import dataclass+ from datetime import UTC, datetime+ from pathlib import Path+ from typing import Any++ from jarvis.core.paths import user_data_dir++ log = logging.getLogger(__name__)++ # Abuse guards, not product limits — generous for any real collection.+ MAX_SKILLS = 500+ MAX_TITLE_LEN = 120+ MAX_DESCRIPTION_LEN = 280+ MAX_CONTENT_CHARS = 200_000++ #: The palette slots the UI paints a skill with. Names, not colours: the+ #: frontend maps each onto its own theme tokens so both modes stay legible.+ HUES: tuple[str, ...] = (+ "blue",+ "violet",+ "teal",+ "amber",+ "rose",+ "green",+ "magenta",+ "slate",+ )++ #: Glyph names the UI knows how to draw. Anything else falls back to "auto".+ ICONS: tuple[str, ...] = (+ "auto",+ "doc",+ "plan",+ "code",+ "bug",+ "flask",+ "review",+ "shield",+ "refactor",+ "book",+ "list",+ "git",+ "terminal",+ "palette",+ "data",+ "perf",+ "rocket",+ )++ #: Glyphs an older library stored, mapped onto today's set when it is read.+ _LEGACY_ICONS: dict[str, str] = {"sparkles": "auto", "wand": "refactor", "brain": "plan"}++ _FRONTMATTER_RE = re.compile(r"\A\ufeff?---[ \t]*\r?\n(.*?)\r?\n---[ \t]*(?:\r?\n|\Z)", re.DOTALL)+ _HEADING_RE = re.compile(r"^\s{0,3}#{1,6}\s+(.+?)\s*#*\s*$")+++ def skill_library_path() -> Path:+ """JSON sidecar holding the IDE's skill library."""+ return user_data_dir() / "data" / "ide_skills.json"+++ def _now_iso() -> str:+ return datetime.now(UTC).isoformat(timespec="seconds")+++ def _clean_line(value: str, limit: int) -> str:+ return " ".join(value.split())[:limit].strip()+++ def _frontmatter_field(frontmatter: str, key: str) -> str:+ """One scalar field of a YAML frontmatter block, read without a YAML parser.++ Only ``key: value`` on one line (quotes stripped) is understood — enough for+ the ``name``/``description`` every SKILL.md carries, and nothing here ever+ executes or trusts what it reads.+ """+ match = re.search(rf"^{re.escape(key)}\s*:\s*(.+?)\s*$", frontmatter, re.MULTILINE)+ if not match:+ return ""+ value = match.group(1).strip()+ if len(value) >= 2 and value[0] == value[-1] and value[0] in "\"'":+ value = value[1:-1]+ # A folded block scalar (`description: >-`) carries its text on the next lines.+ if value in {">", ">-", "|", "|-"}:+ rest = frontmatter[match.end():].splitlines()+ folded: list[str] = []+ for line in rest:+ if line.strip() and not line.startswith((" ", "\t")):+ break+ folded.append(line.strip())+ value = " ".join(part for part in folded if part)+ return value+++ def derive_title(content: str, fallback: str = "") -> str:+ """The title a pasted or imported Markdown text suggests for itself.++ Frontmatter ``name`` first (a SKILL.md), then the first heading, then the+ caller's fallback (an imported file's name), then the first line.+ """+ match = _FRONTMATTER_RE.match(content)+ if match:+ name = _frontmatter_field(match.group(1), "name")+ if name:+ return _clean_line(name, MAX_TITLE_LEN)+ body = content[match.end():]+ else:+ body = content+ for line in body.splitlines():+ heading = _HEADING_RE.match(line)+ if heading:+ return _clean_line(heading.group(1), MAX_TITLE_LEN)+ if fallback.strip():+ return _clean_line(fallback, MAX_TITLE_LEN)+ for line in body.splitlines():+ if line.strip():+ return _clean_line(line.lstrip("#>-*` "), MAX_TITLE_LEN)+ return ""+++ def derive_description(content: str) -> str:+ """A one-line summary: frontmatter ``description``, else the first prose line."""+ match = _FRONTMATTER_RE.match(content)+ if match:+ described = _frontmatter_field(match.group(1), "description")+ if described:+ return _clean_line(described, MAX_DESCRIPTION_LEN)+ body = content[match.end():]+ else:+ body = content+ in_fence = False+ for line in body.splitlines():+ stripped = line.strip()+ if stripped.startswith(("```", "~~~")):+ in_fence = not in_fence+ continue+ if in_fence or not stripped or _HEADING_RE.match(line):+ continue+ if stripped.startswith(("|", "---", "<!--")):+ continue+ plain = stripped.lstrip(">-*+ ").replace("**", "").replace("`", "")+ return _clean_line(plain, MAX_DESCRIPTION_LEN)+ return ""+++ @dataclass(frozen=True)+ class LibrarySkill:+ """One saved prompt. ``description`` is derived unless the user set one."""++ id: str+ title: str+ content: str+ description: str = ""+ hue: str = ""+ icon: str = "auto"+ created_at: str = ""+ updated_at: str = ""+ use_count: int = 0+ last_used_at: str | None = None++ def to_dict(self) -> dict[str, Any]:+ return dataclasses.asdict(self)++ @classmethod+ def from_dict(cls, raw: dict[str, Any]) -> LibrarySkill | None:+ try:+ skill_id = str(raw["id"]).strip()+ content = str(raw.get("content", ""))+ title = _clean_line(str(raw.get("title", "")), MAX_TITLE_LEN)+ except (KeyError, TypeError) as exc:+ # A hand-edited or half-migrated entry: skip it rather than lose the list.+ log.warning("IDE skill library: dropping unreadable entry (%s).", exc)+ return None+ if not skill_id or not title:+ return None+ hue = str(raw.get("hue") or "")+ icon = str(raw.get("icon") or "auto")+ icon = _LEGACY_ICONS.get(icon, icon)+ try:+ uses = max(0, int(raw.get("use_count") or 0))- except (TypeError, ValueError):++ except (TypeError, ValueError): # a hand-edited non-number counts as never used+ uses = 0+ last_used = raw.get("last_used_at")+ return cls(+ id=skill_id,+ title=title,+ content=content[:MAX_CONTENT_CHARS],+ description=_clean_line(str(raw.get("description") or ""), MAX_DESCRIPTION_LEN),+ hue=hue if hue in HUES else _hue_for(skill_id),+ icon=icon if icon in ICONS else "auto",+ created_at=str(raw.get("created_at") or ""),+ updated_at=str(raw.get("updated_at") or ""),+ use_count=uses,+ last_used_at=str(last_used) if last_used else None,+ )+++ def _hue_for(seed: str) -> str:+ """A stable palette slot for a skill that never picked one."""+ total = sum(ord(ch) for ch in seed)+ return HUES[total % len(HUES)]+++ def _validated_content(content: str) -> str:+ if not content.strip():+ raise ValueError("A skill needs some Markdown text.")+ if len(content) > MAX_CONTENT_CHARS:+ raise ValueError(f"A skill can hold at most {MAX_CONTENT_CHARS:,} characters.")+ # Windows line endings would paste as doubled newlines into some CLIs.+ return content.replace("\r\n", "\n").replace("\r", "\n")+++ def _validated_title(title: str) -> str:+ cleaned = _clean_line(title, MAX_TITLE_LEN)+ if not cleaned:+ raise ValueError("A skill needs a title.")+ return cleaned+++ def _validated_choice(value: str | None, allowed: tuple[str, ...], field: str) -> str | None:+ if value is None:+ return None+ if value not in allowed:+ raise ValueError(f"Unknown {field} {value!r}.")+ return value+++ class SkillLibrary:+ """Read-modify-write over the sidecar. Callers serialise with their own lock."""++ def __init__(self, path: Path | None = None) -> None:+ self._path = path or skill_library_path()++ def list_all(self) -> list[LibrarySkill]:+ try:+ raw = json.loads(self._path.read_text(encoding="utf-8"))- except FileNotFoundError:++ except FileNotFoundError: # no library file yet means an empty library+ return []+ except (OSError, ValueError) as exc:+ log.warning(+ "IDE skill library at %s is unreadable (%s); starting empty.", self._path, exc+ )+ return []+ entries = raw.get("skills", []) if isinstance(raw, dict) else []+ out: list[LibrarySkill] = []+ seen: set[str] = set()+ for entry in entries if isinstance(entries, list) else []:+ if not isinstance(entry, dict):+ continue+ skill = LibrarySkill.from_dict(entry)+ if skill is None or skill.id in seen:+ continue+ seen.add(skill.id)+ out.append(skill)+ return out++ def get(self, skill_id: str) -> LibrarySkill | None:+ return next((skill for skill in self.list_all() if skill.id == skill_id), None)++ def create(+ self,+ *,+ title: str,+ content: str,+ description: str | None = None,+ hue: str | None = None,+ icon: str | None = None,+ ) -> LibrarySkill:+ skills = self.list_all()+ if len(skills) >= MAX_SKILLS:+ raise ValueError(f"The library is full ({MAX_SKILLS} skills).")+ body = _validated_content(content)+ skill_id = uuid.uuid4().hex[:12]+ now = _now_iso()+ skill = LibrarySkill(+ id=skill_id,+ title=_validated_title(title),+ content=body,+ description=(+ _clean_line(description, MAX_DESCRIPTION_LEN)+ if description+ else derive_description(body)+ ),+ hue=_validated_choice(hue, HUES, "colour") or _hue_for(skill_id),+ icon=_validated_choice(icon, ICONS, "icon") or "auto",+ created_at=now,+ updated_at=now,+ )+ self._write([skill, *skills])+ return skill++ def update(+ self,+ skill_id: str,+ *,+ title: str | None = None,+ content: str | None = None,+ description: str | None = None,+ hue: str | None = None,+ icon: str | None = None,+ ) -> LibrarySkill | None:+ skills = self.list_all()+ for index, skill in enumerate(skills):+ if skill.id != skill_id:+ continue+ body = _validated_content(content) if content is not None else skill.content+ if description is not None:+ summary = _clean_line(description, MAX_DESCRIPTION_LEN)+ summary = summary or derive_description(body)+ elif content is not None:+ summary = derive_description(body)+ else:+ summary = skill.description+ updated = dataclasses.replace(+ skill,+ title=_validated_title(title) if title is not None else skill.title,+ content=body,+ description=summary,+ hue=_validated_choice(hue, HUES, "colour") or skill.hue,+ icon=_validated_choice(icon, ICONS, "icon") or skill.icon,+ updated_at=_now_iso(),+ )+ skills[index] = updated+ self._write(skills)+ return updated+ return None++ def mark_used(self, skill_id: str) -> LibrarySkill | None:+ """Count one paste into a terminal. Does not touch ``updated_at``."""+ skills = self.list_all()+ for index, skill in enumerate(skills):+ if skill.id != skill_id:+ continue+ used = dataclasses.replace(+ skill, use_count=skill.use_count + 1, last_used_at=_now_iso()+ )+ skills[index] = used+ self._write(skills)+ return used+ return None++ def reorder(self, ids: list[str]) -> list[LibrarySkill]:+ """Put the named skills first in the given order; the rest keep theirs."""+ skills = self.list_all()+ by_id = {skill.id: skill for skill in skills}+ ordered: list[LibrarySkill] = []+ for skill_id in ids:+ skill = by_id.pop(skill_id, None)+ if skill is not None:+ ordered.append(skill)+ ordered.extend(skill for skill in skills if skill.id in by_id)+ self._write(ordered)+ return ordered++ def delete(self, skill_id: str) -> bool:+ skills = self.list_all()+ kept = [skill for skill in skills if skill.id != skill_id]+ if len(kept) == len(skills):+ return False+ self._write(kept)+ return True++ def _write(self, skills: list[LibrarySkill]) -> None:+ payload = {"version": 1, "skills": [skill.to_dict() for skill in skills]}+ self._path.parent.mkdir(parents=True, exist_ok=True)+ # Atomic tempfile + os.replace: a crash mid-write never tears the list.+ fd, tmp_name = tempfile.mkstemp(+ dir=str(self._path.parent), prefix=".ide_skills_", suffix=".tmp"+ )+ try:+ with os.fdopen(fd, "w", encoding="utf-8") as fh:+ json.dump(payload, fh, ensure_ascii=False, indent=2)+ os.replace(tmp_name, self._path)+ except Exception:+ try:+ os.unlink(tmp_name)+ except OSError:+ log.debug("IDE skill library: temp file %s already gone.", tmp_name)+ raisediff --cc jarvis/agentic_ide/thread_folders.pyindex 0000000000,7751ac6b99..ea0b8dfe6fmode 000000,100644..100644--- a/jarvis/agentic_ide/thread_folders.py+++ b/jarvis/agentic_ide/thread_folders.py@@@ -1,0 -1,54 +1,54 @@@+ """Which folders a thread's diff panel and terminal drawer may read.++ A thread runs in its project's folder or in a worktree of it, and the IDE+ creates worktrees inside the repository (``<repo>/.worktrees/<branch>``). So+ the folder routes answer for a folder inside a connected project or an open+ workspace, and for nothing else on the machine.+ """++ from __future__ import annotations++ import os+ from pathlib import Path++ from loguru import logger+++ def _resolved(path: str | Path) -> Path | None:+ try:+ return Path(path).expanduser().resolve()- except (OSError, ValueError, RuntimeError):++ except (OSError, ValueError, RuntimeError): # unresolvable: not a known folder+ return None+++ def _inside(child: Path, parent: Path) -> bool:+ a = os.path.normcase(str(child))+ b = os.path.normcase(str(parent))+ return a == b or a.startswith(b.rstrip("\\/") + os.sep)+++ def _known_roots() -> list[Path]:+ roots: list[str] = []+ try:+ from jarvis.agentic_ide.library import list_projects++ roots += [project.path for project in list_projects(include_archived=True) if project.path]+ except Exception as exc: # noqa: BLE001 - an unreadable library leaves the workspaces+ logger.debug("Agentic IDE: project list unreadable for a folder check: {}", exc)+ try:+ from jarvis.agentic_ide.session import get_registry++ roots += [str(session.folder) for session in get_registry().sessions() if session.folder]+ except Exception as exc: # noqa: BLE001 - no registry (a bare test app) leaves the projects+ logger.debug("Agentic IDE: workspace list unreadable for a folder check: {}", exc)+ return [path for path in (_resolved(root) for root in roots) if path is not None]+++ def allowed_thread_folder(folder: str | Path) -> Path | None:+ """``folder`` resolved, when it is an existing directory inside a known root."""+ path = _resolved(folder)+ if path is None or not path.is_absolute() or not path.is_dir():+ return None+ if any(_inside(path, root) for root in _known_roots()):+ return path+ return Nonediff --cc jarvis/appshot/dragfile.pyindex 69c6748d6f,c4b91d423d..d17b75682c--- a/jarvis/appshot/dragfile.py+++ b/jarvis/appshot/dragfile.py@@@ -23,7 -31,29 +31,29 @@@ MAX_AGE_S = 3600.def drag_folder() -> Path:- return Path(tempfile.gettempdir()) / "jarvis-appshots"+ """Where drag files go (not created here): per user on every OS."""+ base = Path(tempfile.gettempdir())+ if os.name == "nt":+ return base / "jarvis-appshots"+ return base / f"jarvis-appshots-{os.getuid()}"+++ def prepare_drag_folder() -> Path:+ """:func:`drag_folder`, created and private; ``OSError`` when it cannot be."""+ folder = drag_folder()+ if os.name == "nt":+ folder.mkdir(parents=True, exist_ok=True)+ return folder+ try:+ folder.mkdir(mode=0o700, parents=True)- except FileExistsError:++ except FileExistsError: # an existing folder is fine; its ownership is checked right below+ pass+ info = os.lstat(folder)+ if not stat.S_ISDIR(info.st_mode) or info.st_uid != os.getuid():+ raise OSError(f"{folder} belongs to someone else; no drag file is written there")+ if info.st_mode & 0o077:+ os.chmod(folder, 0o700)+ return folderdef write_drag_file(png: bytes, *, now: float | None = None) -> Path | None:diff --cc jarvis/appshot/gesture.pyindex 53926d3407,5581d57722..21b47dfeea--- a/jarvis/appshot/gesture.py+++ b/jarvis/appshot/gesture.py@@@ -9,13 -9,10 +9,11 @@@ every 50 ms, no hook, no tap* Windows: ``GetAsyncKeyState`` on the left/right virtual keys (AltGr raises``VK_RMENU`` too, so the Alt gesture works on AltGr layouts).* macOS: ``CGEventSourceKeyState`` on the left/right key codes (Option, Shift,- Control). Whether this read needs a privacy grant (Input Monitoring) is- UNVERIFIED: the repo contradicts itself (``CGEventSourceFlagsState`` is- documented in ``jarvis/trigger/hotkey.py`` as needing none) and neither was- measured on a Mac. It is therefore not treated as an Input Monitoring- feature and never triggers a permission request; if the gesture does nothing- the status text (``jarvis/appshot/hotkey.py``) points to another key- combination.+ Control). Needs the same Input Monitoring grant as every other global+ shortcut; without it the read stays false and nothing fires, so+ :func:`make_probe` reports the shortcut unavailable and names the grant- instead of arming a watcher that can never fire.++ instead of arming a watcher that can never fire. That check is a silent++ read; the gesture itself never triggers a permission request.* Linux/X11: ``XQueryKeymap`` through python-xlib (pynput's own dependency).* Wayland, headless, missing packages: :func:`make_probe` returns ``None``with the reason, and the caller reports the shortcut as unavailable.@@@ -109,6 -106,25 +107,35 @@@ def _x11_probe(family: str) -> Probe |return probe+ def _macos_input_monitoring_missing() -> str:+ """Why macOS would read every key as up, or ``""`` when the grant is live."""+ try:++ from jarvis.platform.permission_service import ( # noqa: PLC0415++ get_permission_service,++ )+ from jarvis.platform.permissions import ( # noqa: PLC0415+ PermissionId,- get_system_permission_port,++ PermissionState,+ )+- if get_system_permission_port().runtime_access_granted(PermissionId.INPUT_MONITORING):++ # A silent read: it never shows a dialog. UNAVAILABLE means the probe++ # could not answer, so the watcher arms and the key read decides.++ state = get_permission_service().check(PermissionId.INPUT_MONITORING)++ if state in (++ PermissionState.GRANTED,++ PermissionState.NOT_REQUIRED,++ PermissionState.UNAVAILABLE,++ ):+ return ""+ except Exception: # noqa: BLE001 - an unanswerable probe arms; the read decides+ log.debug("appshot: Input Monitoring probe failed", exc_info=True)+ return ""+ return (+ "Allow Input Monitoring for Personal Jarvis in System Settings > Privacy & "+ "Security > Input Monitoring, then restart Personal Jarvis."+ )++def make_probe(family: str = "alt") -> tuple[Probe | None, str]:"""The key-state reader for ``family`` on this host, or ``None`` and why not."""from jarvis.platform import detect_platform # noqa: PLC0415diff --cc jarvis/appshot/hotkey.pyindex 4b0730c3c1,eaa548870e..c2f72e0920--- a/jarvis/appshot/hotkey.py+++ b/jarvis/appshot/hotkey.py@@@ -134,10 -119,11 +159,13 @@@ class AppshotShortcutself._loop: asyncio.AbstractEventLoop | None = Noneself._watchers: list[Any] = []self._trigger_task: asyncio.Task[None] | None = None+ self._trigger: Any | None = None+ self._combo_scopes: set[str] = set()self._busy = Falseself._recording_busy = False+ # One press that arrives while a toggle is still running. Dropping it+ # made the next press start a second recording instead of stopping.+ self._pending: dict[str, str] = {}not_started = ShortcutStatus(hotkey="", armed=False, detail="Not started yet.")self._statuses: dict[str, ShortcutStatus] = dict.fromkeys(SCOPE_KEYS, not_started)self._subscribed = False@@@ -207,11 -179,9 +236,13 @@@self._statuses[scope] = self._check_combo(hotkey)if self._statuses[scope].armed:combos[scope] = hotkey+ self._statuses[scope] = ShortcutStatus(+ hotkey, False, "The global shortcut listener is starting.",+ )+ if hotkey:+ claimed.append(hotkey)if combos:+ self._combo_scopes = set(combos)self._trigger_task = asyncio.get_running_loop().create_task(self._run_combos(combos), name="appshot-hotkey")diff --cc jarvis/appshot/region.pyindex f7d80379e3,db4123e1fe..3c9df1e414--- a/jarvis/appshot/region.py+++ b/jarvis/appshot/region.py@@@ -423,29 -395,10 +396,29 @@@ async def _escape_cancels(proc: subproclog.debug("appshot: global Escape for the area picker unavailable", exc_info=True)+def preview_capture_allowed() -> bool:+ """A picker helper may read its grant silently, but must never request one."""+ from jarvis.platform.screen_access import screen_recording_state, state_allows_capture++ return state_allows_capture(screen_recording_state(deep=False))+++def grab_preview(screen: Any) -> Any | None:+ """Read a preview only with this helper's grant; no Qt import or prompt."""+ try:+ if not preview_capture_allowed():+ return None+ pixmap = screen.grabWindow(0)+ return None if pixmap.isNull() or pixmap.width() <= 0 else pixmap+ except Exception: # noqa: BLE001 - the picker can dim the live desktop instead+ log.debug("appshot: preview unavailable; using a live overlay", exc_info=True)+ return None++async def pick_region(- *, timeout_s: float = PICK_TIMEOUT_S, language: str = "en"+ *, timeout_s: float = PICK_TIMEOUT_S, language: str = "en", trace_id: UUID | None = None,) -> Selection | None:- """Let the user drag a rectangle. ``None`` = cancelled or timed out.+ """Let the user drag a rectangle and mark it up. ``None`` = cancelled or timed out.``language`` is the toolbar's tooltip language (``[ui].language``).Raises :class:`RegionUnavailable` when no picker can run on this host.diff --cc jarvis/appshot/retention.pyindex 0000000000,2090fe4444..56028398a7mode 000000,100644..100644--- a/jarvis/appshot/retention.py+++ b/jarvis/appshot/retention.py@@@ -1,0 -1,84 +1,84 @@@+ """Delete old captures automatically — ``[appshot].keep_newest``.++ The gallery on the Appshots page holds two kinds of capture: screenshots (the+ library, :mod:`jarvis.appshot.library`) and screen recordings+ (:func:`jarvis.appshot.recording.recording_dir`). With ``keep_newest`` set to+ ``N > 0`` only the newest ``N`` screenshots AND the newest ``N`` recordings+ stay; older ones are deleted. ``0`` keeps everything (the library's own+ :data:`~jarvis.appshot.library.MAX_ENTRIES` cap still applies to screenshots).++ It runs after a new screenshot or recording was kept and right after the+ setting changes. Every function here never raises: a capture that could not+ be deleted stays and goes the next time.++ Nothing here is imported at boot (AP-26).+ """++ from __future__ import annotations++ import logging+ from typing import Any++ log = logging.getLogger(__name__)+++ def keep_newest(config: Any) -> int:+ """``[appshot].keep_newest`` as a non-negative int; ``0`` = keep everything."""+ value = getattr(getattr(config, "appshot", None), "keep_newest", 0)+ try:+ return max(0, int(value))- except (TypeError, ValueError):++ except (TypeError, ValueError): # a hand-edited non-number falls back to keeping everything+ return 0+++ def prune_recordings(keep: int) -> int:+ """Delete every finished recording but the newest ``keep``. Returns the count."""+ if keep <= 0:+ return 0+ from jarvis.appshot import recording # noqa: PLC0415++ # Only finished recordings with a valid id: a recording still being+ # written is a ``.partial`` file, and foreign files in the folder stay.+ dated = []+ for path in recording.recording_dir().glob("*.mp4"):+ if recording.recording_file(path.stem) is None:+ continue+ try:+ dated.append((path.stat().st_mtime, path))+ except OSError:+ continue # Gone while listing: nothing left to delete.+ dated.sort(reverse=True)+ removed = 0+ for _mtime, path in dated[keep:]:+ try:+ path.unlink()+ removed += 1+ except FileNotFoundError:+ continue # Deleted in the meantime — the goal is reached.+ except OSError:+ # Open in a player, for instance; the next trim tries again.+ log.warning("appshot: could not delete an old recording", exc_info=True)+ return removed+++ def apply(keep: int) -> int:+ """Trim screenshots and recordings to the newest ``keep`` each. Never raises."""+ if keep <= 0:+ return 0+ removed = 0+ try:+ from jarvis.appshot import library # noqa: PLC0415++ removed += library.prune(keep)+ except Exception: # noqa: BLE001 - a full gallery is no reason to fail a capture+ log.warning("appshot: could not trim old screenshots", exc_info=True)+ try:+ removed += prune_recordings(keep)+ except Exception: # noqa: BLE001 - same: the next capture tries again+ log.warning("appshot: could not trim old recordings", exc_info=True)+ if removed:+ log.info("appshot: deleted %d old capture(s), keeping the newest %d", removed, keep)+ return removed+++ __all__ = ["apply", "keep_newest", "prune_recordings"]diff --cc jarvis/appshot/service.pyindex 036e9d75d7,d1dad2cca3..fabff22f14--- a/jarvis/appshot/service.py+++ b/jarvis/appshot/service.py@@@ -109,9 -111,15 +111,18 @@@ async def take_appshotmessage="Appshots are switched off. Turn them on under Settings > Appshots.",)service = get_service(bus=bus)+ capture_trace_id = trace_id or uuid.uuid4()if scope == "region":- # Refuse BEFORE the screens freeze: without the grant the frozen- # frame is wallpaper only (macOS) and the refusal would come after- # the user had marked up a fake screen.++ # Refuse BEFORE the screens freeze when asking cannot help (a++ # Wayland portal, say): the frozen frame would be unusable and the++ # refusal would come only after the user had marked up a fake++ # screen. A missing Screen Recording grant is not refused here: the++ # picker asks macOS for it just in time before it starts.+ check = getattr(service, "capture_permission_issue", None)+ issue = await check() if check is not None else None- if issue is not None:++ if issue is not None and issue[0] != "capture_permission":+ return AppshotResult(status="refused", reason_code=issue[0], message=issue[1])- picked = await _pick_area(service, _language(config))+ picked = await _pick_area(service, _language(config), trace_id=capture_trace_id)if isinstance(picked, AppshotResult):return pickedbbox, selection = picked@@@ -123,15 -131,17 +134,17 @@@try:outcome = await service.capture(verdict=IntentVerdict(intent=VisualIntent.SCREEN, evidence=("appshot-region",)),- trace_id=trace_id or uuid.uuid4(),+ trace_id=capture_trace_id,region=bbox,+ master=True,)finally:shutter_markup.reset(token)else:outcome = await service.capture(verdict=IntentVerdict(intent=VisualIntent.WINDOW, evidence=("appshot",)),- trace_id=trace_id or uuid.uuid4(),+ trace_id=capture_trace_id,+ master=True,)if outcome.status != "captured" or outcome.context is None:return AppshotResult(diff --cc jarvis/claude_auth.pyindex 8434fe850d,847a4374a9..284457679a--- a/jarvis/claude_auth.py+++ b/jarvis/claude_auth.py@@@ -352,6 -354,41 +354,41 @@@ def claude_cli_supports_safe_mode(argv_return supported+ def claude_cli_supports_thinking_display(argv_prefix: Sequence[str]) -> bool:+ """Capability-probe ``--thinking-display`` (summaries of the model's thinking).++ A print-mode stream leaves thinking blocks empty unless the CLI is asked+ for summaries, so a chat shows no reasoning at all. The flag is hidden+ from ``--help``; the probe passes it an invalid value beside+ ``--version``. A CLI that knows the option rejects the value and names+ it; an older one ignores it and prints its version. Cached per prefix.+ """+ key = tuple(argv_prefix)+ if key in _THINKING_DISPLAY_CACHE:+ return _THINKING_DISPLAY_CACHE[key]+ try:+ proc = subprocess.run(+ [*key, "--thinking-display", "probe", "--version"],+ capture_output=True,+ encoding="utf-8",+ errors="replace",+ timeout=4.0,+ text=True,+ creationflags=NO_WINDOW_CREATIONFLAGS,+ )+ output = f"{proc.stdout or ''}\n{proc.stderr or ''}"+ supported = proc.returncode != 0 and "--thinking-display" in output- except (OSError, subprocess.SubprocessError):++ except (OSError, subprocess.SubprocessError): # unprobeable CLI: assume no flag+ supported = False+ _THINKING_DISPLAY_CACHE[key] = supported+ return supported+++ def claude_cli_thinking_display_known(argv_prefix: Sequence[str]) -> bool:+ """The cached probe result only — never spawns, so it is safe on the event loop."""+ return _THINKING_DISPLAY_CACHE.get(tuple(argv_prefix), False)++def claude_native_auth_env(env: Mapping[str, str]) -> dict[str, str]:"""Expose the user's real Claude auth store to a safe-mode subprocess.diff --cc jarvis/live/tools.pyindex fab01a4e9d,1683cb62a6..79546f1343--- a/jarvis/live/tools.py+++ b/jarvis/live/tools.py@@@ -172,10 -172,12 +172,14 @@@ class LiveTools["approval_id"],),]+ # The screen is operated in many short rounds (ADR-0039): declare the+ # computer tool under its own name instead of behind discover/call_tool.- computer = next((d for d in self.catalog() if d.name == _DIRECT_TOOL), None)- if computer is not None:+ # Keep capture available even with a deferred catalog. Otherwise a live+ # model may reuse an old image or choose computer instead of the appshot+ # path that owns privacy filtering, the shutter effect and the receipt.+ for descriptor in self.catalog():+ if descriptor.name not in _DIRECT_TOOLS:+ continuedefinitions.append({"type": "function",diff --cc jarvis/platform/display_color.pyindex 0000000000,7d3e6564d0..4af8f9ab31mode 000000,100644..100644--- a/jarvis/platform/display_color.py+++ b/jarvis/platform/display_color.py@@@ -1,0 -1,391 +1,391 @@@+ """What a monitor really shows: plain SDR, a wide colour gamut, or HDR.++ :func:`display_color` answers per monitor, at capture time, because the mode can+ change any second (Windows: Win+Alt+B, macOS: an HDR video starting). Captures+ use the answer to decide whether they may stay 8-bit SDR or must read the+ framebuffer at full depth, and which colour tags the saved file carries.++ Per platform:++ * **Windows** — the display configuration API reports the active colour mode+ (SDR / WCG / HDR, Windows 11 24H2+; older builds report "advanced colour"+ on or off), the bit depth and the SDR white level. The monitor's ICC+ profile comes from GDI.+ * **macOS** — NSScreen reports extended dynamic range headroom and the+ screen's colour space (as ICC data).+ * **Linux** — no portable API reports either; the answer is plain SDR with no+ profile, said honestly via ``source``.++ Never raises: anything unknown is SDR, which is what every capture path+ already handles.+ """++ from __future__ import annotations++ import logging+ import struct+ import sys+ from dataclasses import dataclass+ from typing import Literal++ log = logging.getLogger(__name__)++ Mode = Literal["sdr", "wcg", "hdr"]+ Gamut = Literal["srgb", "p3", "bt2020"]++ #: scRGB 1.0 is 80 nits; Windows' default SDR white in HDR mode is 200-240.+ SCRGB_NITS = 80.0+ #: Windows GDI monitor names look like ``\\.\DISPLAY1``.+ _GDI_PREFIX = "\\\\.\\"+++ @dataclass(frozen=True, slots=True)+ class DisplayColor:+ mode: Mode = "sdr"+ bits_per_channel: int = 8+ #: Brightness of SDR white while the display runs HDR (Windows "SDR content+ #: brightness"). Plain SDR white is scRGB 1.0 = 80 nits by definition.+ sdr_white_nits: float = SCRGB_NITS+ #: The monitor's ICC profile, when the OS has one (SDR colour management).+ icc_profile: bytes | None = None+ #: Primaries of that profile, rounded to the nearest standard gamut.+ gamut: Gamut = "srgb"+ #: Where the answer came from — "default" means nothing could be asked.+ source: str = "default"++ @property+ def extended(self) -> bool:+ """True when the desktop holds more than 8-bit sRGB can carry."""+ return self.mode != "sdr"+++ SDR = DisplayColor()+++ def display_color(+ device_name: str | None = None, *, point: tuple[int, int] | None = None+ ) -> DisplayColor:+ """The colour state of one monitor, asked at capture time.++ ``device_name`` is the OS name of the monitor: the GDI name on Windows+ (``DISPLAY1`` behind the ``\\\\.\\`` prefix, what DXGI reports), the+ screen's localized name on macOS (Qt's ``QScreen.name()``). On Windows+ ``point`` — any physical desktop pixel on that monitor — finds it instead;+ Qt reports a friendly name there that no colour API knows. Neither means+ the primary monitor.+ """+ try:+ if sys.platform == "win32":+ if not (device_name or "").startswith(_GDI_PREFIX):+ device_name = device_at(point) if point is not None else None+ return _windows(device_name)+ if sys.platform == "darwin":+ return _macos(device_name)+ except Exception: # noqa: BLE001 - detection is advisory; SDR is always safe+ log.debug("display colour detection failed", exc_info=True)+ return SDR+++ # ---------------------------------------------------------------------------+ # ICC profile primaries+ # ---------------------------------------------------------------------------+++ def icc_gamut(profile: bytes | None) -> Gamut:+ """The standard gamut nearest to an ICC profile's red/green/blue colorants.++ Compares the colorant triangle's area in xy with sRGB's: Display P3 is+ about 1.36x sRGB, BT.2020 about 1.9x. A profile without colorant tags+ (LUT-based) counts as sRGB.+ """+ if not profile or len(profile) < 132:+ return "srgb"+ try:+ (count,) = struct.unpack_from(">I", profile, 128)+ tags: dict[bytes, tuple[float, float]] = {}+ for i in range(min(count, 200)):+ sig, offset, size = struct.unpack_from(">4sII", profile, 132 + 12 * i)+ if sig in (b"rXYZ", b"gXYZ", b"bXYZ") and size >= 20:+ x, y, z = (v / 65536.0 for v in struct.unpack_from(">iii", profile, offset + 8))+ total = x + y + z+ if total > 0:+ tags[sig] = (x / total, y / total)+ if len(tags) != 3:+ return "srgb"+ area = _triangle_area(tags[b"rXYZ"], tags[b"gXYZ"], tags[b"bXYZ"])- except (struct.error, ValueError):++ except (struct.error, ValueError): # an unparsable ICC profile is treated as plain sRGB+ return "srgb"+ # sRGB's colorants adapted to the profile white D50.+ srgb = _triangle_area((0.6484, 0.3309), (0.3212, 0.5978), (0.1559, 0.0660))+ ratio = area / srgb if srgb else 1.0+ if ratio >= 1.6:+ return "bt2020"+ if ratio >= 1.18:+ return "p3"+ return "srgb"+++ def _triangle_area(a: tuple[float, float], b: tuple[float, float], c: tuple[float, float]) -> float:+ return abs((b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1])) / 2.0+++ # ---------------------------------------------------------------------------+ # Windows+ # ---------------------------------------------------------------------------++ _QDC_ONLY_ACTIVE_PATHS = 2+ _GET_SOURCE_NAME = 1+ _GET_ADVANCED_COLOR_INFO = 9+ _GET_SDR_WHITE_LEVEL = 11+ _GET_ADVANCED_COLOR_INFO_2 = 15+++ def _windows(device_name: str | None) -> DisplayColor:+ import ctypes # noqa: PLC0415+ from ctypes import wintypes # noqa: PLC0415++ user32 = ctypes.WinDLL("user32")++ class LUID(ctypes.Structure):+ _fields_ = [("low", wintypes.DWORD), ("high", wintypes.LONG)]++ class Rational(ctypes.Structure):+ _fields_ = [("num", ctypes.c_uint32), ("den", ctypes.c_uint32)]++ class PathSource(ctypes.Structure):+ _fields_ = [+ ("adapter", LUID), ("id", ctypes.c_uint32),+ ("mode_index", ctypes.c_uint32), ("flags", ctypes.c_uint32),+ ]++ class PathTarget(ctypes.Structure):+ _fields_ = [+ ("adapter", LUID), ("id", ctypes.c_uint32), ("mode_index", ctypes.c_uint32),+ ("technology", ctypes.c_uint32), ("rotation", ctypes.c_uint32),+ ("scaling", ctypes.c_uint32), ("refresh", Rational),+ ("scanline", ctypes.c_uint32), ("available", wintypes.BOOL),+ ("flags", ctypes.c_uint32),+ ]++ class DisplayPath(ctypes.Structure):+ _fields_ = [("source", PathSource), ("target", PathTarget), ("flags", ctypes.c_uint32)]++ class ModeInfo(ctypes.Structure):+ _fields_ = [+ ("kind", ctypes.c_uint32), ("id", ctypes.c_uint32),+ ("adapter", LUID), ("info", ctypes.c_byte * 48),+ ]++ class Header(ctypes.Structure):+ _fields_ = [+ ("kind", ctypes.c_uint32), ("size", ctypes.c_uint32),+ ("adapter", LUID), ("id", ctypes.c_uint32),+ ]++ class SourceName(ctypes.Structure):+ _fields_ = [("header", Header), ("name", wintypes.WCHAR * 32)]++ class AdvancedColor(ctypes.Structure):+ _fields_ = [+ ("header", Header), ("flags", ctypes.c_uint32),+ ("encoding", ctypes.c_uint32), ("bits", ctypes.c_uint32),+ ]++ class AdvancedColor2(ctypes.Structure):+ _fields_ = [+ ("header", Header), ("flags", ctypes.c_uint32), ("encoding", ctypes.c_uint32),+ ("bits", ctypes.c_uint32), ("mode", ctypes.c_uint32),+ ]++ class WhiteLevel(ctypes.Structure):+ _fields_ = [("header", Header), ("level", ctypes.c_ulong)]++ def ask(info, kind: int, adapter, target_id: int) -> bool:+ info.header.kind = kind+ info.header.size = ctypes.sizeof(info)+ info.header.adapter = adapter+ info.header.id = target_id+ return user32.DisplayConfigGetDeviceInfo(ctypes.byref(info)) == 0++ path_count, mode_count = ctypes.c_uint32(), ctypes.c_uint32()+ if user32.GetDisplayConfigBufferSizes(+ _QDC_ONLY_ACTIVE_PATHS, ctypes.byref(path_count), ctypes.byref(mode_count)+ ):+ return SDR+ paths = (DisplayPath * max(1, path_count.value))()+ modes = (ModeInfo * max(1, mode_count.value))()+ if user32.QueryDisplayConfig(+ _QDC_ONLY_ACTIVE_PATHS, ctypes.byref(path_count), paths,+ ctypes.byref(mode_count), modes, None,+ ):+ return SDR+ wanted = (device_name or _primary_device_name()).casefold()+ for path in paths[: path_count.value]:+ source = SourceName()+ if not ask(source, _GET_SOURCE_NAME, path.source.adapter, path.source.id):+ continue+ if source.name.casefold() != wanted:+ continue+ adapter, target = path.target.adapter, path.target.id+ mode: Mode = "sdr"+ bits = 8+ info2 = AdvancedColor2()+ if ask(info2, _GET_ADVANCED_COLOR_INFO_2, adapter, target):+ mode = {1: "wcg", 2: "hdr"}.get(info2.mode, "sdr")+ bits = int(info2.bits) or 8+ else: # before Windows 11 24H2: advanced colour on means HDR+ info = AdvancedColor()+ if ask(info, _GET_ADVANCED_COLOR_INFO, adapter, target):+ enabled = bool(info.flags & 0b10)+ wide = bool(info.flags & 0b100)+ mode = "hdr" if enabled else ("wcg" if wide else "sdr")+ bits = int(info.bits) or 8+ white = SCRGB_NITS+ level = WhiteLevel()+ if mode != "sdr" and ask(level, _GET_SDR_WHITE_LEVEL, adapter, target) and level.level:+ white = level.level * SCRGB_NITS / 1000.0+ profile = _windows_icc(source.name)+ return DisplayColor(+ mode=mode,+ bits_per_channel=bits,+ sdr_white_nits=white,+ icc_profile=profile,+ gamut=icc_gamut(profile),+ source="windows-displayconfig",+ )+ return SDR+++ def device_at(point: tuple[int, int] | None) -> str | None:+ """Windows: the GDI name of the monitor holding physical ``point``."""+ if sys.platform != "win32":+ return None+ try:+ return _monitor_device(point or (0, 0))+ except Exception: # noqa: BLE001 - advisory, like the rest of this module+ log.debug("monitor lookup failed", exc_info=True)+ return None+++ def device_of_window(hwnd: int | None) -> str | None:+ """Windows: the GDI name of the monitor showing most of window ``hwnd``."""+ if sys.platform != "win32" or not hwnd:+ return None+ try:+ import ctypes # noqa: PLC0415+ from ctypes import wintypes # noqa: PLC0415++ user32 = ctypes.WinDLL("user32")+ user32.MonitorFromWindow.restype = wintypes.HMONITOR+ user32.MonitorFromWindow.argtypes = [wintypes.HWND, wintypes.DWORD]+ return _monitor_name(user32.MonitorFromWindow(hwnd, 2)) # MONITOR_DEFAULTTONEAREST+ except Exception: # noqa: BLE001 - advisory, like the rest of this module+ log.debug("monitor lookup by window failed", exc_info=True)+ return None+++ def _primary_device_name() -> str:+ return _monitor_device((0, 0))+++ def _monitor_device(point: tuple[int, int]) -> str:+ import ctypes # noqa: PLC0415+ from ctypes import wintypes # noqa: PLC0415++ user32 = ctypes.WinDLL("user32")+ user32.MonitorFromPoint.restype = wintypes.HMONITOR+ user32.MonitorFromPoint.argtypes = [wintypes.POINT, wintypes.DWORD]+ handle = user32.MonitorFromPoint(+ wintypes.POINT(int(point[0]), int(point[1])), 2+ ) # MONITOR_DEFAULTTONEAREST+ return _monitor_name(handle)+++ def _monitor_name(handle: int) -> str:+ import ctypes # noqa: PLC0415+ from ctypes import wintypes # noqa: PLC0415++ class MonitorInfo(ctypes.Structure):+ _fields_ = [+ ("size", wintypes.DWORD), ("monitor", wintypes.RECT), ("work", wintypes.RECT),+ ("flags", wintypes.DWORD), ("device", wintypes.WCHAR * 32),+ ]++ user32 = ctypes.WinDLL("user32")+ info = MonitorInfo()+ info.size = ctypes.sizeof(info)+ user32.GetMonitorInfoW.argtypes = [wintypes.HMONITOR, ctypes.POINTER(MonitorInfo)]+ if not user32.GetMonitorInfoW(handle, ctypes.byref(info)):+ return r"\\.\DISPLAY1"+ return info.device+++ def _windows_icc(device_name: str) -> bytes | None:+ """The ICC profile Windows colour-manages this monitor with, if any."""+ import ctypes # noqa: PLC0415+ from ctypes import wintypes # noqa: PLC0415+ from pathlib import Path # noqa: PLC0415++ gdi32 = ctypes.WinDLL("gdi32")+ gdi32.CreateDCW.restype = wintypes.HDC+ gdi32.CreateDCW.argtypes = [+ wintypes.LPCWSTR, wintypes.LPCWSTR, wintypes.LPCWSTR, ctypes.c_void_p+ ]+ gdi32.GetICMProfileW.argtypes = [wintypes.HDC, ctypes.POINTER(wintypes.DWORD), wintypes.LPWSTR]+ gdi32.DeleteDC.argtypes = [wintypes.HDC]+ hdc = gdi32.CreateDCW("DISPLAY", device_name, None, None)+ if not hdc:+ return None+ try:+ size = wintypes.DWORD(260)+ buffer = ctypes.create_unicode_buffer(size.value)+ if not gdi32.GetICMProfileW(hdc, ctypes.byref(size), buffer):+ return None+ path = Path(buffer.value)+ finally:+ gdi32.DeleteDC(hdc)+ try:+ data = path.read_bytes()- except OSError:++ except OSError: # an unreadable profile file means no wide-gamut profile+ return None+ # The generic sRGB profile adds nothing a plain sRGB file does not say.+ return data if len(data) >= 132 and data[36:40] == b"acsp" else None+++ # ---------------------------------------------------------------------------+ # macOS+ # ---------------------------------------------------------------------------+++ def _macos(device_name: str | None) -> DisplayColor:+ from AppKit import NSScreen # noqa: PLC0415++ screens = list(NSScreen.screens() or [])+ if not screens:+ return SDR+ screen = screens[0]+ if device_name:+ for candidate in screens:+ name = getattr(candidate, "localizedName", None)+ if callable(name) and str(name()) == device_name:+ screen = candidate+ break+ headroom = float(screen.maximumExtendedDynamicRangeColorComponentValue())+ potential = float(screen.maximumPotentialExtendedDynamicRangeColorComponentValue())+ space = screen.colorSpace()+ data = space.ICCProfileData() if space is not None else None+ profile = bytes(data) if data is not None else None+ gamut = icc_gamut(profile)+ if headroom > 1.0 or potential > 1.0:+ mode: Mode = "hdr"+ elif gamut != "srgb":+ mode = "wcg"+ else:+ mode = "sdr"+ return DisplayColor(+ mode=mode,+ bits_per_channel=10 if mode != "sdr" else 8,+ icc_profile=profile,+ gamut=gamut,+ source="macos-nsscreen",+ )diff --cc jarvis/platform/probes.pyindex 08099ac53b,cd485e4066..cfb53fd62e--- a/jarvis/platform/probes.py+++ b/jarvis/platform/probes.py@@@ -162,8 -208,10 +182,9 @@@ __all__ ="is_wayland","has_pty","ax_permission_granted",- "screen_recording_granted","has_ax_tree","has_hotkey",+ "hotkey_unavailable_reason","has_cursor","has_overlay","has_elevation",diff --cc jarvis/platform/user_dirs.pyindex 0000000000,d2976e6a8d..2b3861f396mode 000000,100644..100644--- a/jarvis/platform/user_dirs.py+++ b/jarvis/platform/user_dirs.py@@@ -1,0 -1,123 +1,123 @@@+ """The user's own folders — Downloads and Pictures — the way each OS names them.++ - **Windows** asks the known-folder API (``SHGetKnownFolderPath``), so a+ Downloads or Pictures folder moved to another drive or into OneDrive is the+ one used.+ - **macOS** uses ``~/Downloads`` and ``~/Pictures``.+ - **Linux** reads ``XDG_DOWNLOAD_DIR`` / ``XDG_PICTURES_DIR`` from+ ``user-dirs.dirs``: on a Spanish desktop Downloads is ``~/Descargas``, on a+ French one ``~/Téléchargements``. Writing to a hard-coded ``~/Downloads``+ there created a stray folder nobody looks in.++ Only stdlib at module scope; the Windows path uses ctypes lazily.+ """++ from __future__ import annotations++ import logging+ import os+ import re+ import sys+ from pathlib import Path++ log = logging.getLogger(__name__)++ #: FOLDERID_Downloads {374DE290-123F-4565-9164-39C4925E467B}.+ _DOWNLOADS_ID = (0x374DE290, 0x123F, 0x4565, (0x91, 0x64, 0x39, 0xC4, 0x92, 0x5E, 0x46, 0x7B))+ #: FOLDERID_Pictures {33E28130-4E1E-4676-835A-98395C3BC3BB}.+ _PICTURES_ID = (0x33E28130, 0x4E1E, 0x4676, (0x83, 0x5A, 0x98, 0x39, 0x5C, 0x3B, 0xC3, 0xBB))+++ def downloads_dir() -> Path:+ """The user's Downloads folder. Never ``None``: ``~/Downloads`` is the floor."""+ fallback = Path.home() / "Downloads"+ try:+ if sys.platform == "win32":+ return windows_known_folder(_DOWNLOADS_ID) or fallback+ if sys.platform == "darwin":+ return fallback+ return xdg_user_dir("DOWNLOAD") or fallback+ except Exception: # noqa: BLE001 - a probe failure means "use the plain folder"+ log.debug("user-dirs: Downloads folder probe failed", exc_info=True)+ return fallback+++ def pictures_dir() -> Path | None:+ """The user's Pictures folder path, or ``None`` when Linux points it at home."""+ if sys.platform == "win32":+ return windows_known_folder(_PICTURES_ID) or Path.home() / "Pictures"+ if sys.platform == "darwin":+ return Path.home() / "Pictures"+ found = xdg_user_dir("PICTURES")+ if found is None and not _xdg_names_home("PICTURES"):+ return Path.home() / "Pictures"+ return found+++ def xdg_user_dir(name: str) -> Path | None:+ """``XDG_<name>_DIR`` from ``user-dirs.dirs``; ``None`` when unset or ``$HOME``.++ xdg-user-dirs points an entry at ``$HOME`` itself when its folder was+ removed; loose files in the home folder are not what anyone wants.+ """+ value = _xdg_entry(name)+ if value is None:+ return None+ path = Path(value)+ return None if path == Path.home() else path+++ def _xdg_names_home(name: str) -> bool:+ value = _xdg_entry(name)+ return value is not None and Path(value) == Path.home()+++ def _xdg_entry(name: str) -> str | None:+ home = Path.home()+ config_home = Path(os.environ.get("XDG_CONFIG_HOME") or home / ".config")+ try:+ text = (config_home / "user-dirs.dirs").read_text(encoding="utf-8")- except OSError:++ except OSError: # no user-dirs file is normal; the caller uses its default folder+ return None+ match = re.search(rf'^XDG_{re.escape(name)}_DIR="([^"]*)"', text, re.MULTILINE)+ if not match:+ return None+ return match.group(1).replace("$HOME", str(home))+++ def windows_known_folder(folder: tuple[int, int, int, tuple[int, ...]]) -> Path | None:+ """A Windows known folder through ``SHGetKnownFolderPath``, or ``None``."""+ import ctypes # noqa: PLC0415+ from ctypes import wintypes # noqa: PLC0415++ class _GUID(ctypes.Structure):+ _fields_ = [+ ("Data1", wintypes.DWORD),+ ("Data2", wintypes.WORD),+ ("Data3", wintypes.WORD),+ ("Data4", ctypes.c_ubyte * 8),+ ]++ data1, data2, data3, data4 = folder+ folder_id = _GUID(data1, data2, data3, (ctypes.c_ubyte * 8)(*data4))+ shell32 = ctypes.WinDLL("shell32", use_last_error=True)+ ole32 = ctypes.WinDLL("ole32", use_last_error=True)+ shell32.SHGetKnownFolderPath.argtypes = [+ ctypes.POINTER(_GUID),+ wintypes.DWORD,+ wintypes.HANDLE,+ ctypes.POINTER(ctypes.c_wchar_p),+ ]+ shell32.SHGetKnownFolderPath.restype = ctypes.c_long+ ole32.CoTaskMemFree.argtypes = [ctypes.c_void_p]+ ole32.CoTaskMemFree.restype = None+ out = ctypes.c_wchar_p()+ if shell32.SHGetKnownFolderPath(ctypes.byref(folder_id), 0, None, ctypes.byref(out)) != 0:+ return None+ try:+ return Path(out.value) if out.value else None+ finally:+ ole32.CoTaskMemFree(out)+++ __all__ = ["downloads_dir", "pictures_dir", "windows_known_folder", "xdg_user_dir"]diff --cc jarvis/platform/window_state.pyindex 0a10a35825,ad0d6758f2..8d0f7544eb--- a/jarvis/platform/window_state.py+++ b/jarvis/platform/window_state.py@@@ -1767,7 -1747,46 +1767,46 @@@ def _window_frame_rect_linux(win: Windoreturn Noneif width <= 0 or height <= 0:return None- return (left, top, width, height)+ return _trim_gtk_frame_extents(int(win.handle), (left, top, width, height))+++ def _trim_gtk_frame_extents(+ window_id: int, rect: tuple[int, int, int, int]+ ) -> tuple[int, int, int, int]:+ """Drop a GTK client-side-decoration shadow from an X11 window rect.++ GTK windows that draw their own title bar (GNOME apps) make the X window+ larger than what the user sees, by the invisible shadow margins they+ publish in ``_GTK_FRAME_EXTENTS`` (left, right, top, bottom). Without the+ trim a window appshot showed a band of desktop around the window. A+ window without the property, or a host without python-xlib, keeps the+ rect as it is.+ """+ try:+ from Xlib import X, display # type: ignore[import-not-found] # noqa: PLC0415- except ImportError:++ except ImportError: # python-xlib is optional; without it the rect stays as it is+ return rect+ conn = None+ try:+ conn = display.Display()+ window = conn.create_resource_object("window", window_id)+ prop = window.get_full_property(conn.intern_atom("_GTK_FRAME_EXTENTS"), X.AnyPropertyType)+ values = list(getattr(prop, "value", []) or [])+ except Exception: # noqa: BLE001 - an unreadable property keeps the plain rect+ log.debug("GTK frame extents unreadable for window %s", window_id, exc_info=True)+ return rect+ finally:+ if conn is not None:+ conn.close()+ if len(values) != 4:+ return rect+ left_m, right_m, top_m, bottom_m = (max(0, int(v)) for v in values)+ left, top, width, height = rect+ trimmed_w = width - left_m - right_m+ trimmed_h = height - top_m - bottom_m+ if trimmed_w <= 0 or trimmed_h <= 0:+ return rect+ return (left + left_m, top + top_m, trimmed_w, trimmed_h)def _resolve_macos_ax_window(win: WindowInfo) -> tuple[object | None, str]:diff --cc jarvis/screen_context/ports.pyindex fc574ebf2e,b554b02125..7ce8f4189a--- a/jarvis/screen_context/ports.py+++ b/jarvis/screen_context/ports.py@@@ -386,28 -385,6 +385,28 @@@ class SurfaceCapturer(Protocol)...+def _refuse_while_confirmation_pending() -> None:+ """A native window capture timed out while macOS may be asking the user.+- PENDING, never DENIED: when the live state says granted the rect-grab fallback- below is safe and carries on; when it does not (a request is still in flight)- that fallback would return the wallpaper, so say that macOS may be asking.++ PENDING, never DENIED: when the live state says granted the caller's own++ window-only refusal applies; when it does not (a request is still in flight)++ the capture failed because macOS may be asking, so say that instead.+ Silent: nothing is asked here.+ """+ try:+ from jarvis.platform import screen_access, window_capture # noqa: PLC0415++ if window_capture.last_grab_failure() != "pending_confirmation":+ return+ if not screen_access.screen_recording_blocked():+ return+ message = screen_access.refusal_pending().user_detail+ except Exception: # noqa: BLE001 — classifying a timeout never breaks the capture+ log.debug("pending-confirmation check failed", exc_info=True)+ return+ raise CaptureUnavailable(message)++class NativeSurfaceCapturer:"""Native per-window capture where the OS offers it, rect grab otherwise.@@@ -447,17 -420,19 +446,20 @@@)if native is not None:return native- except Exception: # noqa: BLE001 — platform policy below decides fallback+ except Exception: # noqa: BLE001 — the refusal below is the outcomelog.debug("native window capture failed", exc_info=True)+ _refuse_while_confirmation_pending()- if os.name == "nt":- raise CaptureUnavailable(- "The focused Windows window could not be captured safely. "- "A desktop-rectangle fallback was refused because another "- "window could overlap it. Bring the window to the foreground and "- "retry; some protected or GPU-rendered windows do not support "- "window-only capture."- )+ # A window handle means "this window ALONE" (the privacy path: a+ # denylisted window overlaps the rectangle). A desktop-rectangle+ # grab would photograph exactly that window, so it is refused on+ # every OS — Linux has no window-only capture at all.+ raise CaptureUnavailable(+ "The window could not be captured on its own, and a "+ "desktop-rectangle fallback was refused because another window "+ "overlaps it. Bring the window to the foreground or move the "+ "other window away and retry; some protected or GPU-rendered "+ "windows do not support window-only capture."+ )try:if _is_wayland():diff --cc jarvis/screen_context/service.pyindex f3ab28260e,3de3ee99b2..0410155c17--- a/jarvis/screen_context/service.py+++ b/jarvis/screen_context/service.py@@@ -370,35 -386,17 +392,28 @@@ class ScreenContextServicemessage="Screen Context settings changed before capture could start.",)- permission_issue = await asyncio.to_thread(self._permission_probe)- if permission_issue:- if isinstance(permission_issue, CapturePermissionIssue):- reason_code = permission_issue.code- permission_message = permission_issue.message- else:- # Compatibility for injected third-party/test probes that still- # implement the original ``str | None`` port contract.- reason_code = "capture_permission"- permission_message = str(permission_issue)+ permission_issue = await self.capture_permission_issue()+ if permission_issue is not None:+ reason_code, permission_message = permission_issue- log.info("screen_context: capture refused — %s", permission_message)- return CaptureOutcome(- status="refused",- verdict=verdict,- reason_kind="technical",- reason_code=reason_code,- message=permission_message,- )+ if reason_code == "capture_permission":+ # A person started this capture (a spoken request, the bar+ # button, an appshot gesture), so this is the moment macOS is+ # asked. The probe above never asks and never decides: only a+ # live GRANTED from the permission service lets the capture go on.+ refused = await self._ask_for_capture_permission(verdict, trace_id)+ if refused is None:+ permission_issue = None+ else:+ permission_message = refused.user_detail or permission_message- if permission_issue:++ if permission_issue is not None:+ log.info("screen_context: capture refused — %s", permission_message)+ return CaptureOutcome(+ status="refused",+ verdict=verdict,+ reason_kind="technical",+ reason_code=reason_code,+ message=permission_message,+ )# The cursor is sampled ONCE, here, and threaded through. See# targeting.resolve_target for why re-reading it later is a race.@@@ -561,17 -559,11 +576,21 @@@message=monitor_privacy_error,)try:- size, rgb = await self._grab(target)+ master_image = None+ if master:+ size, rgb, master_image = await self._grab_with_master(target)+ else:+ size, rgb = await self._grab(target)+ # macOS hands back the wallpaper, not an error, for a capture it+ # does not allow: a blank frame while the state claims granted+ # is never a success (and opens the permission episode).+ await asyncio.to_thread(+ screen_access.verify_frame_is_real,+ size,+ rgb,+ feature=self._permission_feature(verdict),+ gate=self._permission_gate,+ )except CaptureUnavailable as exc:log.info("screen_context: capture failed — %s", exc)return CaptureOutcome(diff --cc jarvis/setup/onboarding_meta.pyindex 7bdfe19032,cc9db8ef63..aef0798c54--- a/jarvis/setup/onboarding_meta.py+++ b/jarvis/setup/onboarding_meta.py@@@ -15,30 -15,18 +15,22 @@@ logger = logging.getLogger(__name__CURRENT_TERMS_VERSION = "1.0"# Canonical step order — must match SETUP_STEP_IDS in the frontend- # (components/onboarding/setup/setupSteps.ts). Setup runs INSIDE the real app:- # each step opens the app's own place for the job (the API Keys page and its- # Agents tab, the wake-word group in Settings) and points at it. The tour of the app runs- # AFTER the completion restart and is tracked separately- # (``tour_completed_at`` in jarvis.setup.state).- # Restart batching (maintainer mandate 2026-07-18): voice sits LAST, directly- # before ready, because it only takes full effect after a relaunch — and- # onboarding already ends with one unconditional fresh restart- # (onboarding_routes._schedule_fresh_restart).- # "how" (2026-10-01) is an interactive explainer of what the assistant is and- # how its parts connect, shown before anything is set up — new users went- # through setup without understanding the product.+ # (components/onboarding/setup/setupSteps.ts). Setup is one window with three+ # steps — the assistant's name (which is its wake word), connecting an AI+ # (subscriptions and an API key), and how the user talks to it — followed by+ # "tour": the user's pet walks the real app and explains each section. The+ # walk is one persisted step; onboarding completes, with its one unconditional+ # fresh restart (onboarding_routes._schedule_fresh_restart), when it ends, so+ # the wake-word and macOS permission changes made during setup take effect.+# There is NO permissions step (just-in-time permissions, AP-35): nothing asks- # macOS for anything during first run except where a switch IS the gesture (the- # wake-word switch on the voice step asks for the microphone there, and says so- # inside the spotlight hole). A stored legacy step id "permissions" resumes at- # "voice" (frontend ``resumeStep``); the backend never validates the stored id.++# macOS for anything during first run except where a switch IS the gesture.++# A stored legacy step id (e.g. "permissions") resumes at "name" (frontend++# ``resumeStep``); the backend never validates the stored id.ONBOARDING_STEPS: list[str] = [- "welcome",- "how",- "keys",- "subscriptions",+ "name",+ "connect","voice",- "ready",+ "tour",]# Informational only; not exhaustive and possibly out of date (stated in the UI).diff --cc jarvis/skills/builtin/__init__.pyindex f130fa003d,23e6013038..8ad28c2ca4--- a/jarvis/skills/builtin/__init__.py+++ b/jarvis/skills/builtin/__init__.py@@@ -49,28 -49,7 +49,29 @@@ _PLUGIN_PAIRED_SKILLS: tuple[str, ...]"plugin-spotify","plugin-youtube_music","plugin-higgsfield",+ "plugin-agentmail",+ "plugin-amd_gpu",+ "plugin-apollo",+ "plugin-aws",+ "plugin-azure",+ "plugin-figma",+ "plugin-gitlab",+ "plugin-google_cloud",+ "plugin-granola",+ "plugin-hubspot",+ "plugin-linkedin",+ "plugin-meta",+ "plugin-microsoft_todo",+ "plugin-onedrive",+ "plugin-onenote",+ "plugin-outlook",+ "plugin-salesforce",+ "plugin-sharepoint",+ "plugin-teams",+ "plugin-x",+ "plugin-youtube_studio",+ "plugin-zoom",+ "plugin-atlassian",)BUILTIN_SKILL_NAMES: tuple[str, ...] = (diff --cc jarvis/society/runtime.pyindex 6a36a6009f,4919e21d4c..674b0e3eb9--- a/jarvis/society/runtime.py+++ b/jarvis/society/runtime.py@@@ -815,78 -812,43 +815,85 @@@ class SocietyRuntimequest_trace = env.trace_id.startswith("quest:")try:while True:- event = await queue.get()- kind = event.get("kind")- payload = event.get("payload") or {}- if payload.get("turn_id") not in (None, turn_id):- continue- if kind == "assistant_text":- if payload.get("media_only"):- # A picture row after the answer is not the answer.- continue- final_text = str(payload.get("text") or final_text)- if quest_trace:- await self.quests.note_progress(env.trace_id, "", live=final_text)- elif kind == "tool_call":- name = str(payload.get("name") or payload.get("tool") or "tool")- summary = str(payload.get("summary") or "")[:120]- step = f"{name}: {summary}" if summary else name- tool_steps.append(step)- if quest_trace:- await self.quests.note_progress(env.trace_id, step)- if name == "society_browser":- used_browser = True- elif kind == "error":- if payload.get("display_only"):- # A picture that could not be shown does not undo- # the work (live 2026-10-02: Scout's finished- # research was reported as blocked over two- # missing screenshots).- log.info(- "society: %s turn had a display-only error: %s",- target.name, str(payload.get("message") or "")[:200],+ try:+ events = [+ await asyncio.wait_for(queue.get(), timeout=_WATCH_EVENT_POLL_SECONDS)+ ]+ except TimeoutError:+ # The service drops a subscriber whose queue overflows. Its+ # events remain durable, so recover the missing terminal.+ try:+ events = await asyncio.to_thread(+ svc.store.list_events, session_id, after_seq=last_seq)- continue- status, error = "blocked", str(payload.get("message") or "error")- elif kind == "turn_finished":- if payload.get("status") not in (None, "ok", "done", "completed"):+ except Exception: # noqa: BLE001 - a broken chat store must release the slot+ read_failures += 1+ log.warning(+ "society: durable turn recovery failed for %s (%s/3)",+ run_id,+ read_failures,+ exc_info=True,+ )+ if read_failures < 3:+ continuestatus = "blocked"- error = str(payload.get("error") or payload.get("status") or "")+ error = "Agent result could not be recovered from chat history."+ try:+ await svc.cancel(session_id, expected_turn_id=turn_id)+ except Exception: # noqa: BLE001 - still release the board slot+ log.warning(+ "society: turn %s could not be cancelled after recovery failure",+ run_id,+ exc_info=True,+ )+ break+ read_failures = 0+ else:+ read_failures = 0+ finished = False+ for event in events:+ seq = int(event.get("seq") or 0)+ if seq and seq <= last_seq:+ continue+ last_seq = max(last_seq, seq)+ kind = event.get("kind")+ payload = event.get("payload") or {}+ if payload.get("turn_id") not in (None, turn_id):+ continue+ if kind == "assistant_text":+ if payload.get("media_only"):+ continue # A picture row does not replace the result report.+ final_text = str(payload.get("text") or final_text)+ if quest_trace:+ await self.quests.note_progress(env.trace_id, "", live=final_text)+ elif kind == "tool_call":+ name = str(payload.get("name") or payload.get("tool") or "tool")+ summary = str(payload.get("summary") or "")[:120]+ step = f"{name}: {summary}" if summary else name+ tool_steps.append(step)+ if quest_trace:+ await self.quests.note_progress(env.trace_id, step)+ if name == "society_browser":+ used_browser = True+ elif kind == "error":+ if payload.get("display_only"):- log.info("society: %s turn had a display-only error", target.name)++ # A picture that could not be shown does not undo++ # the work (live 2026-10-02: a finished research++ # turn was reported as blocked over two missing++ # screenshots).++ log.info(++ "society: %s turn had a display-only error: %s",++ target.name, str(payload.get("message") or "")[:200],++ )+ continue+ status, error = "blocked", str(payload.get("message") or "error")+ elif kind == "turn_finished":+ if payload.get("status") not in (None, "ok", "done", "completed"):+ status = "blocked"+ error = str(payload.get("error") or payload.get("status") or "")+ finished = True+ break+ if finished:breakexcept asyncio.CancelledError: # Session cancellation is normal shutdown.returndiff --cc jarvis/ui/web/appshot_routes.pyindex d2a6ab583f,f250ece37b..41004b0323--- a/jarvis/ui/web/appshot_routes.py+++ b/jarvis/ui/web/appshot_routes.py@@@ -76,23 -79,34 +79,34 @@@ def _bus(request: Request) -> Any | Nonreturn getattr(request.app.state, "bus", None)- def _capability() -> dict[str, Any]:+ def _capture_capability() -> tuple[bool, str]:- """Whether a capture would run right now, and the reason when not.++ """Whether this desktop can capture at all, and the reason when not.+- Asks what the capture itself checks: a display, the capture package,- and the OS gate (Screen Recording on macOS, Wayland on Linux). A page- that said "ready" and then refused on Try it was the old behaviour.++ Asks what the capture backend itself needs: a display, the capture++ package and an X11 (not Wayland) session. A page that said "ready" and++ then refused on Try it was the old behaviour. This is backend support,++ not a permission preflight: a Mac without a grant must retain its capture++ button so first use can ask the OS.+ """import importlib.util # noqa: PLC0415- from jarvis.platform.probes import display_present # noqa: PLC0415- from jarvis.screen_context.ports import capture_permission_error # noqa: PLC0415++ from jarvis.platform.probes import display_present, is_wayland # noqa: PLC0415++ if not display_present():+ return False, "There is no screen on this computer."+ if importlib.util.find_spec("mss") is None:+ return False, "The screen-capture package is not installed."- issue = capture_permission_error()- if issue is not None:- return False, issue.message++ if is_wayland():++ return False, "Appshot capture is not supported on Wayland yet. Use an X11 session."+ return True, ""+++ def _capability() -> dict[str, Any]:+from jarvis.appshot.region import picker_capability # noqa: PLC0415from jarvis.cu.indicator.controller import screen_indicator_capability # noqa: PLC0415- from jarvis.platform.probes import display_present, is_wayland- capture_ok = importlib.util.find_spec("mss") is not None- capture_detail = "" if capture_ok else "The screen-capture package is not installed."- if not display_present():- capture_ok = False- capture_detail = "Screen capture needs an interactive desktop session."- elif is_wayland():- capture_ok = False- capture_detail = "Appshot capture is not supported on Wayland yet. Use an X11 session."- # This is backend support, not a permission preflight. A Mac without a- # grant must retain its capture button so first use can ask the OS.+ capture_ok, capture_reason = _capture_capability()effect_ok, effect_reason = screen_indicator_capability()region_ok, region_reason = picker_capability()if not capture_ok:@@@ -152,7 -169,7 +169,8 @@@ async def put_settings(request: Requestget_shortcut,is_gesture,normalize_hotkey,+ request_saved_shortcut_access,+ shortcuts_conflict,)from jarvis.core.config import load_config # noqa: PLC0415from jarvis.core.config_writer import ( # noqa: PLC0415@@@ -206,19 -224,15 +229,23 @@@from jarvis.screen_context.turn import reset_service # noqa: PLC0415reset_service()+ if previous is not None:+ updated = {+ "window": changes.get("hotkey", current["window"]),+ "region": changes.get("region_hotkey", current["region"]),+ }+ await request_saved_shortcut_access(+ current, updated,+ was_enabled=previous.screen_context.enabled,+ enabled=previous.screen_context.enabled if enabled is None else enabled,+ )shortcut = get_shortcut()- if shortcut is not None and any(- key in changes for key in ("hotkey", "region_hotkey", "recording_hotkey")- ):+ if shortcut is not None and listener_change:await shortcut.reload()+ if changes.get("keep_newest"):+ from jarvis.appshot import retention # noqa: PLC0415++ await asyncio.to_thread(retention.apply, int(changes["keep_newest"]))return await asyncio.to_thread(_settings_payload)diff --cc jarvis/ui/web/frontend/src/App.tsxindex 1807578894,b2ee6f0997..743d3ad24b--- a/jarvis/ui/web/frontend/src/App.tsx+++ b/jarvis/ui/web/frontend/src/App.tsx@@@ -402,11 -376,15 +375,11 @@@ export default function App()top-left corner so this gray shows in the curve. */}<div className="h-8 shrink-0" data-testid="caption-rule" /><div className={activeSection === "agents" ? "flex min-h-0 min-w-0 flex-1 flex-col" : "jarvis-sheet flex min-h-0 min-w-0 flex-1 flex-col"}>- {/* App-wide macOS permission alert — topmost so a missing grant is- impossible to miss on any view. No-op on other platforms. */}- <PermissionsAlertBanner />{/* Outside input software (dictation, text expanders, auto-type) cannot- reach an elevated window. Sits next to the permission alert because- it is the same class of problem: an OS-level gate the user must be- told about, since nothing else reports it. */}+ reach an elevated window: an OS-level gate the user must be told+ about, since nothing else reports it. */}<InputIsolationBanner />- <TopBar navToggle={navToggle} />+ <TopBar />{!(["agentic-ide", "chat-workspace", "agentic-ide-classic"].includes(activeSection)) && <VoiceWarmingBanner />}<SectionStage visualization={visualizationActive}><MainView />diff --cc jarvis/ui/web/frontend/src/components/ToastLayer.tsxindex ec9dbf3df4,fb7c863b9a..971a2c9848--- a/jarvis/ui/web/frontend/src/components/ToastLayer.tsx+++ b/jarvis/ui/web/frontend/src/components/ToastLayer.tsx@@@ -41,16 -40,14 +41,17 @@@ export function ToastLayer()const toasts = useEventStore((s) => s.toasts);const dismiss = useEventStore((s) => s.dismissToast);- return (- // z-[100]: above everything that reports through a toast — the- // onboarding gate (z-50, rendered later in the DOM), dialogs, and the- // full-window appshot editor (z-95), whose Save toast carries the "Show- // in folder" action.+ return createPortal(+ // z-[115]: above the first-run setup spotlight (z-110), whose scrim takes+ // every click outside its hole: a toast with a button ("Open System+ // Settings" after the wake-word switch asked for the microphone) must stay- // clickable there. Below the caption bar (z-120), which is every window's- // title bar. A portal to <body> because the spotlight is one too: inside the++ // clickable there. Also above the full-window appshot editor (z-95), whose++ // Save toast carries the "Show in folder" action. Below the caption bar++ // (z-120), which is every window's title bar. A portal to <body> because the spotlight is one too: inside the+ // shell root (an isolated stacking context) no z-index could outrank it.// top-12: below the caption strip — at the top edge a toast covered the// restart and window buttons whose outcome it reports.- <div className="pointer-events-none fixed right-4 top-12 z-[100] flex w-[320px] flex-col gap-2">+ <div className="pointer-events-none fixed right-4 top-12 z-[115] flex w-[320px] flex-col gap-2">{toasts.map((toast) => {const Icon = ICON_FOR_KIND[toast.kind];// A saved-file toast in the desktop shell is a native drag handle: pressdiff --cc jarvis/ui/web/frontend/src/components/agentchat/chatAttachments.test.tsxindex 01ab06069f,adad68b998..bfb67eec04--- a/jarvis/ui/web/frontend/src/components/agentchat/chatAttachments.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/chatAttachments.test.tsx@@@ -7,9 -8,8 +8,10 @@@ import { forgetHeldFiles } from "@/compimport { useFileDropGuard } from "@/hooks/useFileDropGuard";import { useAgentChatStore } from "@/store/agentChat";import { useEventStore } from "@/store/events";- import type { AgentChatCatalog } from "@/lib/agentChatApi";+ import { ChatAttachmentStrip } from "@/components/agentchat/ChatAttachmentStrip";+ import type { AgentChatCatalog, ChatAttachment } from "@/lib/agentChatApi";+import { WORKSPACE_PATH_TYPE } from "@/components/agentic/paneDrop";+import { NATIVE_DROP_EVENT } from "@/lib/nativeDrop";/*** Files in the chat composer — the drop, the paste, and what travels with thediff --cc jarvis/ui/web/frontend/src/components/agentchat/useChatAttachments.tsindex 63da5aa794,755cc4830d..1472eaef7e--- a/jarvis/ui/web/frontend/src/components/agentchat/useChatAttachments.ts+++ b/jarvis/ui/web/frontend/src/components/agentchat/useChatAttachments.ts@@@ -26,7 -27,13 +26,12 @@@ importtype PaneDropPayload,} from "@/components/agentic/paneDrop";import { usePaneFileDrag } from "@/components/agentic/paneFileDrag";- import { attachChatFiles, type AgentChatSurface, type ChatAttachment } from "@/lib/agentChatApi";-import { waitForNativeDrop } from "@/lib/nativeDrop";+ import {+ attachChatFilesIn,+ attachmentFileUrl,+ type AgentChatSurface,+ type ChatAttachment,+ } from "@/lib/agentChatApi";export interface ChatAttachments {/** What will travel with the next message. */diff --cc jarvis/ui/web/frontend/src/components/layout/TopBar.test.tsxindex 59276d1ff9,fb07214f74..3a38562dee--- a/jarvis/ui/web/frontend/src/components/layout/TopBar.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/TopBar.test.tsx@@@ -1,7 -1,6 +1,6 @@@- import { act, cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";-import { cleanup, render, screen } from "@testing-library/react";++import { act, cleanup, fireEvent, render, screen } from "@testing-library/react";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";- import { TopBar, TopBarActions } from "./TopBar";- import { ThemeProvider } from "@/hooks/useTheme";+ import { TopBar } from "./TopBar";import { useEventStore } from "@/store/events";import { resetSectionHistory } from "@/hooks/useSectionHistory";@@@ -187,29 -60,8 +60,28 @@@ describe("TopBar section navigation", (});describe("TopBar caption on every section", () => {+ it.each([false, true])("leaves native macOS controls to Cocoa (solo=%s)", async (solo) => {+ useEventStore.setState({ solo });+ (window as unknown as { pywebview?: { api: object } }).pywebview = { api: {} };+ const fetchMock = vi.fn().mockResolvedValue({+ ok: true,+ json: async () => ({ ok: true, frameless: false, controls: "none", platform: "darwin" }),+ });+ vi.stubGlobal("fetch", fetchMock);++ try {+ await act(async () => { render(<TopBar />); });+ expect(fetchMock).toHaveBeenCalledWith("/api/window/chrome");+ expect(screen.queryByTestId("window-controls")).toBeNull();+ fireEvent.doubleClick(screen.getByTestId("window-caption").querySelector(".pywebview-drag-region")!);+ expect(fetchMock.mock.calls.some(([url]) => url === "/api/window/command")).toBe(false);- expect(screen.getByRole("button", { name: /^restart$/i })).toBeTruthy();+ } finally {+ delete (window as unknown as { pywebview?: unknown }).pywebview;+ }+ });+it.each(["chats", "agents", "agentic-ide-classic", "dictation"] as const)(- "keeps restart on %s",+ "renders the caption on %s",(section) => {useEventStore.setState({ activeSection: section });render(<TopBar />);diff --cc jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.tsxindex 3347836a22,209f724595..d662cce202--- a/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.tsx+++ b/jarvis/ui/web/frontend/src/components/onboarding/OnboardingGate.tsx@@@ -26,31 -22,22 +22,24 @@@ function param(name: string): string |}/**- * First run, in two acts, both on the real app — there is no setup screen.- *- * 1. Setup: the window dims and a guide walks the user to the app's own- * places — consent, the API Keys page, the wake word in Settings — until- * onboarding is complete (macOS permissions are asked later, where a- * feature needs them; no step of setup asks for one). Fails open: while- * loading or on a fetch error it renders nothing, so a broken guide never- * traps anyone.- * 2. The tour: after the completion restart, a spotlight explains the app- * one control at a time. Shown once (`tour_completed`); `jarvis:tour-start`- * replays it alone.+ * First run, in two acts, both over the real app.*- * Settings' replay (`jarvis:setup-replay`) walks setup again as a preview,- * from the "how it works" explainer on, then the tour.+ * 1. The setup window: three steps — the assistant's name (its wake word),+ * connecting an AI (subscriptions and an API key), and how the user- * talks to it. Fails open: while loading or on a fetch error the gate- * renders nothing, so a broken guide never traps anyone.++ * talks to it (macOS permissions are asked later, where a feature needs++ * them; no step of setup asks for one). Fails open: while loading or on++ * a fetch error the gate renders nothing, so a broken guide never traps++ * anyone.+ * 2. The walk: the user's pet walks the app's sections and explains each in+ * place. When it ends, onboarding is completed and the app restarts once.*- * 3. First steps: when the tour ends for the first time, a small guide in- * the corner walks ten real things to do with the assistant and explains- * each one after it happened. It survives the completion restart- * (localStorage) and never blocks the app; `jarvis:first-steps-start`- * (Settings) starts it again.+ * Settings' replay (`jarvis:setup-replay`) walks both again as a preview,+ * without completing or restarting anything. `jarvis:tour-start` (and an+ * install that finished setup but never saw the walk) shows the walk alone.** Replay, never destructive: `?onboarding=force` walks the setup on a- * finished install without completing or restarting anything, then hands- * over to the tour; `?tour=force` opens the tour alone; `?firststeps=force`- * opens the first-steps guide from the start.+ * finished install without completing or restarting anything; `?tour=force`+ * opens the walk alone.*/export function OnboardingGate({ activeSection }: { activeSection?: string } = {}) {const onb = useOnboarding();diff --cc jarvis/ui/web/frontend/src/components/onboarding/setup/setupSteps.test.tsindex 1789604662,e153e841ec..0011f15908--- a/jarvis/ui/web/frontend/src/components/onboarding/setup/setupSteps.test.ts+++ b/jarvis/ui/web/frontend/src/components/onboarding/setup/setupSteps.test.ts@@@ -24,34 -24,38 +24,39 @@@ describe("setup steps", () =>expect([...block![1].matchAll(/"([a-z-]+)"/g)].map((m) => m[1])).toEqual([...SETUP_STEP_IDS]);});- it("has no permissions step on any OS (permissions are asked just in time)", () => {- expect(stepsFor()).not.toContain("permissions" as never);- expect(SETUP_STEPS).not.toHaveProperty("permissions");+ it("show three steps in the window, then the walk", () => {+ expect([...WIZARD_STEP_IDS]).toEqual(["name", "connect", "voice"]);+ expect(SETUP_STEP_IDS[SETUP_STEP_IDS.length - 1]).toBe("tour");});+ });++ describe("the walk", () => {+ const stops = (en as { first_run: { tour: { stops: Record<string, string>; labels: Record<string, string> } } })+ .first_run.tour;- it("start with the welcome and end with the start", () => {- const steps = stepsFor();- expect(steps[0]).toBe("welcome");- expect(steps[steps.length - 1]).toBe("ready");+ it("has unique stops, each with a line and a label in the locale", () => {+ const ids = WALK_STOPS.map((s) => s.id);+ expect(new Set(ids).size).toBe(ids.length);+ for (const id of ids) {+ expect(stops.stops[id], id).toBeTruthy();+ expect(stops.labels[id], id).toBeTruthy();+ }});- it("point only at anchors the app actually sets", () => {- const code = sources(SRC)- .filter((f) => !f.includes(join("components", "onboarding")))- .map((f) => readFileSync(f, "utf8"))- .join("\n");- for (const id of SETUP_STEP_IDS) {- const anchor = SETUP_STEPS[id].anchor;- if (!anchor) continue;- // A literal hook, or one handed to a component as its `tourId`.- const literal = code.includes(`data-tour="${anchor}"`) || code.includes(`tourId="${anchor}"`);- // Settings groups get theirs from a template: data-tour={`settings-${section.id}`}.- const group = anchor.startsWith("settings-") && code.includes("data-tour={`settings-${section.id}`}");- expect(literal || group, anchor).toBe(true);+ it("explains every section the user meets", () => {+ const ids = WALK_STOPS.map((s) => s.id);+ for (const id of ["chat", "voice", "agents", "ide", "plugins", "wake"]) expect(ids).toContain(id);+ });+- it("has six to seven stops on Windows and Linux, one more on macOS", () => {- expect(walkStopsFor("win32").length).toBe(7);- expect(walkStopsFor("linux").length).toBe(7);- expect(walkStopsFor(null).map((s) => s.id)).not.toContain("permissions");- expect(walkStopsFor("darwin").map((s) => s.id)).toContain("permissions");++ it("has seven stops on every OS and no permissions stop (permissions are asked just in time)", () => {++ for (const platform of ["win32", "linux", "darwin", null]) {++ const ids = walkStopsFor(platform).map((s) => s.id);++ expect(ids.length).toBe(7);++ expect(ids).not.toContain("permissions");+ }});- it("let the pet's walk point only at anchors the app actually sets", () => {+ it("points only at anchors the app actually sets", () => {const code = sources(SRC).filter((f) => !f.includes(join("components", "onboarding"))).map((f) => readFileSync(f, "utf8"))@@@ -75,20 -78,14 +79,19 @@@});describe("resumeStep", () => {- const steps = stepsFor();-it("returns to the saved step", () => {- expect(resumeStep(steps, "voice")).toBe("voice");- expect(resumeStep(steps, "subscriptions")).toBe("subscriptions");+ expect(resumeStep("connect")).toBe("connect");+ expect(resumeStep("tour")).toBe("tour");});- it("starts at the welcome for a fresh run or an unknown, old step id", () => {- expect(resumeStep(steps, null)).toBe("welcome");- expect(resumeStep(steps, "api-keys")).toBe("welcome");+ it("starts with the name for a fresh run or an unknown, old step id", () => {+ expect(resumeStep(null)).toBe("name");+ expect(resumeStep("keys")).toBe("name");+ expect(resumeStep("welcome")).toBe("name");});+- it("maps a stored legacy permissions step to the voice step on every OS", () => {- // An older build stored "permissions" (macOS only) right before "voice".- expect(resumeStep(steps, "permissions")).toBe("voice");++ it("restarts a stored legacy permissions step with the name", () => {++ // An older build stored "permissions" (macOS only); that step no longer exists.++ expect(resumeStep("permissions")).toBe("name");+ });});diff --cc jarvis/ui/web/frontend/src/components/onboarding/setup/setupSteps.tsindex a84d4e8f7b,216b821005..d61f36a0dc--- a/jarvis/ui/web/frontend/src/components/onboarding/setup/setupSteps.ts+++ b/jarvis/ui/web/frontend/src/components/onboarding/setup/setupSteps.ts@@@ -68,12 -30,60 +30,51 @@@ export function isWizardStep(id: SetupS/*** Where a resumed setup starts. The backend remembers the last step, so a- * window reload lands where the user was; a fresh start (or an unknown, old- * step id) begins at the welcome.+ * window reload lands where the user was; a fresh start (or an unknown, older+ * step id) begins with the name.+ */+ export function resumeStep(saved: string | null): SetupStepId {+ const hit = SETUP_STEP_IDS.find((id) => id === saved);+ return hit ?? "name";+ }++ export interface WalkStop {+ /** Also the i18n key: `first_run.tour.stops.<id>`. */+ id: string;+ /** The real element the pet stands next to; omitted = said from the middle. */+ anchor?: string;+ /** Where the app goes first, so the anchor is on screen. */+ section?: SectionId;+ /** The home surface the chats section shows (the composer or the voice bar). */+ surface?: HomeSurface;+ /** Scroll the anchor to the top of its scrolling page (a Settings group). */+ scrollTo?: boolean;+ /** Only on this platform (`process.platform` names, from the backend). */+ platform?: string;+ placement: TourPlacement;+ /** How the pet looks once the line is said. */+ pet: PetState;+ }++ /**+ * The walk's stops. It only navigates — it never presses a control that could+ * start work or cost money (the voice bar opens a paid call, so the walk+ * points at it and leaves the click to the user). The Agentic IDE and plugins+ * are shown at their sidebar entries: opening the IDE starts its terminals.*/- export function resumeStep(steps: readonly SetupStepId[], saved: string | null): SetupStepId {- // An older build stored "permissions" (macOS only) right before "voice".- const wanted = saved === "permissions" ? "voice" : saved;- const hit = steps.find((id) => id === wanted);- return hit ?? "welcome";+ export const WALK_STOPS: readonly WalkStop[] = [+ { id: "chat", anchor: "chat-composer", section: "chats", surface: "chat", placement: "above", pet: "talking" },+ { id: "voice", anchor: "voice-bar", section: "chats", surface: "voice", placement: "below", pet: "listening" },+ { id: "agents", anchor: "nav-agents", section: "chats", placement: "right", pet: "thinking" },+ { id: "ide", anchor: "nav-agentic-ide", placement: "right", pet: "thinking" },+ { id: "plugins", anchor: "nav-plugins", placement: "right", pet: "thinking" },+ { id: "wake", anchor: "settings-wake-word", section: "settings", scrollTo: true, placement: "left", pet: "listening" },- // macOS asks for permissions one ability at a time; elsewhere Settings is- // simply where they could be granted later.- {- id: "permissions",- anchor: "settings-permissions",- section: "settings",- scrollTo: true,- platform: "darwin",- placement: "left",- pet: "idle",- },++ // There is no permissions stop: macOS asks at the moment a feature needs++ // its permission, never as a stop of its own on first run.+ { id: "done", section: "chats", surface: "chat", placement: "inside", pet: "success" },+ ];++ /** The stops this machine walks. A failed platform probe drops platform-only stops. */+ export function walkStopsFor(platform: string | null): WalkStop[] {+ return WALK_STOPS.filter((stop) => !stop.platform || stop.platform === platform);}diff --cc jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.test.tsxindex b87fb7ba0a,7f3b4ecd3b..dae3059a8d--- a/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.test.tsx+++ b/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.test.tsx@@@ -1,92 -1,69 +1,91 @@@- import { render } from "@testing-library/react";- import { act } from "react";- import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-+ import { act, cleanup, render } from "@testing-library/react";+ import { afterEach, beforeEach, expect, it, vi } from "vitest";+ import { WorkspaceTerminal } from "./WorkspaceTerminal";-import { resetConnectBudgetForTests } from "@/lib/connectBudget";+import { BURST, resetConnectBudgetForTests } from "@/lib/connectBudget";- const sockets = vi.hoisted(() => ({ opened: 0 }));-+ const terminal = vi.hoisted(() => ({ focus: vi.fn(), dispose: vi.fn(), fit: vi.fn() }));vi.mock("@xterm/xterm", () => ({Terminal: class {- cols = 80;- rows = 24;- options: Record<string, unknown> = {};- loadAddon() {}- open() {}- write() {}- focus() {}- onData() { return { dispose() {} }; }- dispose() {}+ cols = 80; rows = 24; options = {};+ open() {} loadAddon() {} write() {} onData() {}+ focus = terminal.focus;+ dispose = terminal.dispose;},}));- vi.mock("@xterm/addon-fit", () => ({ FitAddon: class { fit() {} } }));+ vi.mock("@xterm/addon-fit", () => ({ FitAddon: class { fit = terminal.fit; } }));vi.mock("@xterm/addon-web-links", () => ({ WebLinksAddon: class {} }));- vi.mock("../agentic/terminalNewline", () => ({- installNewlineBridge: () => () => undefined,- }));- vi.mock("@/hooks/useTheme", () => ({ useThemeValue: () => "dark" }));- vi.mock("@/lib/terminalFont", () => ({- TERMINAL_FONT_STACK: "monospace",- syncTerminalFont: () => () => undefined,- }));- vi.mock("@/lib/terminalLinks", () => ({- activateTerminalLink: () => undefined,- TERMINAL_OSC_LINK_HANDLER: {},- }));-- import { WorkspaceTerminal } from "./WorkspaceTerminal";+ vi.mock("../agentic/terminalNewline", () => ({ installNewlineBridge: () => () => {} }));+ vi.mock("@/lib/terminalFont", () => ({ TERMINAL_FONT_STACK: "monospace", syncTerminalFont: () => () => {} }));- class ResizeObserverHarness {- observe() {}- disconnect() {}- }-- class WebSocketHarness {+ class Socket {static OPEN = 1;- readyState = 0;- onopen: (() => void) | null = null;- onmessage: ((event: MessageEvent) => void) | null = null;- onerror: (() => void) | null = null;- onclose: ((event: CloseEvent) => void) | null = null;- constructor(_url: string) { sockets.opened += 1; }- send() {}- close() {}+ static instances: Socket[] = [];+ readyState = 1;+ onopen?: () => void;+ onmessage?: (event: { data: string }) => void;+ onclose?: (event: { code: number }) => void;+ close = vi.fn();+ send = vi.fn();+ constructor(readonly url: string) { Socket.instances.push(this); }}- describe("WorkspaceTerminal connection budget", () => {- beforeEach(() => {- vi.useFakeTimers();- resetConnectBudgetForTests();- sockets.opened = 0;- vi.stubGlobal("ResizeObserver", ResizeObserverHarness);- vi.stubGlobal("WebSocket", WebSocketHarness);- });+ beforeEach(() => {+ vi.useFakeTimers();+ vi.clearAllMocks();+ resetConnectBudgetForTests();+ Socket.instances = [];+ vi.stubGlobal("WebSocket", Socket);+ vi.stubGlobal("ResizeObserver", class { observe() {} disconnect() {} });+ });+ afterEach(() => { cleanup(); resetConnectBudgetForTests(); vi.unstubAllGlobals(); vi.useRealTimers(); });- afterEach(() => {- resetConnectBudgetForTests();- vi.useRealTimers();- vi.unstubAllGlobals();- });+ it("pins the shell socket and retains it across tab visibility and appearance changes", () => {+ const props = { paneKey: "terminal-one", agentName: "shell", workspaceId: "workspace-one", title: "Terminal 1" };+ const { rerender, unmount } = render(<WorkspaceTerminal {...props} active appearance="dark" />);+ act(() => vi.runOnlyPendingTimers());+ const socket = Socket.instances[0];+ const url = new URL(socket.url);+ expect(url.searchParams.get("agent")).toBe("shell");+ expect(url.searchParams.get("workspace_id")).toBe("workspace-one");+ rerender(<WorkspaceTerminal {...props} active={false} appearance="light" />);+ terminal.focus.mockClear();+ act(() => socket.onmessage?.({ data: JSON.stringify({ t: "ready" }) }));+ expect(terminal.focus).not.toHaveBeenCalled();+ rerender(<WorkspaceTerminal {...props} active appearance="light" />);+ act(() => vi.runOnlyPendingTimers());+ expect(Socket.instances).toHaveLength(1);+ expect(socket.close).not.toHaveBeenCalled();+ expect(terminal.focus).toHaveBeenCalled();+ unmount();+ expect(socket.close).toHaveBeenCalledOnce();+ expect(terminal.dispose).toHaveBeenCalledOnce();+ });- it("paces a burst of workspace terminal mounts", () => {- const panes = Array.from({ length: 20 }, (_, index) =>- render(<WorkspaceTerminal paneKey={`pane-${index}`} title={`Pane ${index}`} />),- );- act(() => vi.advanceTimersByTime(0));- expect(sockets.opened).toBe(BURST);- act(() => vi.advanceTimersByTime(5_000));- expect(sockets.opened).toBe(20);- panes.forEach((pane) => pane.unmount());- });+ it("cancels a queued connection when its tab closes before the budget grants it", () => {+ const { unmount } = render(<WorkspaceTerminal paneKey="one" agentName="shell" workspaceId="workspace-one" title="Terminal" />);+ unmount();+ act(() => vi.runOnlyPendingTimers());+ expect(Socket.instances).toHaveLength(0);+ });++++it("paces a burst of workspace terminal mounts through the shared connect budget", () => {++ const panes = Array.from({ length: 20 }, (_, index) =>++ render(<WorkspaceTerminal paneKey={`pane-${index}`} title={`Pane ${index}`} />),++ );++ act(() => vi.advanceTimersByTime(0));++ expect(Socket.instances).toHaveLength(BURST);++ act(() => vi.advanceTimersByTime(5_000));++ expect(Socket.instances).toHaveLength(20);++ panes.forEach((pane) => pane.unmount());++});+- it("cancels queued connects when panes unmount", () => {- const panes = Array.from({ length: 20 }, (_, index) =>- render(<WorkspaceTerminal paneKey={`pane-${index}`} title={`Pane ${index}`} />),- );- act(() => vi.advanceTimersByTime(0));- expect(sockets.opened).toBe(BURST);- panes.forEach((pane) => pane.unmount());- act(() => vi.advanceTimersByTime(5_000));- expect(sockets.opened).toBe(BURST);- });++it("cancels queued connects when a burst of panes unmounts", () => {++ const panes = Array.from({ length: 20 }, (_, index) =>++ render(<WorkspaceTerminal paneKey={`pane-${index}`} title={`Pane ${index}`} />),++ );++ act(() => vi.advanceTimersByTime(0));++ expect(Socket.instances).toHaveLength(BURST);++ panes.forEach((pane) => pane.unmount());++ act(() => vi.advanceTimersByTime(5_000));++ expect(Socket.instances).toHaveLength(BURST);+});diff --cc jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.tsxindex d0472d58f9,bdd02d578a..de37e9a99a--- a/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.tsx+++ b/jarvis/ui/web/frontend/src/components/workspace/WorkspaceTerminal.tsx@@@ -163,7 -185,8 +185,10 @@@ export function WorkspaceTerminal(sendResize();});- {++ // Workspace panes share the same connection budget as the app and IDE++ // sockets. A grid mounting at once must not bypass the wake-storm cap.+ const cancelConnect = requestConnect(() => {+ if (disposed) return;const params: Record<string, string> = {cols: String(term.cols || 80),rows: String(term.rows || 24),@@@ -171,76 -194,71 +196,77 @@@if (agentName) params.agent = agentName;else if (installName) params.install = installName;if (workspaceId) params.workspace_id = workspaceId;+ else if (folder) params.folder = folder;- // Workspace panes share the same connection budget as the app and IDE- // sockets. A grid mounting at once must not bypass the wake-storm cap.- cancelConnect = requestConnect(() => {- if (disposed) return;- ws = new WebSocket(buildUrl(paneKey, params));++ try {++ ws = new WebSocket(buildUrl(paneKey, params));++ } catch {++ setStatus("error");++ setError("Connection to the terminal failed.");++ return;++ }+ ws.onopen = () => {+ setStatus("connecting");+ // Push the ACTUAL pane size to the PTY now that we can send. The spawn+ // used a best-effort size (the mount-time fit often runs before the+ // grid cell is measured), and resizes fired while the socket was still+ // connecting were dropped — so without this the agent's full-screen TUI+ // keeps drawing at the wrong dimensions (cramped / clipped on the+ // right). A second deferred fit catches any late grid layout.+ sendResize();+ requestAnimationFrame(sendResize);+ };+ ws.onmessage = (ev) => {+ let msg: { t?: string; d?: string; code?: number; message?: string };try {- ws = new WebSocket(buildUrl(paneKey, params));+ msg = JSON.parse(ev.data as string);} catch {- setStatus("error");- setError("Connection to the terminal failed.");return;}- ws.onopen = () => {- setStatus("connecting");- // Push the ACTUAL pane size to the PTY now that we can send. The spawn- // used a best-effort size (the mount-time fit often runs before the- // grid cell is measured), and resizes fired while the socket was still- // connecting were dropped — so without this the agent's full-screen TUI- // keeps drawing at the wrong dimensions (cramped / clipped on the- // right). A second deferred fit catches any late grid layout.- sendResize();- requestAnimationFrame(sendResize);- };- ws.onmessage = (ev) => {- let msg: { t?: string; d?: string; code?: number; message?: string };- try {- msg = JSON.parse(ev.data as string);- } catch {- return;- }- if (msg.t === "o") term.write(msg.d ?? "");- else if (msg.t === "ready") {- everLive = true;- setStatus("live");- if (activeRef.current) term.focus();- } else if (msg.t === "exit") {- setStatus("exited");- term.write(`\r\n\x1b[33m[process exited: ${msg.code ?? "?"}]\x1b[0m\r\n`);- } else if (msg.t === "error") {- setStatus("error");- setError(msg.message ?? "terminal error");+ if (msg.t === "o") term.write(msg.d ?? "");+ else if (msg.t === "ready") {+ const firstReady = !everLive;+ everLive = true;+ setStatus("live");+ if (activeRef.current) term.focus();+ const input = initialInputRef.current;+ if (firstReady && input && ws && ws.readyState === WebSocket.OPEN) {+ ws.send(JSON.stringify({ t: "i", d: input }));}- };- ws.onerror = () => {+ } else if (msg.t === "exit") {+ setStatus("exited");+ term.write(`\r\n\x1b[33m[process exited: ${msg.code ?? "?"}]\x1b[0m\r\n`);+ } else if (msg.t === "error") {setStatus("error");- setError("Connection to the terminal failed.");- };- ws.onclose = (ev) => {- if (everLive) {- setStatus("exited");- } else if (!disposed) {- // Closed during the handshake (e.g. 4401 auth) — surface it honestly- // instead of hanging on "connecting" forever (mirrors PtyTerminal).- setStatus("error");- setError((e) =>- e ??- (ev.code === 4401- ? "Terminal authorization failed — reopen to retry."- : `Terminal connection closed (code ${ev.code || "?"}).`),- );- }- };+ setError(msg.message ?? "terminal error");+ }+ };+ ws.onerror = () => {+ setStatus("error");+ setError("Connection to the terminal failed.");+ };+ ws.onclose = (ev) => {+ if (everLive) {+ setStatus("exited");+ } else if (!disposed) {+ // Closed during the handshake (e.g. 4401 auth) — surface it honestly+ // instead of hanging on "connecting" forever (mirrors PtyTerminal).+ setStatus("error");+ setError((e) =>+ e ??+ (ev.code === 4401+ ? "Terminal authorization failed — reopen to retry."+ : `Terminal connection closed (code ${ev.code || "?"}).`),+ );+ }+ };- term.onData((data) => {- if (ws && ws.readyState === WebSocket.OPEN) {- ws.send(JSON.stringify({ t: "i", d: data }));- }- });- }, 0);- }+ term.onData((data) => {+ if (ws && ws.readyState === WebSocket.OPEN) {+ ws.send(JSON.stringify({ t: "i", d: data }));+ }+ });+ });window.addEventListener("resize", sendResize);const ro = new ResizeObserver(() => sendResize());diff --cc jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 3829333cfd,c522ac10fc..1548a89540--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@@ -5886,18 -5987,9 +6022,11 @@@},"trace_report": {"locale": "de",- "copy": "Kopieren",- "copied": "Kopiert",- "copy_failed": "Kopieren fehlgeschlagen","show_more": "Mehr anzeigen","show_less": "Weniger anzeigen",- "worked_for": "{duration} gearbeitet",- "worked": "Gearbeitet",- "thought_for": "{duration} nachgedacht",- "thought": "Nachgedacht","took": "Dauer: {duration}",+ "failed_count_one": "{count} fehlgeschlagen",+ "failed_count_other": "{count} fehlgeschlagen","act": {"command_one": "hat einen Befehl ausgeführt","command_other": "hat Befehle ausgeführt",@@@ -6529,6 -6807,9 +6844,9 @@@},"ember": {"description": "Ein Babydrache: bläst beim Nachdenken Rauchringe, speit bei Erfolg Feuer."+ },- "cocoa": {- "description": "Ein schokobrauner Labrador-Welpe: legt beim Zuhören den Kopf schief, buddelt beim Arbeiten, flitzt bei Erfolg im Kreis."++ "cocoa": {++ "description": "Ein schokobrauner Labrador-Welpe: legt beim Zuhören den Kopf schief, buddelt beim Arbeiten, flitzt bei Erfolg im Kreis."}},"create_dialog": {diff --cc jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 6c8118d12e,148429211b..26d11fad91--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@@ -5886,18 -6020,9 +6022,11 @@@},"trace_report": {"locale": "en",- "copy": "Copy",- "copied": "Copied",- "copy_failed": "Could not copy","show_more": "Show more","show_less": "Show less",- "worked_for": "Worked for {duration}",- "worked": "Worked",- "thought_for": "Thought for {duration}",- "thought": "Thought","took": "Took {duration}",+ "failed_count_one": "{count} failed",+ "failed_count_other": "{count} failed","act": {"command_one": "ran a command","command_other": "ran commands",diff --cc jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 9b662a70da,5065a01a57..ae2099d502--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@@ -5886,18 -5987,9 +6022,11 @@@},"trace_report": {"locale": "es",- "copy": "Copiar",- "copied": "Copiado",- "copy_failed": "No se pudo copiar","show_more": "Mostrar más","show_less": "Mostrar menos",- "worked_for": "Trabajó durante {duration}",- "worked": "Trabajó",- "thought_for": "Pensó durante {duration}",- "thought": "Pensó","took": "Tardó {duration}",+ "failed_count_one": "{count} falló",+ "failed_count_other": "{count} fallaron","act": {"command_one": "ejecutó un comando","command_other": "ejecutó comandos",diff --cc jarvis/ui/web/frontend/src/i18n/locales/onboarding/de.jsonindex 65fb1ba1ef,f50fa7c7a9..18a529e351--- a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/de.json@@@ -3,198 -3,101 +3,99 @@@"back": "Zurück","continue": "Weiter","step_of": "{current} von {total}",- "welcome": {- "skip_all": "Einrichtung überspringen, ich kenne mich aus",- "title": "Willkommen",- "lede": "Zuerst ein kurzer Blick darauf, was {name} ist und wie es funktioniert. Danach richten wir es direkt hier in der App ein: einen API-Schlüssel, ein Abo für deine Agents und dein Weckwort.",- "language": "Sprache",- "lang_en": "English",- "lang_de": "Deutsch",- "lang_es": "Español",- "start": "Los geht's"+ "window": {+ "title": "{name} einrichten",+ "progress": "Fortschritt der Einrichtung",+ "language": "Sprache"},- "how": {- "title": "So funktioniert {name}",- "lede": "Dein Pet führt dich durch die App und erklärt, wie {name} funktioniert.",- "next": "Weiter",- "prev": "Zurück",- "skip": "Überspringen",- "finish": "Jetzt einrichten",- "beat_of": "Erklärung {current} von {total}",- "beats": {- "hello": "Hi, ich bin {pet}! Bevor wir etwas einrichten, zeig ich dir, wie {name} funktioniert. Geht schnell, und du siehst dabei die echte App.",- "talk": "Hier fängt alles an. Du sprichst mit einem einzigen Assistenten: {name}. Tipp hier oder drück den runden Knopf und sprich einfach. Du wählst nie selbst ein Werkzeug oder Modell; {name} entscheidet, was gebraucht wird.",- "brain": "Zum Denken braucht {name} ein Gehirn: ein KI-Modell von OpenAI, Google, Anthropic oder einem anderen Anbieter, oder eins auf deinem eigenen Computer. Ein Schlüssel reicht, den fügen wir gleich zusammen hinzu.",- "tools": "Dann braucht {name} Hände. Es kann deinen Computer und Browser selbst bedienen, dazu jede App, die du hier verbindest: Mail, Kalender, Notizen, Smart Home. Wenn du etwas willst, sucht es sich das passende Werkzeug selbst.",- "agents": "Große Aufgaben wie eine Recherche, ein Bericht oder eine Webseite gehen an Agents. Das ist das Team von {name}: {name} gibt ihnen die Arbeit, redet weiter mit dir, und ein Prüfer kontrolliert das Ergebnis, bevor es bei dir ankommt.",- "ide": "Hier arbeiten Coding-Agents wie Claude Code und Codex, in echten Terminals an deinen eigenen Projekten. Tipp ihnen direkt, oder lass {name} sie per Stimme steuern.",- "results": "Was dabei herauskommt, also Seiten, Berichte oder Bilder, landet in Artifacts. Kurze Antworten kommen direkt im Chat oder laut gesprochen zurück.",- "memory": "{name} merkt sich auch Dinge. Was du erzählst, landet in seinen Notizen und deinem Profil, gespeichert auf deinem Computer. So musst du dich nie wiederholen.",- "safety": "Und du behältst die Kontrolle. Harmloses passiert einfach. Alles, was etwas sendet, löscht oder Geld kostet, wartet zuerst auf dein Ja.",- "done": "Das ist die ganze Idee: Du sprichst, {name} denkt nach, nutzt Werkzeuge, holt Agents dazu und bringt dir das Ergebnis. Später nicht weiter? Frag einfach {name}. Jetzt geben wir ihm ein Gehirn."- }- },- "keys": {- "next_hint": "Als Nächstes: Verbinde die Abos, die du schon bezahlst, damit deine Agents arbeiten können.",- "no_key": "Noch kein Schlüssel? Ein kostenloses lokales Modell geht auch (Einstellungen → Lokale Modelle), oder überspring es und füg später einen hinzu. Ganz ohne bleiben Chat und Stimme aus.",- "live_missing": "Der Chat läuft. Für die Live-Stimme brauchst du einen OpenAI- oder Gemini-Schlüssel; bis dahin spricht {name} auf die klassische Art, etwas langsamer.",- "live_ready": "Die Live-Stimme ist an: Du sprichst, und {name} antwortet sofort.",- "title": "Einen API-Schlüssel eintragen",- "lede": "Das ist die Seite API-Schlüssel. Füg einen Schlüssel in eine Anbieter-Karte ein und speichere ihn; mehr braucht {name} nicht, um zu denken und zu sprechen. Ein OpenAI- (ChatGPT) oder Google-Gemini-Schlüssel bringt zusätzlich die Live-Stimme.",- "waiting": "Warte auf einen Schlüssel…",- "connecting": "Alles wird eingeschaltet…",- "connected": "Verbunden: {provider}.",- "present": "Ein Schlüssel ist gespeichert. Du kannst weiter.",- "partial": "Einige Teile wurden nicht umgestellt ({parts}). Du kannst das später auf dieser Seite beheben.",- "security": "Schlüssel liegen im Schlüsselbund deines Systems und gehen nur an den Anbieter, den du gewählt hast.",- "later": "Ich trage später einen Schlüssel ein"+ "name": {+ "pill": "Name",+ "title": "Hey! Wie möchtest du mich nennen?",+ "lede": "Such dir einen Namen aus. Er ist auch mein Weckwort: Sag ihn laut, und ich höre zu. Du kannst ihn jederzeit in den Einstellungen ändern.",+ "label": "Name des Assistenten",+ "placeholder": "Namen eingeben…"},- "subscriptions": {- "title": "Verbinde ein Abo für deine Agents",- "lede": "Das ist der Tab Agents. Agents laufen am besten mit einem Abo, das du schon bezahlst; wir empfehlen Claude (Pro oder Max) oder ChatGPT (Codex). Klick in seiner Zeile auf Verbinden, dein Browser öffnet sich einmal.",- "waiting": "Noch kein Abo verbunden…",- "connected": "Verbunden: {names}.",- "why": "Ein Abo ist ein fester Monatspreis. Ohne Abo nutzen die Agents deinen API-Schlüssel, und jeder Auftrag wird einzeln abgerechnet.",- "later": "Ich verbinde später eins"+ "connect": {+ "pill": "Verbinden",+ "title": "Verbinde deine KI",+ "lede": "Melde dich mit einem Abo an, das du schon bezahlst, oder füge einen API-Schlüssel ein. Eins davon reicht, damit {name} denken und sprechen kann.",+ "sign_in": "Anmelden",+ "api_key": "API-Schlüssel",+ "ready": "Bereit",+ "checking": "Wird geprüft…",+ "waiting": "Warte…",+ "signed_in": "Angemeldet",+ "signed_in_as": "Angemeldet als {account}",+ "key_saved": "API-Schlüssel gespeichert",+ "plans_or_key": "{plans} oder ein API-Schlüssel",+ "key_only": "API-Schlüssel",+ "more": "Weitere Anbieter",+ "finish_in_browser": "Schließ die Anmeldung in deinem Browser ab.",+ "install_first": "Installiere es zuerst: Führe das in einem Terminal aus und prüfe dann erneut.",+ "check_again": "Erneut prüfen",+ "copy": "Befehl kopieren",+ "key_connecting": "Alles wird eingeschaltet…",+ "key_connected": "Verbunden: {provider}.",+ "key_partial": "Einige Teile wurden nicht umgestellt ({parts}). Du kannst das später auf der Seite API-Schlüssel beheben.",+ "live_ready": "Live-Sprache ist an: Sprich, und {name} antwortet sofort.",+ "live_missing": "Der Chat funktioniert. Live-Sprache braucht einen OpenAI- oder Gemini-Schlüssel; bis dahin spricht {name} auf die klassische Art, etwas langsamer.",+ "key_security": "Abos kosten einen festen Monatspreis. Schlüssel landen im Schlüsselbund deines Systems und gehen nur an den Anbieter, den du gewählt hast.",+ "nothing_yet": "Noch nichts verbunden. Ohne Abo oder Schlüssel bleiben Chat und Sprache aus. Du kannst später auf der Seite API-Schlüssel etwas verbinden.",+ "later": "Erst mal überspringen"},"voice": {- "title": "Wähle dein Weckwort",- "lede": "Tippe hier dein Wort nach „Hey“ ein und speichere es. Das Wort wird auch der Name deines Assistenten. Kein Weckwort? Das Anruf-Kürzel funktioniert jederzeit.",- "on": "„{phrase}“ ist an. Sag es jederzeit.",- "saved": "„{phrase}“ ist gespeichert. Schalte oben „Aktivierungswort einschalten“ an, damit es immer gehört wird; bis dahin funktioniert das Anruf-Kürzel.",- "off": "Noch kein Weckwort. Bis dahin funktioniert das Anruf-Kürzel.",- "later": "Überspringen, ich nutze das Anruf-Kürzel"- },- "ready": {- "title": "Alles bereit",- "lede": "Das ist eingerichtet. Als Nächstes zeigt dir eine kurze Tour die App.",- "row_brain": "Gehirn",- "row_agents": "Agents",- "row_voice": "Aktivierung",- "no_subscription": "Kein Abo",- "no_key": "Noch kein Schlüssel",- "shortcut": "Anruf-Kürzel",- "autostart": "Bei der Anmeldung starten",- "no_key_note": "Ohne Schlüssel bleiben Chat und Sprache aus, bis du auf der Seite API-Keys einen einträgst.",- "preview_note": "Das ist eine Wiederholung, deshalb startet nichts neu.",- "restart_note": "Nach der Tour startet die App einmal neu (etwa zehn Sekunden), damit alles eingeschaltet ist.",- "start": "Zeig mir die App"- }- },- "app_tour": {- "label": "App-Tour",- "next": "Weiter",- "finish": "Fertig",- "skip": "Tour überspringen",- "step_of": "{current} von {total}",- "replay_title": "Onboarding nochmal machen",- "replay_body": "Erklärt noch einmal, wie {name} funktioniert, führt dich durch die Einrichtung (API-Schlüssel, Abos für Agents, Weckwort) und danach durch den kurzen Rundgang. Nichts startet neu.",- "replay": "Wiederholen",- "steps": {- "voice": "So sprichst du mit {name}. Klick auf die Leiste, sag dein Weckwort oder drück dein Anruf-Kürzel, dann sprich einfach. Die Welle zeigt, wer gerade redet.",- "new_chat": "Lieber tippen? Hier startest du einen neuen Chat, als Text oder mit Stimme. Jedes Gespräch landet unter Letzte Chats.",- "agents_world": "Das ist das Verse, deine Agenten bei der Arbeit. Klick einen an, um mit ihm zu chatten oder ihm eine Aufgabe zu geben. Weiter bringt dich zurück.",- "voice_hub": "Unter Stimme findest du Diktat in jede App, deine eigene Wortliste und gesprochene Kürzel.",- "settings": "Hier findest du Einstellungen, API-Schlüssel, Kosten und dein Profil. Die Tour kannst du jederzeit unter Einstellungen → App wiederholen.",- "done": "Das war der Rundgang. Sprich mit {name}, wann immer du willst, und wenn du mal nicht weiterweißt, frag einfach {name}. Unter Einstellungen → App kannst du das Onboarding nochmal machen."- }- },- "first_steps": {- "title": "Erste Schritte",- "progress": "{done}/{total}",- "collapse": "Minimieren",- "close": "Schließen",- "quest_of": "Schritt {current} von {total}",- "how_label": "So funktioniert's:",- "waiting": "Gesendet. Schau in den Chat: {name} ist dran.",- "next": "Nächster Schritt",- "finish": "Abschließen",- "skip": "Diesen überspringen",- "try": {- "send": "Für mich senden",- "voice": "Sprachmodus öffnen",- "open": "Hinbringen"- },- "show": {- "memory": "Notizen öffnen",- "artifact": "Artifacts öffnen",- "agent": "In Agents ansehen"- },- "replay_title": "Erste Schritte mit {name}",- "replay": "Starten",- "replay_body": "Zehn kleine, echte Dinge zum Ausprobieren mit {name}: sprechen, Werkzeuge nutzen, sich etwas merken, etwas bauen, an Agents abgeben. Jedes wird erklärt, nachdem es passiert ist.",- "finished": {- "title": "Du kennst jetzt die Grundlagen!",- "body": "Du hast {done} von {total} ersten Schritten geschafft. Ab jetzt sprichst du einfach mit {name}: Es entscheidet selbst, ob es antwortet, ein Werkzeug nutzt oder einen Agent dazuholt. Nicht weiter? Frag {name}.",- "close": "Schließen"+ "pill": "Stimme",+ "title": "So sprichst du mit {name}",+ "lede": "Schreib im Chat oder sprich einfach: Sag dein Weckwort oder drück dein Anruf-Tastenkürzel.",+ "wake_title": "Weckwort: {phrase}",+ "call_title": "Anruf-Tastenkürzel",+ "call_detail": "Drück es irgendwo, um loszusprechen. Klick auf die Tasten, um dein eigenes festzulegen.",+ "call_recording": "Halte die gewünschten Tasten gedrückt und lass dann los. Esc bricht ab.",+ "call_none": "Noch kein Tastenkürzel. Klick auf das Feld und drück die gewünschten Tasten.",+ "call_press": "Klicken, dann Tasten drücken",+ "call_change": "Anruf-Tastenkürzel ändern",+ "call_saved": "Gespeichert. Drück es irgendwo, um loszusprechen.",+ "call_refused": "Diese Kombination geht nicht. Probier eine andere.",+ "no_word": "Noch kein Weckwort",+ "wake_on": "Hört immer auf dein Weckwort. Es wird direkt hier auf diesem Computer erkannt.",+ "wake_off": "Aus: Drück dein Anruf-Tastenkürzel, um zu sprechen. Schalte es ein, damit dein Weckwort immer gehört wird.",+ "wake_switch": "Immer auf das Weckwort hören",+ "after_restart": "Das wird mit dem Neustart am Ende eingeschaltet.",+ "login_title": "Beim Anmelden starten",+ "login_detail": "Öffnet {name}, wenn dein Computer startet, damit es dich gleich hören kann.",+ "preview_note": "Das ist eine Wiederholung, es wird nichts neu gestartet.",+ "restart_note": "Als Nächstes zeigt dir ein kurzer Rundgang die App. Am Ende startet die App einmal neu (etwa zehn Sekunden), um alles einzuschalten.",+ "start": "Zeig mir alles"},- "quests": {- "wake": {- "title": "Weck {name} auf",- "ask": "Sag dein Weckwort laut, zum Beispiel „Hey {name}“. Oder öffne den Sprachmodus und drück den runden Knopf in der Chatleiste. Dann frag einfach los.",- "explain": "{name} hört zu. Mehr braucht es nicht: aufwecken und reden wie mit einem Menschen.",- "how": "Dein Weckwort wird direkt hier auf deinem Computer erkannt. Erst danach geht deine Sprache an das Gehirn, und die Antwort kommt als Stimme zurück."- },- "ask": {- "title": "Stell deine erste Frage",- "ask": "Tipp oder sag eine Frage. Probier diese:",- "prompt": "Was kannst du für mich tun? Nenn mir drei Beispiele aus meinem Alltag.",- "explain": "Das war der einfachste Weg: Deine Worte gingen an das Gehirn, und es hat direkt geantwortet.",- "how": "Das Gehirn ist das KI-Modell, das du verbunden hast. Einfache Fragen brauchen keine Werkzeuge, deshalb kommt die Antwort in Sekunden. Jeder Chat wird unter „Letzte Chats“ gespeichert."- },- "tool": {- "title": "Lass es ein Werkzeug benutzen",- "ask": "Jetzt bitte um etwas, wofür es seine Hände braucht, nicht nur seinen Kopf:",- "prompt": "Öffne wikipedia.org in meinem Browser.",- "explain": "Diesmal hat das Gehirn nicht nur geantwortet: Es hat ein Werkzeug benutzt, um an deinem Computer zu handeln.",- "how": "Werkzeuge sind die Hände von {name}. Das Gehirn wählt eines, der Sicherheitscheck gibt es frei, und es läuft. Unter jeder Antwort kannst du die Schritte aufklappen und jedes benutzte Werkzeug sehen."- },- "screen": {- "title": "Lass es auf deinen Bildschirm schauen",- "ask": "{name} kann deinen Bildschirm sehen, aber nur, wenn du fragst. Probier:",- "prompt": "Was ist gerade auf meinem Bildschirm? Beschreib es kurz.",- "explain": "{name} hat einmal auf deinen Bildschirm geschaut und ihn beschrieben.",- "how": "Ein Blick auf den Bildschirm ist ein einzelnes Foto, nur dann, wenn eine Anfrage es braucht. Es geht wie ein Bild an das Gehirn. Nichts zeichnet deinen Bildschirm im Hintergrund auf."- },- "memory": {- "title": "Bring ihm etwas bei",- "ask": "Erzähl {name} etwas, das es sich merken soll:",- "prompt": "Merk dir, dass meine Lieblingsfarbe Blau ist und dass ich kurze Antworten mag.",- "explain": "{name} hat das in seinem Gedächtnis gespeichert und nutzt es ab jetzt.",- "how": "Fakten landen in deinem Wiki und Profil, gespeichert auf deinem Computer. Bevor {name} antwortet, schaut es nach, was es über dich weiß. In den Notizen kannst du alles lesen und bearbeiten."- },- "artifact": {- "title": "Lass es etwas bauen",- "ask": "{name} kann fertige Dinge bauen: Seiten, Übersichten, kleine Tools. Sag „Artifact“, um eins anzufordern:",- "prompt": "Erstelle ein Artifact: eine einseitige Übersicht über die Planeten unseres Sonnensystems, mit je einem spannenden Fakt.",- "explain": "{name} hat angefangen, die Seite zu bauen. Sobald sie fertig ist, erscheint sie in Artifacts.",- "how": "Ein Artifact ist eine größere Arbeit, deshalb gibt {name} sie an einen Helfer auf einem starken Modell ab. Der baut eine eigenständige Seite, und Artifacts bewahrt sie auf, damit du sie später wieder öffnen kannst."- },- "agent": {- "title": "Gib einem Agent eine große Aufgabe",- "ask": "Für längere Arbeit holt {name} einen Agent dazu. Du kannst weiterreden, während er arbeitet:",- "prompt": "Recherchiere die drei besten günstigen Laptops gerade und schreib mir einen kurzen Vergleich.",- "explain": "{name} hat die Aufgabe an einen Agent abgegeben. Er arbeitet im Hintergrund; das Ergebnis kommt in deinen Chat.",- "how": "{name} bleibt dein einziger Ansprechpartner. Es plant die Aufgabe und startet einen Agent, und ein Prüfer kontrolliert das Ergebnis, bevor es bei dir ankommt. Den Fortschritt siehst du unter Agents."- },- "team": {- "title": "Lern dein Team kennen",- "ask": "Agents sind Helfer mit einer eigenen Rolle. Öffne den Bereich Agents, um sie kennenzulernen.",- "explain": "Hier wohnen und arbeiten deine Agents.",- "how": "Leg einen eigenen Agent an, mit eigener Rolle, eigenem Modell und eigenen Anweisungen, zum Beispiel einen Rechercheur oder eine Texterin. Klick einen Agent an, um mit ihm zu chatten oder ihm einen Auftrag zu geben. {name} kann ihm auch für dich Arbeit geben."- },- "plugin": {- "title": "Verbinde eine App",- "ask": "Plugins verbinden {name} mit den Apps, die du nutzt: E-Mail, Kalender, Notizen, Smart Home und mehr.",- "explain": "Hier verbindest du deine Apps. Wähl eine, die du täglich nutzt, und klick auf Verbinden; dein Browser öffnet sich einmal zum Anmelden.",- "how": "Jede verbundene App wird ein neues Werkzeug für {name}. Danach fragst du einfach, zum Beispiel „Was steht morgen in meinem Kalender?“. Alles, was etwas sendet oder ändert, fragt dich trotzdem vorher."+ "tour": {+ "title": "Ein Rundgang durch {name}",+ "lede": "Dein Haustier führt dich durch die App und erklärt jeden Bereich.",+ "next": "Weiter",+ "finish": "Los geht's",+ "skip": "Überspringen",+ "labels": {+ "chat": "Chat",+ "voice": "Sprach-Chat",+ "agents": "Agents",+ "ide": "Agentic IDE",+ "plugins": "Plugins",+ "wake": "Weckwort",- "permissions": "Mac-Berechtigungen",+ "done": "Fertig"},- "ide": {- "title": "Lass Agents programmieren",- "ask": "Die Agentic IDE lässt Coding-Agents wie Claude Code und Codex in echten Terminals laufen, an deinen eigenen Projekten.",- "explain": "Das ist die Agentic IDE. Öffne einen Projektordner und starte in einem Fenster einen Coding-Agent.",- "how": "Jedes Fenster ist ein echtes Terminal mit eigenem Agent. Sprich mit ihnen per Tastatur oder per Stimme über {name}. Mehrere können nebeneinander am selben Projekt arbeiten."+ "stops": {+ "chat": "Hi, ich bin {pet}! Ich zeig dir alles. Das ist dein Chat mit {name}. Schreib hier einfach rein: eine Frage, eine Aufgabe, eine Datei zum Anschauen. Du wählst nie selbst ein Werkzeug oder Modell; {name} entscheidet, was gebraucht wird.",+ "voice": "Lieber reden? Das ist der Sprach-Chat. Klick auf die Leiste, sag dein Weckwort oder drück dein Anruf-Tastenkürzel und sprich einfach los. Die Welle zeigt, wer gerade spricht.",+ "agents": "Große Aufgaben wie Recherche, ein Bericht oder eine Website gehen an deine Agents. Sie sind das Team von {name}, jeder mit eigener Rolle und eigenem Modell. Unter Agents siehst du ihnen bei der Arbeit zu, chattest mit einem oder erstellst deinen eigenen.",+ "ide": "Die Agentic IDE lässt Coding-Agents wie Claude Code und Codex in echten Terminals an deinen eigenen Projekten arbeiten. Schreib ihnen direkt, oder lass {name} sie per Stimme steuern.",+ "plugins": "Plugins verbinden {name} mit den Apps, die du nutzt: Mail, Kalender, Notizen, Smart Home und mehr. Jedes wird zu einem neuen Werkzeug, und alles, was etwas sendet oder ändert, fragt dich vorher.",+ "wake": "Dein Weckwort findest du hier in den Einstellungen. Sag „Hey {name}“, und {name} hört zu. Ändere das Wort, wähle seine Sprache oder teste es jederzeit.",- "permissions": "Auf einem Mac braucht {name} deine Erlaubnis für Mikrofon, Bildschirm und die Steuerung von Apps. Erlaube hier, was du möchtest; jede Zeile aktualisiert sich von selbst.",+ "done": "Das war der Rundgang! Sprich mit {name}, wann immer du willst, und wenn du mal nicht weiterweißt, frag einfach. Unter Einstellungen → App startest du diese Einführung erneut."}}+ },+ "app_tour": {+ "replay_title": "Einführung wiederholen",+ "replay_body": "Öffnet das Einrichtungsfenster erneut (Name, KI-Verbindungen, Stimme) und danach den Rundgang durch die App. Es wird nichts neu gestartet.",+ "replay": "Wiederholen"}}diff --cc jarvis/ui/web/frontend/src/i18n/locales/onboarding/en.jsonindex f36a7d3597,53f8d27b6b..759459353d--- a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/en.json@@@ -3,198 -3,101 +3,99 @@@"back": "Back","continue": "Continue","step_of": "{current} of {total}",- "welcome": {- "skip_all": "Skip setup, I know my way around",- "title": "Welcome",- "lede": "First a short look at what {name} is and how it works. Then we set it up right here in the app: an API key, a subscription for your agents and your wake word.",- "language": "Language",- "lang_en": "English",- "lang_de": "Deutsch",- "lang_es": "Español",- "start": "Let's start"+ "window": {+ "title": "Set up {name}",+ "progress": "Setup progress",+ "language": "Language"},- "how": {- "title": "How {name} works",- "lede": "Your pet walks you through the app and explains how {name} works.",- "next": "Next",- "prev": "Back",- "skip": "Skip",- "finish": "Let's set it up",- "beat_of": "Explanation {current} of {total}",- "beats": {- "hello": "Hi, I'm {pet}! Before we set anything up, let me show you how {name} works. It's quick, and you'll see the real app while I explain.",- "talk": "Everything starts here. You talk to one assistant: {name}. Type here, or press the round button and just speak. You never pick a tool or a model yourself; {name} decides what's needed.",- "brain": "To think, {name} needs a brain: an AI model from OpenAI, Google, Anthropic or another provider, or one on your own computer. One key is enough, and we'll add it together in a moment.",- "tools": "Then {name} needs hands. It can use your computer and browser on its own, plus every app you connect here: mail, calendar, notes, smart home. When you ask for something, it picks the right tool itself.",- "agents": "Big jobs like research, a report or a website go to agents. They're {name}'s team: {name} hands them the work and keeps talking with you, and a reviewer checks the result before it reaches you.",- "ide": "Coding agents such as Claude Code and Codex work here, in real terminals on your own projects. Type to them directly, or let {name} steer them by voice.",- "results": "Whatever comes out, like pages, reports or images, lands in Artifacts. Short answers come straight back in the chat or spoken aloud.",- "memory": "{name} also remembers. What you tell it goes into its notes and your profile, stored on your computer, so you never have to repeat yourself.",- "safety": "And you stay in control. Harmless things just happen. Anything that sends, deletes or costs money waits for your yes first.",- "done": "That's the whole idea: you talk, {name} thinks, uses tools, brings in agents and hands you the result. Stuck later? Just ask {name}. Now let's give it a brain."- }+ "name": {+ "pill": "Name",+ "title": "Hey! What would you like to call me?",+ "lede": "Pick any name you like. It is also my wake word: say it out loud, and I'm listening. You can change it anytime in Settings.",+ "label": "Assistant name",+ "placeholder": "Type a name…"},- "keys": {- "next_hint": "Next: connect the subscriptions you already pay for, so your agents can work.",- "no_key": "No key yet? A free local model works too (Settings → Local models), or skip and add one later. Without any, chat and voice stay off.",- "live_missing": "Chat works. Live voice needs an OpenAI or Gemini key; until then {name} speaks the classic way, a little slower.",+ "connect": {+ "pill": "Connect",+ "title": "Connect your AI",+ "lede": "Sign in with a subscription you already pay for, or paste an API key. One of them is enough for {name} to think and talk.",+ "sign_in": "Sign in",+ "api_key": "API key",+ "ready": "Ready",+ "checking": "Checking…",+ "waiting": "Waiting…",+ "signed_in": "Signed in",+ "signed_in_as": "Signed in as {account}",+ "key_saved": "API key saved",+ "plans_or_key": "{plans}, or an API key",+ "key_only": "API key",+ "more": "More providers",+ "finish_in_browser": "Finish the sign-in in your browser.",+ "install_first": "Install it first: run this in a terminal, then check again.",+ "check_again": "Check again",+ "copy": "Copy command",+ "key_connecting": "Switching everything on…",+ "key_connected": "Connected: {provider}.",+ "key_partial": "Some parts did not switch ({parts}). You can fix them later on the API Keys page.","live_ready": "Live voice is on: talk, and {name} answers right away.",- "title": "Add one API key",- "lede": "This is the API Keys page. Paste one key into a provider card and save it; that is all {name} needs to think and talk. An OpenAI (ChatGPT) or Google Gemini key also gives you live voice.",- "waiting": "Waiting for a key…",- "connecting": "Switching everything on…",- "connected": "Connected: {provider}.",- "present": "A key is saved. You can continue.",- "partial": "Some parts did not switch ({parts}). You can fix them later on this page.",- "security": "Keys go into your system's keychain and only ever to the provider you picked.",- "later": "I'll add a key later"- },- "subscriptions": {- "title": "Connect a subscription for your agents",- "lede": "This is the Agents tab. Agents run best on a subscription you already pay for; we recommend Claude (Pro or Max) or ChatGPT (Codex). Click Connect on its row, and your browser opens once.",- "waiting": "No subscription connected yet…",- "connected": "Connected: {names}.",- "why": "A subscription is a flat monthly price. Without one, agents use your API key and each job is billed per use.",- "later": "I'll connect one later"+ "live_missing": "Chat works. Live voice needs an OpenAI or Gemini key; until then {name} speaks the classic way, a little slower.",+ "key_security": "Subscriptions are billed at a flat monthly price. Keys go into your system's keychain and only ever to the provider you picked.",+ "nothing_yet": "Nothing connected yet. Without a subscription or a key, chat and voice stay off. You can connect one later on the API Keys page.",+ "later": "Skip for now"},"voice": {- "title": "Choose your wake word",- "lede": "Type your word after \"Hey\" here and save it. The word also becomes the assistant's name. No wake word? The Call shortcut works anytime.",- "on": "\"{phrase}\" is on. Say it anytime.",- "saved": "\"{phrase}\" is saved. Turn on \"Activate wake word\" above to have it heard all the time; until then the Call shortcut works.",- "off": "No wake word yet. The Call shortcut works meanwhile.",- "later": "Skip, I'll use the Call shortcut"- },- "ready": {- "title": "All set",- "lede": "Here is what is set up. Next, a short tour shows you around the app.",- "row_brain": "Brain",- "row_agents": "Agents",- "row_voice": "Activation",- "no_subscription": "No subscription",- "no_key": "No key yet",- "shortcut": "Call shortcut",- "autostart": "Start at login",- "no_key_note": "Without a key, chat and voice stay off until you add one on the API Keys page.",+ "pill": "Voice",+ "title": "How you'll talk to {name}",+ "lede": "Type in the chat, or just speak: say your wake word, or press your Call shortcut.",+ "wake_title": "Wake word: {phrase}",+ "call_title": "Call shortcut",+ "call_detail": "Press it anywhere to start talking. Click the keys to choose your own.",+ "call_recording": "Hold the keys you want, then let go. Esc cancels.",+ "call_none": "No shortcut yet. Click the field and press the keys you want.",+ "call_press": "Click, then press keys",+ "call_change": "Change the Call shortcut",+ "call_saved": "Saved. Press it anywhere to start talking.",+ "call_refused": "This combination can't be used. Try another one.",+ "no_word": "No wake word yet",+ "wake_on": "Always listening for your wake word. It is recognised right here on this computer.",+ "wake_off": "Off: press your Call shortcut to talk. Turn it on to have your wake word heard all the time.",+ "wake_switch": "Always listen for the wake word",+ "after_restart": "This switches on with the restart at the end.",+ "login_title": "Start at login",+ "login_detail": "Opens {name} when your computer starts, so it is ready to hear you.","preview_note": "This is a replay, so nothing restarts.",- "restart_note": "When the tour ends, the app restarts once (about ten seconds) to switch everything on.",+ "restart_note": "Next, a short walk shows you around the app. At the end the app restarts once (about ten seconds) to switch everything on.","start": "Show me around"- }- },- "app_tour": {- "label": "App tour",- "next": "Next",- "finish": "Finish",- "skip": "Skip tour",- "step_of": "{current} of {total}",- "replay_title": "Do the onboarding again",- "replay_body": "Explains again how {name} works, walks you through setup (API keys, agent subscriptions, wake word), then the short tour of the app. Nothing restarts.",- "replay": "Replay",- "steps": {- "voice": "This is how you talk to {name}. Click the bar, say your wake word or press your Call keys, then just speak. The wave shows who is talking.",- "new_chat": "Rather type? Start a new chat here, as text or voice. Every conversation lands under Recent chats.",- "agents_world": "This is the Verse, your agents at work. Click one to chat with it or hand it a job. Next brings you back.",- "voice_hub": "Voice holds dictation into any app, your own word list and spoken shortcuts.",- "settings": "Settings, API keys, costs and your profile live here. You can replay this tour anytime from Settings → App.",- "done": "That's the tour. Talk to {name} whenever you like, and if you're ever stuck, just ask {name}. Settings → App runs the onboarding again."- }- },- "first_steps": {- "title": "First steps",- "progress": "{done}/{total}",- "collapse": "Minimise",- "close": "Close",- "quest_of": "Step {current} of {total}",- "how_label": "How it works:",- "waiting": "Sent. Watch the chat: {name} is on it.",- "next": "Next step",- "finish": "Finish",- "skip": "Skip this one",- "try": {- "send": "Send it for me",- "voice": "Open voice mode",- "open": "Take me there"- },- "show": {- "memory": "Open Notes",- "artifact": "Open Artifacts",- "agent": "Watch in Agents"},- "replay_title": "First steps with {name}",- "replay": "Start",- "replay_body": "Ten small, real things to try with {name}: talk, use tools, remember, build, hand off to agents. Each one is explained after it happened.",- "finished": {- "title": "You've got the basics!",- "body": "You completed {done} of {total} first steps. From now on, just talk to {name}: it decides whether to answer, use a tool or bring in an agent. Stuck? Ask {name}.",- "close": "Close"- },- "quests": {- "wake": {- "title": "Wake {name} up",- "ask": "Say your wake word out loud, for example \"Hey {name}\". Or open voice mode and press the round button in the chat bar. Then just ask anything.",- "explain": "{name} is listening. That's all it takes: wake it up and talk like you would to a person.",- "how": "Your wake word is recognised right here on your computer. Only after it does your speech go to the brain, and the answer comes back as a voice."- },- "ask": {- "title": "Ask your first question",- "ask": "Type or say a question. Try this one:",- "prompt": "What can you do for me? Give me three examples from my everyday life.",- "explain": "That was the simplest path: your words went to the brain, and it answered directly.",- "how": "The brain is the AI model you connected. Plain questions need no tools, so the answer comes in seconds. Every chat is saved under Recent chats."- },- "tool": {- "title": "Let it use a tool",- "ask": "Now ask for something that needs its hands, not just its head:",- "prompt": "Open wikipedia.org in my browser.",- "explain": "This time the brain did not just answer: it used a tool to act on your computer.",- "how": "Tools are {name}'s hands. The brain picks one, the safety check approves it, and it runs. Under each reply you can open the steps and see every tool it used."- },- "screen": {- "title": "Let it look at your screen",- "ask": "{name} can see your screen, but only when you ask. Try:",- "prompt": "What's on my screen right now? Describe it briefly.",- "explain": "{name} took one look at your screen and described it.",- "how": "A screen look is a single snapshot, taken only when a request needs it. It goes to the brain like a photo. Nothing records your screen in the background."- },- "memory": {- "title": "Teach it something",- "ask": "Tell {name} something worth keeping:",- "prompt": "Remember that my favourite colour is blue and that I prefer short answers.",- "explain": "{name} saved this to its memory and will use it from now on.",- "how": "Facts land in your Wiki and profile, stored on your computer. Before answering, {name} looks up what it knows about you. You can read and edit every note in Notes."- },- "artifact": {- "title": "Have it make something",- "ask": "{name} can build finished things: pages, overviews, small tools. Say \"artifact\" to ask for one:",- "prompt": "Create an artifact: a one-page overview of the planets in our solar system, with one fun fact each.",- "explain": "{name} started building the page. When it is ready, it appears in Artifacts.",- "how": "An artifact is a bigger piece of work, so {name} hands it to a worker on a strong model. It builds one self-contained page, and Artifacts keeps it for you to open again later."- },- "agent": {- "title": "Hand a big job to an agent",- "ask": "For longer work, {name} brings in an agent. You can keep talking while it works:",- "prompt": "Research the three best budget laptops right now and write me a short comparison.",- "explain": "{name} handed the job to an agent. It works in the background; the result comes back to your chat.",- "how": "{name} stays your single contact. It plans the job and starts an agent, and a reviewer checks the result before it reaches you. You can watch the progress in Agents."- },- "team": {- "title": "Meet your team",- "ask": "Agents are helpers with their own role. Open the Agents area to meet them.",- "explain": "This is where your agents live and work.",- "how": "Create your own agent with its own role, model and instructions, for example a researcher or a writer. Click an agent to chat with it or give it a job. {name} can also hand work to it for you."- },- "plugin": {- "title": "Connect an app",- "ask": "Plugins connect {name} to the apps you use: email, calendar, notes, smart home and more.",- "explain": "Here you connect your apps. Pick one you use every day and click Connect; your browser opens once to sign in.",- "how": "Each connected app becomes a new tool for {name}. Afterwards just ask, for example \"What's on my calendar tomorrow?\". Anything that sends or changes something still asks you first."+ "tour": {+ "title": "A walk through {name}",+ "lede": "Your pet walks you through the app and explains each section.",+ "next": "Next",+ "finish": "Let's go",+ "skip": "Skip",+ "labels": {+ "chat": "Chat",+ "voice": "Voice chat",+ "agents": "Agents",+ "ide": "Agentic IDE",+ "plugins": "Plugins",+ "wake": "Wake word",- "permissions": "Mac permissions",+ "done": "All set"},- "ide": {- "title": "Let agents write code",- "ask": "The Agentic IDE runs coding agents such as Claude Code and Codex in real terminals, on your own projects.",- "explain": "This is the Agentic IDE. Open a project folder and start a coding agent in a pane.",- "how": "Each pane is a real terminal with its own agent. Talk to them by typing, or by voice through {name}. Several can work side by side on the same project."+ "stops": {+ "chat": "Hi, I'm {pet}! Let me show you around. This is your chat with {name}. Type anything here: a question, a task, a file to look at. You never pick a tool or a model yourself; {name} decides what's needed.",+ "voice": "Rather talk? This is voice chat. Click the bar, say your wake word or press your Call shortcut, then just speak. The wave shows who is talking.",+ "agents": "Big jobs like research, a report or a website go to your agents. They're {name}'s team, each with its own role and model. Open Agents to watch them work, chat with one or create your own.",+ "ide": "The Agentic IDE runs coding agents such as Claude Code and Codex in real terminals, on your own projects. Type to them directly, or let {name} steer them by voice.",+ "plugins": "Plugins connect {name} to the apps you use: mail, calendar, notes, smart home and more. Each one becomes a new tool, and anything that sends or changes something asks you first.",+ "wake": "Your wake word lives here in Settings. Say \"Hey {name}\" and {name} listens. Change the word, pick its language or test it anytime.",- "permissions": "On a Mac, {name} needs your permission for the microphone, the screen and controlling apps. Allow the ones you want here; each row updates by itself.",+ "done": "That's the tour! Talk to {name} whenever you like, and if you're ever stuck, just ask. Settings → App runs this guide again."}}+ },+ "app_tour": {+ "replay_title": "Do the onboarding again",+ "replay_body": "Opens the setup window again (name, AI connections, voice), then the walk through the app. Nothing restarts.",+ "replay": "Replay"}}diff --cc jarvis/ui/web/frontend/src/i18n/locales/onboarding/es.jsonindex 93696100e8,6a701db4b2..c9b8ad154e--- a/jarvis/ui/web/frontend/src/i18n/locales/onboarding/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/onboarding/es.json@@@ -3,198 -3,101 +3,99 @@@"back": "Atrás","continue": "Continuar","step_of": "{current} de {total}",- "welcome": {- "skip_all": "Saltar la configuración, ya me oriento",- "title": "Bienvenido",- "lede": "Primero, un vistazo rápido a qué es {name} y cómo funciona. Después lo configuramos aquí mismo, en la aplicación: una clave de API, una suscripción para tus agentes y tu palabra de activación.",- "language": "Idioma",- "lang_en": "English",- "lang_de": "Deutsch",- "lang_es": "Español",- "start": "Empezar"+ "window": {+ "title": "Configura {name}",+ "progress": "Progreso de la configuración",+ "language": "Idioma"},- "how": {- "title": "Cómo funciona {name}",- "lede": "Tu mascota te guía por la aplicación y te explica cómo funciona {name}.",- "next": "Siguiente",- "prev": "Atrás",- "skip": "Saltar",- "finish": "A configurarlo",- "beat_of": "Explicación {current} de {total}",- "beats": {- "hello": "¡Hola, soy {pet}! Antes de configurar nada, te enseño cómo funciona {name}. Es rápido, y verás la aplicación real mientras te lo explico.",- "talk": "Todo empieza aquí. Hablas con un solo asistente: {name}. Escribe aquí, o pulsa el botón redondo y habla. Nunca eliges tú una herramienta o un modelo; {name} decide lo que hace falta.",- "brain": "Para pensar, {name} necesita un cerebro: un modelo de IA de OpenAI, Google, Anthropic u otro proveedor, o uno en tu propio ordenador. Basta con una clave, y la añadimos juntos en un momento.",- "tools": "Luego {name} necesita manos. Puede usar tu ordenador y tu navegador por sí mismo, además de cada app que conectes aquí: correo, calendario, notas, hogar inteligente. Cuando pides algo, elige solo la herramienta adecuada.",- "agents": "Los trabajos grandes, como una investigación, un informe o una web, van a los agentes. Son el equipo de {name}: {name} les pasa el trabajo y sigue hablando contigo, y un revisor comprueba el resultado antes de que te llegue.",- "ide": "Aquí trabajan agentes de programación como Claude Code y Codex, en terminales reales y en tus propios proyectos. Escríbeles directamente, o deja que {name} los dirija por voz.",- "results": "Lo que salga, como páginas, informes o imágenes, va a Artifacts. Las respuestas cortas vuelven directamente al chat o en voz alta.",- "memory": "{name} también recuerda. Lo que le cuentas va a sus notas y a tu perfil, guardados en tu ordenador, para que nunca tengas que repetirte.",- "safety": "Y tú mantienes el control. Lo inofensivo simplemente ocurre. Todo lo que envía, borra o cuesta dinero espera primero tu sí.",- "done": "Esa es toda la idea: hablas, {name} piensa, usa herramientas, llama a agentes y te entrega el resultado. ¿Te atascas luego? Pregúntale a {name}. Ahora démosle un cerebro."- }- },- "keys": {- "next_hint": "Siguiente: conecta las suscripciones que ya pagas para que tus agentes puedan trabajar.",- "no_key": "¿Aún sin clave? También sirve un modelo local gratuito (Ajustes → Modelos locales), o sáltalo y añade una más tarde. Sin ninguna, el chat y la voz quedan apagados.",- "live_missing": "El chat funciona. La voz en directo necesita una clave de OpenAI o Gemini; mientras tanto {name} habla de la forma clásica, algo más lenta.",- "live_ready": "La voz en directo está activa: hablas y {name} responde al instante.",- "title": "Añade una clave de API",- "lede": "Esta es la página de claves de API. Pega una clave en la tarjeta de un proveedor y guárdala; es todo lo que {name} necesita para pensar y hablar. Una clave de OpenAI (ChatGPT) o de Google Gemini también te da la voz en directo.",- "waiting": "Esperando una clave…",- "connecting": "Activando todo…",- "connected": "Conectado: {provider}.",- "present": "Hay una clave guardada. Puedes continuar.",- "partial": "Algunas partes no cambiaron ({parts}). Puedes arreglarlo más tarde en esta página.",- "security": "Las claves se guardan en el llavero de tu sistema y solo van al proveedor que elegiste.",- "later": "Añadiré una clave más tarde"+ "name": {+ "pill": "Nombre",+ "title": "¡Hola! ¿Cómo quieres llamarme?",+ "lede": "Elige el nombre que quieras. También es mi palabra de activación: dilo en voz alta y te escucho. Puedes cambiarlo cuando quieras en Ajustes.",+ "label": "Nombre del asistente",+ "placeholder": "Escribe un nombre…"},- "subscriptions": {- "title": "Conecta una suscripción para tus agentes",- "lede": "Esta es la pestaña Agentes. Los agentes funcionan mejor con una suscripción que ya pagas; recomendamos Claude (Pro o Max) o ChatGPT (Codex). Pulsa Conectar en su fila y tu navegador se abre una vez.",- "waiting": "Aún no hay ninguna suscripción conectada…",- "connected": "Conectado: {names}.",- "why": "Una suscripción es un precio mensual fijo. Sin ella, los agentes usan tu clave de API y cada encargo se cobra por uso.",- "later": "Conectaré una más tarde"+ "connect": {+ "pill": "Conectar",+ "title": "Conecta tu IA",+ "lede": "Inicia sesión con una suscripción que ya pagas o pega una clave de API. Con una de las dos, {name} ya puede pensar y hablar.",+ "sign_in": "Iniciar sesión",+ "api_key": "Clave de API",+ "ready": "Listo",+ "checking": "Comprobando…",+ "waiting": "Esperando…",+ "signed_in": "Sesión iniciada",+ "signed_in_as": "Sesión iniciada como {account}",+ "key_saved": "Clave de API guardada",+ "plans_or_key": "{plans} o una clave de API",+ "key_only": "Clave de API",+ "more": "Más proveedores",+ "finish_in_browser": "Termina de iniciar sesión en tu navegador.",+ "install_first": "Instálalo primero: ejecuta esto en una terminal y vuelve a comprobar.",+ "check_again": "Comprobar de nuevo",+ "copy": "Copiar comando",+ "key_connecting": "Activando todo…",+ "key_connected": "Conectado: {provider}.",+ "key_partial": "Algunas partes no cambiaron ({parts}). Puedes arreglarlo más tarde en la página Claves de API.",+ "live_ready": "La voz en vivo está activa: habla y {name} responde al instante.",+ "live_missing": "El chat funciona. La voz en vivo necesita una clave de OpenAI o Gemini; hasta entonces {name} habla de la forma clásica, un poco más lento.",+ "key_security": "Las suscripciones tienen un precio mensual fijo. Las claves se guardan en el llavero de tu sistema y solo van al proveedor que elegiste.",+ "nothing_yet": "Aún no hay nada conectado. Sin suscripción ni clave, el chat y la voz quedan apagados. Puedes conectar algo más tarde en la página Claves de API.",+ "later": "Saltar por ahora"},"voice": {- "title": "Elige tu palabra de activación",- "lede": "Escribe aquí tu palabra después de «Hey» y guárdala. La palabra también será el nombre de tu asistente. ¿Sin palabra? El atajo de llamada funciona en cualquier momento.",- "on": "«{phrase}» está activada. Dila cuando quieras.",- "saved": "«{phrase}» está guardada. Enciende «Activar palabra de activación» arriba para que se escuche siempre; mientras tanto funciona el atajo de llamada.",- "off": "Aún no hay palabra de activación. Mientras tanto funciona el atajo de llamada.",- "later": "Omitir, usaré el atajo de llamada"- },- "ready": {- "title": "Todo listo",- "lede": "Esto es lo que está configurado. Ahora, una breve visita te enseña la aplicación.",- "row_brain": "Cerebro",- "row_agents": "Agentes",- "row_voice": "Activación",- "no_subscription": "Sin suscripción",- "no_key": "Sin clave todavía",- "shortcut": "Atajo de llamada",- "autostart": "Iniciar al entrar en la sesión",- "no_key_note": "Sin clave, el chat y la voz siguen apagados hasta que añadas una en la página Claves API.",- "preview_note": "Esto es una repetición, así que no se reinicia nada.",- "restart_note": "Al terminar la visita, la aplicación se reinicia una vez (unos diez segundos) para activarlo todo.",- "start": "Enséñame la aplicación"- }- },- "app_tour": {- "label": "Visita guiada",- "next": "Siguiente",- "finish": "Terminar",- "skip": "Saltar visita",- "step_of": "{current} de {total}",- "replay_title": "Hacer el onboarding de nuevo",- "replay_body": "Vuelve a explicar cómo funciona {name}, te guía por la configuración (claves de API, suscripciones de agentes, palabra de activación) y luego por la visita breve de la aplicación. Nada se reinicia.",- "replay": "Repetir",- "steps": {- "voice": "Así hablas con {name}. Haz clic en la barra, di tu palabra de activación o pulsa tu atajo de llamada, y habla. La onda muestra quién está hablando.",- "new_chat": "¿Prefieres escribir? Empieza aquí un chat nuevo, por texto o por voz. Cada conversación queda en Chats recientes.",- "agents_world": "Este es el Verse, tus agentes trabajando. Haz clic en uno para chatear con él o darle una tarea. Siguiente te lleva de vuelta.",- "voice_hub": "En Voz tienes el dictado en cualquier aplicación, tu propia lista de palabras y atajos hablados.",- "settings": "Aquí están los ajustes, las claves de API, los costes y tu perfil. Puedes repetir esta visita cuando quieras en Ajustes → Aplicación.",- "done": "Esa fue la visita. Habla con {name} cuando quieras, y si alguna vez te atascas, pregúntale a {name}. En Ajustes → Aplicación puedes repetir el onboarding."- }- },- "first_steps": {- "title": "Primeros pasos",- "progress": "{done}/{total}",- "collapse": "Minimizar",- "close": "Cerrar",- "quest_of": "Paso {current} de {total}",- "how_label": "Cómo funciona:",- "waiting": "Enviado. Mira el chat: {name} está en ello.",- "next": "Siguiente paso",- "finish": "Terminar",- "skip": "Saltar este",- "try": {- "send": "Envíalo por mí",- "voice": "Abrir el modo de voz",- "open": "Llévame allí"- },- "show": {- "memory": "Abrir Notas",- "artifact": "Abrir Artifacts",- "agent": "Ver en Agentes"- },- "replay_title": "Primeros pasos con {name}",- "replay": "Empezar",- "replay_body": "Diez cosas pequeñas y reales para probar con {name}: hablar, usar herramientas, recordar, construir, pasar trabajo a agentes. Cada una se explica después de ocurrir.",- "finished": {- "title": "¡Ya dominas lo básico!",- "body": "Completaste {done} de {total} primeros pasos. A partir de ahora, simplemente habla con {name}: decide si responde, usa una herramienta o llama a un agente. ¿Atascado? Pregúntale a {name}.",- "close": "Cerrar"+ "pill": "Voz",+ "title": "Así hablarás con {name}",+ "lede": "Escribe en el chat o simplemente habla: di tu palabra de activación o pulsa tu atajo de llamada.",+ "wake_title": "Palabra de activación: {phrase}",+ "call_title": "Atajo de llamada",+ "call_detail": "Púlsalo en cualquier sitio para empezar a hablar. Haz clic en las teclas para elegir el tuyo.",+ "call_recording": "Mantén pulsadas las teclas que quieras y suéltalas. Esc cancela.",+ "call_none": "Aún no hay atajo. Haz clic en el campo y pulsa las teclas que quieras.",+ "call_press": "Haz clic y pulsa teclas",+ "call_change": "Cambiar el atajo de llamada",+ "call_saved": "Guardado. Púlsalo en cualquier sitio para empezar a hablar.",+ "call_refused": "Esta combinación no se puede usar. Prueba otra.",+ "no_word": "Aún no hay palabra de activación",+ "wake_on": "Siempre atento a tu palabra de activación. Se reconoce aquí mismo, en este ordenador.",+ "wake_off": "Apagado: pulsa tu atajo de llamada para hablar. Actívalo para que tu palabra de activación se oiga siempre.",+ "wake_switch": "Escuchar siempre la palabra de activación",+ "after_restart": "Se activa con el reinicio del final.",+ "login_title": "Iniciar al encender",+ "login_detail": "Abre {name} cuando arranca tu ordenador, para que esté listo para escucharte.",+ "preview_note": "Esto es una repetición, así que nada se reinicia.",+ "restart_note": "A continuación, un breve recorrido te enseña la app. Al final la app se reinicia una vez (unos diez segundos) para activarlo todo.",+ "start": "Enséñame la app"},- "quests": {- "wake": {- "title": "Despierta a {name}",- "ask": "Di tu palabra de activación en voz alta, por ejemplo «Hey {name}». O abre el modo de voz y pulsa el botón redondo de la barra del chat. Después pregunta lo que quieras.",- "explain": "{name} te escucha. No hace falta más: despiértalo y habla como con una persona.",- "how": "Tu palabra de activación se reconoce aquí mismo, en tu ordenador. Solo después tu voz va al cerebro, y la respuesta vuelve hablada."- },- "ask": {- "title": "Haz tu primera pregunta",- "ask": "Escribe o di una pregunta. Prueba esta:",- "prompt": "¿Qué puedes hacer por mí? Dame tres ejemplos de mi día a día.",- "explain": "Ese fue el camino más simple: tus palabras fueron al cerebro y respondió directamente.",- "how": "El cerebro es el modelo de IA que conectaste. Las preguntas sencillas no necesitan herramientas, así que la respuesta llega en segundos. Cada chat se guarda en Chats recientes."- },- "tool": {- "title": "Deja que use una herramienta",- "ask": "Ahora pide algo que necesite sus manos, no solo su cabeza:",- "prompt": "Abre wikipedia.org en mi navegador.",- "explain": "Esta vez el cerebro no solo respondió: usó una herramienta para actuar en tu ordenador.",- "how": "Las herramientas son las manos de {name}. El cerebro elige una, el control de seguridad la aprueba y se ejecuta. Bajo cada respuesta puedes abrir los pasos y ver cada herramienta usada."- },- "screen": {- "title": "Deja que mire tu pantalla",- "ask": "{name} puede ver tu pantalla, pero solo cuando lo pides. Prueba:",- "prompt": "¿Qué hay ahora mismo en mi pantalla? Descríbelo brevemente.",- "explain": "{name} miró una vez tu pantalla y la describió.",- "how": "Mirar la pantalla es una sola captura, tomada solo cuando una petición la necesita. Va al cerebro como una foto. Nada graba tu pantalla en segundo plano."- },- "memory": {- "title": "Enséñale algo",- "ask": "Cuéntale a {name} algo que valga la pena guardar:",- "prompt": "Recuerda que mi color favorito es el azul y que prefiero respuestas cortas.",- "explain": "{name} lo guardó en su memoria y lo usará a partir de ahora.",- "how": "Los datos van a tu Wiki y a tu perfil, guardados en tu ordenador. Antes de responder, {name} consulta lo que sabe de ti. Puedes leer y editar cada nota en Notas."- },- "artifact": {- "title": "Haz que cree algo",- "ask": "{name} puede construir cosas terminadas: páginas, resúmenes, pequeñas herramientas. Di «artifact» para pedir uno:",- "prompt": "Crea un artifact: un resumen de una página sobre los planetas del sistema solar, con un dato curioso de cada uno.",- "explain": "{name} empezó a construir la página. Cuando esté lista, aparecerá en Artifacts.",- "how": "Un artifact es un trabajo más grande, así que {name} se lo pasa a un ayudante con un modelo potente. Construye una página independiente, y Artifacts la guarda para que la abras más tarde."- },- "agent": {- "title": "Pasa un trabajo grande a un agente",- "ask": "Para trabajos largos, {name} llama a un agente. Puedes seguir hablando mientras trabaja:",- "prompt": "Investiga los tres mejores portátiles baratos ahora mismo y escríbeme una comparación corta.",- "explain": "{name} pasó el trabajo a un agente. Trabaja en segundo plano; el resultado llega a tu chat.",- "how": "{name} sigue siendo tu único contacto. Planifica el trabajo y pone en marcha un agente, y un revisor comprueba el resultado antes de que te llegue. Puedes ver el progreso en Agentes."- },- "team": {- "title": "Conoce a tu equipo",- "ask": "Los agentes son ayudantes con su propio papel. Abre el área Agentes para conocerlos.",- "explain": "Aquí viven y trabajan tus agentes.",- "how": "Crea tu propio agente con su papel, modelo e instrucciones, por ejemplo un investigador o una redactora. Haz clic en un agente para chatear con él o darle un encargo. {name} también puede pasarle trabajo por ti."- },- "plugin": {- "title": "Conecta una app",- "ask": "Los plugins conectan {name} con las apps que usas: correo, calendario, notas, hogar inteligente y más.",- "explain": "Aquí conectas tus apps. Elige una que uses a diario y pulsa Conectar; tu navegador se abre una vez para iniciar sesión.",- "how": "Cada app conectada se convierte en una nueva herramienta para {name}. Después solo pregunta, por ejemplo «¿Qué tengo mañana en el calendario?». Todo lo que envía o cambia algo te pregunta antes."+ "tour": {+ "title": "Un recorrido por {name}",+ "lede": "Tu mascota te guía por la app y te explica cada sección.",+ "next": "Siguiente",+ "finish": "¡Vamos!",+ "skip": "Saltar",+ "labels": {+ "chat": "Chat",+ "voice": "Chat de voz",+ "agents": "Agentes",+ "ide": "Agentic IDE",+ "plugins": "Plugins",+ "wake": "Palabra de activación",- "permissions": "Permisos del Mac",+ "done": "Todo listo"},- "ide": {- "title": "Deja que los agentes programen",- "ask": "El Agentic IDE ejecuta agentes de programación como Claude Code y Codex en terminales reales, en tus propios proyectos.",- "explain": "Este es el Agentic IDE. Abre una carpeta de proyecto e inicia un agente de programación en un panel.",- "how": "Cada panel es una terminal real con su propio agente. Háblales escribiendo, o por voz a través de {name}. Varios pueden trabajar lado a lado en el mismo proyecto."+ "stops": {+ "chat": "¡Hola, soy {pet}! Te enseño la app. Este es tu chat con {name}. Escribe aquí lo que quieras: una pregunta, una tarea, un archivo para revisar. Nunca eliges tú una herramienta o un modelo; {name} decide lo que hace falta.",+ "voice": "¿Prefieres hablar? Este es el chat de voz. Haz clic en la barra, di tu palabra de activación o pulsa tu atajo de llamada y habla. La onda muestra quién está hablando.",+ "agents": "Los trabajos grandes, como una investigación, un informe o una web, van a tus agentes. Son el equipo de {name}, cada uno con su propio papel y modelo. En Agentes los ves trabajar, chateas con uno o creas el tuyo.",+ "ide": "La Agentic IDE ejecuta agentes de programación como Claude Code y Codex en terminales reales, sobre tus propios proyectos. Escríbeles directamente o deja que {name} los dirija por voz.",+ "plugins": "Los plugins conectan {name} con las apps que usas: correo, calendario, notas, hogar inteligente y más. Cada uno se convierte en una herramienta nueva, y todo lo que envía o cambia algo te pregunta antes.",+ "wake": "Tu palabra de activación está aquí, en Ajustes. Di «Hey {name}» y {name} te escucha. Cambia la palabra, elige su idioma o pruébala cuando quieras.",- "permissions": "En un Mac, {name} necesita tu permiso para el micrófono, la pantalla y controlar apps. Permite aquí lo que quieras; cada fila se actualiza sola.",+ "done": "¡Ese fue el recorrido! Habla con {name} cuando quieras y, si alguna vez te atascas, pregúntale. En Ajustes → App puedes repetir esta guía."}}+ },+ "app_tour": {+ "replay_title": "Repetir la bienvenida",+ "replay_body": "Vuelve a abrir la ventana de configuración (nombre, conexiones de IA, voz) y después el recorrido por la app. Nada se reinicia.",+ "replay": "Repetir"}}diff --cc jarvis/ui/web/frontend/src/lib/appZoom.tsindex 77726ed7db,60d6aa7692..b6eebb79a4--- a/jarvis/ui/web/frontend/src/lib/appZoom.ts+++ b/jarvis/ui/web/frontend/src/lib/appZoom.ts@@@ -62,8 -62,12 +62,12 @@@ export function nextAppZoom(level: numbreturn APP_ZOOM_LEVELS[Math.min(APP_ZOOM_LEVELS.length - 1, Math.max(0, next))];}- /** Keys whose identity is the character they type, not their position. */- const CHARACTER_KEYS = new Set(["plus", "minus"]);+ /**+ * Keys whose identity is the character they type, not their position. `?` is- * one too: Shift+`/` on a US keyboard, Shift+`ß` on a German one — the other++ * one too: Shift+`/` on a US keyboard, Shift+`ß` on a German one — the other i18n-allow: names a key cap+ * in-app chords (the shortcut overview) record it through this module.+ */+ const CHARACTER_KEYS = new Set(["plus", "minus", "question"]);const NAMED_CODES: Record<string, string> = {Space: "space",diff --cc jarvis/ui/web/frontend/src/store/ideSidePanel.tsindex da3a3ee0fc,46c7025f7f..744885833a--- a/jarvis/ui/web/frontend/src/store/ideSidePanel.ts+++ b/jarvis/ui/web/frontend/src/store/ideSidePanel.ts@@@ -22,17 -21,8 +21,17 @@@ export interface SidePanelTerminalexport const MAX_TERMINAL_TABS = 16;- export const SIDE_PANEL_TAB_IDS: readonly SidePanelTabId[] = ["agents", "changes", "files", "git", "office"];+ export const SIDE_PANEL_TAB_IDS: readonly SidePanelTabId[] = ["agents", "changes", "files", "git", "skills", "subscriptions", "office"];+/**+ * DOM id of the panel host, for the toggle's `aria-controls`.+ *+ * It lives here rather than in the panel's module because the toggle sits in+ * the always-loaded window caption: importing it from `IdeSidePanel` linked the+ * whole panel (explorer, git overview, agents overview) into the entry chunk.+ */+export const SIDE_PANEL_ID = "ide-side-panel";+const OPEN_KEY = "jarvis.agenticIde.sidePanelOpen";// v4: the panel starts with Agents alone and the other tabs are added from// its "+" menu (maintainer, 2026-09-28); older lists opened every tab.diff --cc jarvis/ui/web/frontend/src/views/ApiKeysView.tsxindex 3d0038cc11,fb57e6f6fc..5c5a6fbd1e--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx@@@ -1,27 -1,30 +1,31 @@@import { useEffect, useState } from "react";- import { Bot, KeyRound, Phone, Radio, SlidersHorizontal } from "lucide-react";+ import { Loader2, RefreshCw } from "lucide-react";import { PageHeader } from "@/components/layout/PageHeader";- import { JarvisAgentSection } from "@/components/JarvisAgentSection";- import { TelephonyPanel } from "@/views/TelephonyView";- import { WikiProviderCard } from "@/views/settings/WikiProviderCard";- import { JarvisApiGroup } from "@/views/settings/JarvisApiGroup";- import { TeamProxyGroup } from "@/views/settings/TeamProxyGroup";- import { RealtimeTab } from "@/views/apikeys/RealtimeTab";- import { useTierHealth, type LucideIcon } from "@/components/providers/ProviderTierSection";- import { type SectionHealth, useProviders } from "@/hooks/useProviders";- import {- APIKEYS_TAB_EVENT,- API_KEYS_TABS,- type ApiKeysTab,- clearApiKeysTabRequest,- requestedApiKeysTab,- } from "@/lib/apiKeysTab";+ import { LiveProfile } from "@/components/providers/LiveProfile";+ import { Button } from "@/components/ui/button";+ import { AgentsTab } from "@/views/apikeys/AgentsTab";+ import { KeyField } from "@/views/apikeys/KeyField";+ import { SettingsGroup } from "@/views/apikeys/settingsUi";+ import { useProviders, useSectionHealth } from "@/hooks/useProviders";+ import { useProviderFamilies } from "@/lib/providerFamilies";+ import { useLocaleChunk, useT } from "@/i18n";import { cn } from "@/lib/utils";- import { useT } from "@/i18n";+ import { useEventStore } from "@/store/events";++import { JarvisApiGroup } from "@/views/settings/JarvisApiGroup";- /** A tab another part of the app asked for, or the page's first tab. */- function resolveTab(wanted: string | null): ApiKeysTab {- return API_KEYS_TABS.includes(wanted as ApiKeysTab) ? (wanted as ApiKeysTab) : "realtime";+ // Agents first: the providers are set up there; live calls reuse the OpenAI login.+ const TABS = ["agents", "voice"] as const;+ type Tab = (typeof TABS)[number];+ const TAB_STORAGE_KEY = "jarvis.apikeys.tab";++ function initialTab(): Tab {+ try {+ const saved = localStorage.getItem(TAB_STORAGE_KEY);+ if (saved && (TABS as readonly string[]).includes(saved)) return saved as Tab;+ } catch {+ // Private mode / no storage: open on the first tab.+ }+ return "agents";}/**@@@ -71,27 -94,14 +95,20 @@@ export function ApiKeysView()data-testid="api-keys-provider-scroll"className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis px-8 pb-10 pt-6">- {/* The key re-runs the rise animation on a tab change. */}- <div- key={active}- role="tabpanel"- id="apikeys-panel"- aria-labelledby={`apikeys-tab-${active}`}- className="profile-rise mx-auto w-full max-w-page"- >- {active === "realtime" && (- <RealtimeTab- providers={providers}- loading={loading}- error={error}- onChanged={refetch}- onActivateOptimistic={setActiveOptimistic}- health={health.realtime}- />+ <div key={tab} role="tabpanel" id="apikeys-panel" aria-labelledby={`apikeys-tab-${tab}`} className="profile-rise w-full">+ {tab === "voice" && <VoiceTab data={families} onSaved={refetch} />}+ {tab === "agents" &&+ (families.error === "restart_required" ? (+ <RestartNeeded />+ ) : (+ <AgentsTab data={families} providers={providers} health={health} onProvidersChanged={refetch} />+ ))}++ {/* The Control Key unlocks the browser UI and authenticates local agents. */}++ {tab === "agents" && (++ <div className="mt-10">++ <JarvisApiGroup />++ </div>+ )}- {active === "subagents" && <SubagentCategory />}- {active === "jarvis-key" && <JarvisKeyCategory />}- {active === "advanced" && <AdvancedCategory />}</div></div></div>diff --cc jarvis/ui/web/frontend/src/views/AppshotEditorWindow.tsxindex c7f8c552f0,4e3b85a1c4..809e3e3dfe--- a/jarvis/ui/web/frontend/src/views/AppshotEditorWindow.tsx+++ b/jarvis/ui/web/frontend/src/views/AppshotEditorWindow.tsx@@@ -31,6 -40,23 +31,22 @@@ export function isAppshotEditorWindow(sreturn new URLSearchParams(search).get("view") === APPSHOT_EDITOR_VIEW;}+ /**+ * Remember which picture this window is on.+ *+ * The warm window is opened without an id and pointed later in memory. A+ * reload of that address (the blank-window watchdog, a rebuilt bundle) would+ * otherwise come back as the empty gray shell. The address is the backup.+ */-function rememberEditorTarget(kind: "appshot" | "recording", id: string): void {++function rememberEditorTarget(id: string): void {+ const url = new URL(window.location.href);+ url.searchParams.delete("appshot");- url.searchParams.delete("recording");- if (id) url.searchParams.set(kind, id);++ if (id) url.searchParams.set("appshot", id);+ const next = `${url.pathname}${url.search}${url.hash}`;+ const current = `${window.location.pathname}${window.location.search}${window.location.hash}`;+ if (next !== current) window.history.replaceState(null, "", next);+ }+export interface EditorWindowDeps {returnCard: (id: string, flyFrom?: EditorExit["flyFrom"]) => Promise<unknown>;closeWindow: () => Promise<unknown>;@@@ -73,6 -104,8 +89,7 @@@ export function AppshotEditorWindow({ dconst valid = appshotIdFromUrl(`?appshot=${encodeURIComponent(id)}`);if (!valid) return false;closing.current = false;- rememberEditorTarget("appshot", valid);- setRecordingId("");++ rememberEditorTarget(valid);setAppshotId(valid);setSession((n) => n + 1);return true;@@@ -93,12 -137,23 +110,13 @@@.catch(() => undefined).finally(() => {setAppshotId("");- rememberEditorTarget("appshot", "");++ rememberEditorTarget("");void deps.closeWindow().catch(() => undefined);});}, [appshotId, deps]);- // A video has no corner card to return to: closing just hides the window- // and forgets the video, so a hidden window never keeps playing or flashes it.- const closeVideo = useCallback(() => {- if (closing.current) return;- closing.current = true;- setRecordingId("");- rememberEditorTarget("recording", "");- void deps.closeWindow().catch(() => undefined);- }, [deps]);-return (- <div className="h-screen w-screen overflow-hidden bg-popover" data-testid="appshot-editor-window">+ <div className="fixed inset-0 overflow-hidden bg-popover" data-testid="appshot-editor-window">{appshotId && (<AppshotEditor key={session} appshotId={appshotId} onClose={close} variant="window" />)}diff --cc jarvis/ui/web/frontend/src/views/MarketplaceView.tsxindex 2f6c65ab48,bb0856c086..a4616589d9--- a/jarvis/ui/web/frontend/src/views/MarketplaceView.tsx+++ b/jarvis/ui/web/frontend/src/views/MarketplaceView.tsx@@@ -1142,59 -1050,33 +1142,69 @@@ function PublishInvite(}: {enabled: boolean;onPublish: () => void;+ onImport: (file: File) => void;+ importing: boolean;+ importError: string | null;t: Translate;}) {+ const fileInput = useRef<HTMLInputElement | null>(null);return (- <div className="mt-10 flex flex-wrap items-center justify-between gap-3 rounded-xl border border-dashed border-border bg-card px-4 py-3 backdrop-blur-sm">- <div className="min-w-0 flex-1">- <p className="text-xs text-muted-foreground">{t("marketplace.publish_hint")}</p>+ <div className="mt-10 flex flex-wrap items-center gap-4 rounded-lg border border-dashed border-border-strong px-5 py-4">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg bg-secondary text-muted-foreground">+ <UploadCloud className="h-4 w-4" />+ </div>+ <div className="min-w-0 flex-1 basis-[280px]">+ <p className="text-base font-semibold text-foreground-strong">+ {t("marketplace.publish_card_title")}+ </p>+ <p className="text-sm text-muted-foreground">+ {enabled ? t("marketplace.publish_card_body") : t("marketplace.publish_hint")}+ </p>+ {importError && (+ <p role="alert" className="mt-1 flex items-start gap-1.5 text-xs text-destructive">+ <AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />+ {importError}+ </p>+ )}</div>- <div className="flex items-center gap-2">+ <div className="flex shrink-0 items-center gap-2">+ <input+ ref={fileInput}+ type="file"+ accept=".json,application/json"+ className="hidden"+ data-testid="marketplace-import-agent-input"+ onChange={(event) => {+ const file = event.target.files?.[0];+ event.target.value = "";+ if (file) onImport(file);+ }}+ />+ <Button+ variant="ghost"+ size="sm"+ onClick={() => fileInput.current?.click()}+ disabled={importing}+ data-testid="marketplace-import-agent"+ >+ {importing ? (+ <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />+ ) : (+ <FileInput className="mr-1.5 h-3.5 w-3.5" />+ )}+ {t("marketplace.import_agent")}+ </Button>- <Button- variant="ghost"- size="sm"- onClick={() => openExternalUrl(MARKETPLACE_SUBMIT_URL)}- title={t("marketplace.publish_on_web")}- >- {t("marketplace.publish_on_web")}- <ExternalLink className="ml-1.5 h-3.5 w-3.5" />- </Button>+ {!enabled && (+ <Button+ variant="outline"+ size="sm"+ onClick={() => openExternalUrl(MARKETPLACE_SUBMIT_URL)}+ title={t("marketplace.publish_on_web")}+ >+ {t("marketplace.publish_on_web")}+ <ExternalLink className="ml-1.5 h-3.5 w-3.5" />+ </Button>+ )}{enabled && (<Button size="sm" onClick={onPublish}><UploadCloud className="mr-1.5 h-3.5 w-3.5" />diff --cc jarvis/ui/web/frontend/src/views/SettingsView.tsxindex bd178f89ae,b182bc030a..b8bd845c53--- a/jarvis/ui/web/frontend/src/views/SettingsView.tsx+++ b/jarvis/ui/web/frontend/src/views/SettingsView.tsx@@@ -14,8 -6,8 +6,7 @@@ import { OverlayTaskbarGroup } from "@/import { LanguagesGroup } from "@/views/settings/LanguagesGroup";import { MusicGroup } from "@/views/settings/MusicGroup";import { AppSettingsGroup } from "@/views/settings/AppSettingsGroup";-import { PermissionsPanel } from "@/views/settings/PermissionsPanel";import { RealtimeVoiceGroup } from "@/views/settings/RealtimeVoiceGroup";- import { SilenceWindowGroup } from "@/views/settings/SilenceWindowGroup";import { VolumeGroup } from "@/views/settings/VolumeGroup";import { AudioDevicesGroup } from "@/views/settings/AudioDevicesGroup";import { SystemPromptGroup } from "@/views/settings/SystemPromptGroup";@@@ -210,15 -123,28 +122,27 @@@ function VoiceSettingsGroup());}- function useMoreSettingRows(): SettingRow[] {+ /** The groups in page order. */+ const SECTIONS: readonly { id: string; render: () => React.ReactNode }[] = [+ { id: "languages", render: () => <LanguagesGroup /> },+ { id: "app", render: () => <AppSettingsGroup><AutopilotToastsRow /></AppSettingsGroup> },+ { id: "voice", render: () => <VoiceSettingsGroup /> },+ { id: "wake-word", render: () => <WakeWordPanel /> },+ { id: "system-prompt", render: () => <SystemPromptGroup /> },+ { id: "music", render: () => <MusicGroup /> },+ { id: "overlay-taskbar", render: () => <OverlayTaskbarGroup /> },- { id: "permissions", render: () => <PermissionsPanel /> },+ ];++ /** "Autopilot toasts" — the one row of the former "More" group. */+ function AutopilotToastsRow() {const t = useT();const [autopilotToasts, setAutopilotToasts] = useState(isAutopilotToastsEnabled);- return [- {- icon: Settings,- title: t("settings_view.rows.toasts_title"),- description: t("settings_view.rows.toasts_description"),- control: (+ return (+ <SettingsRow+ id="settings-more"+ title={t("settings_view.rows.toasts_title")}+ description={t("settings_view.rows.toasts_description")}+ control={<Switchchecked={autopilotToasts}aria-label={t("settings_view.rows.toasts_title")}diff --cc jarvis/ui/web/server.pyindex d97fcc1077,fe4ee678af..c5a8c664d8--- a/jarvis/ui/web/server.py+++ b/jarvis/ui/web/server.py@@@ -132,6 -131,6 +132,28 @@@ class MemoryFactBody(BaseModel)category: str = "general"++def _is_backend_path(path: str) -> bool:++ """Paths the SPA catch-all must never claim: the API and the sockets."""++ return path == "/api" or path.startswith(("/api/", "/ws"))++++++class _SpaFallbackRoute(APIRoute):++ """The SPA catch-all, invisible to API and socket paths.++++ A plain ``GET /{full_path:path}`` partially matches EVERY path, so the++ router answered an unknown ``POST /api/...`` with 405 and ``Allow: GET`` —++ pointing a client at a GET that does not exist — and a bare ``GET /api``++ with the SPA's HTML. Declining backend paths lets the router answer++ honestly: 404 for a route that does not exist, 405 only for a real route++ asked with the wrong method.++ """++++ def matches(self, scope: Scope) -> tuple[Match, Scope]:++ if scope.get("type") == "http" and _is_backend_path(scope.get("path", "")):++ return Match.NONE, {}++ return super().matches(scope)++++class WebServer:"""In-process uvicorn + FastAPI, run by the orchestrator loop."""diff --cc jarvis/ui/web/society_routes.pyindex 61ac47d05a,c8f56393cb..57e3ce860b--- a/jarvis/ui/web/society_routes.py+++ b/jarvis/ui/web/society_routes.py@@@ -761,6 -726,40 +765,40 @@@ async def apply_seed_proposals(body: Ap# --------------------------------------------------------------- providers+ class ProviderPrefsBody(BaseModel):+ """The agents' provider choices from the API Keys page (any field may be left out)."""++ disabled: list[str] | None = Field(default=None, max_length=256)+ api_only: list[str] | None = Field(default=None, max_length=256)+ hidden_models: dict[str, list[str]] | None = None+++ @router.get("/provider-prefs", summary="Which providers and models the agents may run on")-async def get_provider_prefs() -> dict[str, Any]:++def get_provider_prefs() -> dict[str, Any]:+ from jarvis.agent_chat import agent_provider_prefs++ return agent_provider_prefs.load().to_dict()+++ @router.put("/provider-prefs", summary="Turn providers and models on or off for the agents")-async def put_provider_prefs(body: ProviderPrefsBody) -> dict[str, Any]:++def put_provider_prefs(body: ProviderPrefsBody) -> dict[str, Any]:+ """Merge the given fields into the saved choices; ids outside the+ agents' catalog are refused so a typo cannot hide a seat for good."""+ from jarvis.agent_chat import agent_provider_prefs+ from jarvis.agent_chat.catalog import offers++ current = agent_provider_prefs.load().to_dict()+ patch = body.model_dump(exclude_none=True)+ ids = set(patch.get("disabled", [])) | set(patch.get("api_only", [])) | set(+ patch.get("hidden_models", {})+ )+ unknown = sorted(i for i in ids if not offers(agent_provider_prefs.AGENT_SURFACE, i))+ if unknown:+ raise HTTPException(422, f"Not an agent provider: {', '.join(unknown)}")+ saved = agent_provider_prefs.save(agent_provider_prefs.parse({**current, **patch}))+ return saved.to_dict()++class ModelBody(BaseModel):provider: str = Field(min_length=1)model: str = ""diff --cc pyproject.tomlindex cea058f2af,cc8f797298..e91956f086--- a/pyproject.toml+++ b/pyproject.toml@@@ -327,10 -331,11 +327,12 @@@ desktop ="winrt-Windows.Media.Control>=3.2; sys_platform == 'win32'","pystray>=0.19","pywebview>=5.3",- # macOS uses pynput for global hotkeys. Linux keeps pyautogui/no-op fallbacks:- # pynput would otherwise compile evdev against host kernel headers, breaking- # the advertised [full] install on a stock headless image. ptyprocess is the+ # macOS Computer-Use keyboard actuation and Windows AppShot key events.+ # macOS global hotkeys use a listen-only Quartz event tap (BUG-077).+ # Linux retains pyautogui/no-op fallbacks to avoid compiling evdev against- # host kernel headers on stock headless images.++ # host kernel headers on stock headless images. Windows AppShot shortcuts++ # use key events so brief taps are never polled away. ptyprocess is the+ # POSIX terminal backend; Windows keeps pywinpty above.- # Windows AppShot shortcuts use key events so brief taps are never polled away."pynput>=1.7; sys_platform == 'darwin' or sys_platform == 'win32'","ptyprocess>=0.7; sys_platform != 'win32'",# Screen capture (mss) + desktop input automation (pyautogui) — all-platformdiff --cc tests/integration/test_ack_flow.pyindex 2e65316f9b,c05d4135e1..23d8f96cc1--- a/tests/integration/test_ack_flow.py+++ b/tests/integration/test_ack_flow.py@@@ -152,8 -152,8 +152,9 @@@ async def test_happy_path_announcement__bcp47=lambda lang: lang, # BCP-47 converter_is_agent_reply=SpeechPipeline._is_agent_reply,_deliver_announcement_via_realtime=_not_delivered_via_realtime,+ _live_call=lambda: None,_realtime_session_owns_voice=lambda: False,+ _classic_voice_session_open=lambda: True,_register_assistant_speech=lambda _text: None,_playback_confirmed=lambda _result: True,# Instant acknowledgment (2026-08-17): the handler compares the sourcediff --cc tests/unit/appshot/test_appshot_permissions.pyindex 24eccd1daa,0ae4020443..a1397e1d04--- a/tests/unit/appshot/test_appshot_permissions.py+++ b/tests/unit/appshot/test_appshot_permissions.py@@@ -1,375 -1,76 +1,462 @@@- """AppShot entry points preserve just-in-time consent and silent lifecycle checks."""-"""Appshots say which OS permission is missing instead of arming or freezing for nothing."""++"""AppShot entry points preserve just-in-time consent and silent lifecycle checks.++++They also say which OS permission is missing instead of arming or freezing for++nothing.++"""from __future__ import annotations+import asynciofrom types import SimpleNamespace+from uuid import uuid4import pytest+from fastapi import FastAPI+from fastapi.testclient import TestClient+- from jarvis.appshot import hotkey, region++from jarvis.appshot import gesture, hotkey, region++from jarvis.appshot import service as appshot_service+from jarvis.appshot.service import _pick_area+from jarvis.core.events import ConfigReloaded+from jarvis.platform import permission_service, screen_access+from jarvis.screen_context.models import IntentVerdict, VisualIntent+from jarvis.screen_context.service import ScreenContextService+from jarvis.ui.web import appshot_routes+from tests.fakes.fake_permission_service import FakePermissionService+++def gate(monkeypatch):+ fake = FakePermissionService()+ monkeypatch.setattr(screen_access, "permission_gate", lambda: fake)+ monkeypatch.setattr(permission_service, "get_permission_service", lambda: fake)+ return fake+++def desktop(monkeypatch):+ import jarvis.core.instance as instance+ import jarvis.platform as platform+ import jarvis.platform.probes as probes++ monkeypatch.setattr(platform, "detect_platform", lambda: "darwin")+ monkeypatch.setattr(probes, "display_present", lambda: True)+ monkeypatch.setattr(probes, "is_wayland", lambda: False)+ monkeypatch.setattr(probes, "has_hotkey", lambda: True)+ monkeypatch.setattr(+ instance, "current_instance", lambda: SimpleNamespace(owns_ambient_duties=True)+ )+ monkeypatch.setattr(region, "picker_capability", lambda: (True, ""))++[email protected]("state", ["pending", "denied", "needs_settings", "unavailable"])+async def test_region_refuses_before_starting_the_picker(monkeypatch, gate, desktop, state):+ gate.script("screen_recording", state)+ started = []++ async def run_picker(_timeout):+ started.append(True)+ return None, 0, False++ monkeypatch.setattr(region, "_run_picker", run_picker)+ trace_id = uuid4()+ result = await _pick_area(object(), trace_id=trace_id)++ assert result.reason_code == "capture_permission"+ assert result.message+ assert started == []+ assert region._picking is False+ (call,) = gate.ensure_calls("screen_recording")+ assert (call.feature, call.interactive, call.trace_id) == ("appshot", True, trace_id)+++async def test_region_only_starts_after_grant_and_cancel_stays_cancelled(+ monkeypatch, gate, desktop+):+ gate.script("screen_recording", "denied", "granted")+ started = []++ async def run_picker(_timeout):+ started.append(True)+ assert gate.ensure_calls("screen_recording")+ return None, 0, False++ monkeypatch.setattr(region, "_run_picker", run_picker)+ result = await _pick_area(object())+ assert result.reason_code == "capture_permission"+ result = await _pick_area(object())+ assert result.reason_code == "cancelled"+ assert started == [True]+++async def test_existing_grant_and_unavailable_picker_never_ask(monkeypatch, gate, desktop):+ async def run_picker(_timeout):+ return None, 0, False++ monkeypatch.setattr(region, "_run_picker", run_picker)+ assert await region.pick_region() is None+ assert gate.ensure_calls("screen_recording") == []+ gate.calls.clear()+ monkeypatch.setattr(region, "picker_capability", lambda: (False, "Wayland"))+ with pytest.raises(region.RegionUnavailable, match="Wayland"):+ await region.pick_region()+ assert gate.calls == []+++ "state, allowed",+ [+ ("granted", True),+ ("not_required", True),+ ("pending", False),+ ("denied", False),+ ("unavailable", False),+ ],+)+def test_preview_helper_checks_silently(gate, state, allowed):+ gate.script("screen_recording", state)+ assert region.preview_capture_allowed() is allowed+ assert gate.ensure_calls("screen_recording") == []+ assert {call.method for call in gate.calls} == {"check"}++[email protected]("allowed", [False, True])+def test_picker_never_reads_pixels_without_its_own_grant(monkeypatch, allowed):+ grabs = []+ pixmap = SimpleNamespace(isNull=lambda: False, width=lambda: 100)++ def grab_window(_handle):+ grabs.append(True)+ return pixmap++ monkeypatch.setattr(region, "preview_capture_allowed", lambda: allowed)+ result = region.grab_preview(SimpleNamespace(grabWindow=grab_window))+ assert result is (pixmap if allowed else None)+ assert grabs == ([True] if allowed else [])+++def test_failed_preview_uses_live_overlay_without_retrying_or_prompting(gate):+ def broken_capture(_handle):+ raise RuntimeError("capture unavailable")++ assert region.grab_preview(SimpleNamespace(grabWindow=broken_capture)) is None+ assert gate.ensure_calls("screen_recording") == []+++ "evidence, feature",+ [+ ("appshot", "appshot"),+ ("appshot-region", "appshot"),+ ("appshot-screen", "appshot"),+ ("screen", "screen_context"),+ ("not-appshot", "screen_context"),+ ],+)+def test_every_appshot_scope_has_the_same_permission_feature(evidence, feature):+ verdict = IntentVerdict(intent=VisualIntent.SCREEN, evidence=(evidence,))+ assert ScreenContextService._permission_feature(verdict) == feature++[email protected]("platform", ["win32", "linux"])+async def test_shortcut_save_never_requests_macos_access_elsewhere(monkeypatch, gate, platform):+ monkeypatch.setattr("jarvis.platform.detect_platform", lambda: platform)+ await hotkey.request_saved_shortcut_access(+ {"window": "alt+alt", "region": ""},+ {"window": "ctrl+alt+a", "region": ""},+ was_enabled=True,+ enabled=True,+ )+ assert gate.calls == []+++ "old, new, was_enabled, enabled, requests",+ [+ ("alt+alt", "ctrl+alt+a", True, True, 1),+ ("ctrl+alt+a", "ctrl+alt+a", False, True, 1),+ ("ctrl+alt+a", "ctrl+alt+a", True, True, 0),+ ("ctrl+alt+a", "", True, True, 0),+ ("alt+alt", "shift+shift", True, True, 0),+ ("alt+alt", "ctrl+alt+a", True, False, 0),+ ],+)+async def test_only_changed_or_enabled_tap_shortcuts_ask(+ gate,+ desktop,+ old,+ new,+ was_enabled,+ enabled,+ requests,+):+ await hotkey.request_saved_shortcut_access(+ {"window": old, "region": ""},+ {"window": new, "region": ""},+ was_enabled=was_enabled,+ enabled=enabled,+ )+ calls = gate.ensure_calls("input_monitoring")+ assert len(calls) == requests+ if requests:+ assert calls[0].interactive is True+ assert calls[0].wait_s == 0+ assert calls[0].allow_outside_app is False+ assert gate.ensure_calls("screen_recording") == []+++def _config(*, enabled=True, window="alt+alt"):+ return SimpleNamespace(+ screen_context=SimpleNamespace(enabled=enabled),+ appshot=SimpleNamespace(hotkey=window, region_hotkey="shift+shift"),+ )+++async def test_disable_stops_watchers_and_config_reload_reenables_without_prompt(+ monkeypatch,+ gate,+ desktop,+):+ import jarvis.appshot.gesture as gesture++ config = _config()+ monkeypatch.setattr("jarvis.core.config.load_config", lambda: config)+ running = []-from jarvis.appshot import gesture, service-from jarvis.platform import permissions+ class Watcher:+ def __init__(self, *args, **kwargs):+ pass+ def start(self):+ running.append(self)-class FakePort:- def __init__(self, granted: bool) -> None:- self.granted = granted+ def stop(self):+ running.remove(self)- def runtime_access_granted(self, permission_id) -> bool:- assert permission_id is permissions.PermissionId.INPUT_MONITORING- return self.granted+ callbacks = []+ bus = SimpleNamespace(subscribe=lambda event, callback: callbacks.append(callback))+ monkeypatch.setattr(gesture, "BothKeysWatcher", Watcher)+ monkeypatch.setattr(gesture, "make_probe", lambda _family: (lambda: (False, False), ""))+ shortcut = hotkey.AppshotShortcut(bus)+ try:+ await shortcut.start()+ assert len(running) == 2+ config.screen_context.enabled = False+ await callbacks[0](ConfigReloaded(changed_keys=("screen_context.enabled",)))+ assert running == []+ assert not shortcut.status.armed+ config.screen_context.enabled = True+ await callbacks[0](ConfigReloaded(changed_keys=("screen_context.enabled",)))+ assert len(running) == 2+ assert gate.calls == []+ finally:+ await shortcut.stop()+ assert running == []+ assert not shortcut.status.armed+++async def test_combo_status_tracks_waiting_grant_and_listener_shutdown(monkeypatch, gate, desktop):+ monkeypatch.setattr("jarvis.core.config.load_config", lambda: _config(window="ctrl+alt+a"))+ # Only the combo is relevant to this test.+ monkeypatch.setattr(hotkey, "configured_hotkeys", lambda _block: {"window": "ctrl+alt+a"})++ class Trigger:+ armed = False+ needs_input_monitoring = True++ def __init__(self, bindings):+ pass++ async def __aenter__(self):+ return self++ async def __aexit__(self, *args):+ self.armed = False++ async def events(self):+ await asyncio.Event().wait()+ yield "appshot"++ monkeypatch.setattr("jarvis.trigger.hotkey.HotkeyTrigger", Trigger)+ shortcut = hotkey.AppshotShortcut(object())+ try:+ await shortcut.reload()+ assert not shortcut.status.armed+ await asyncio.sleep(0)+ assert "Input Monitoring" in shortcut.status.detail+ shortcut._trigger.armed = True+ shortcut._trigger.needs_input_monitoring = False+ assert shortcut.status.armed+ shortcut._trigger.armed = False+ assert not shortcut.status.armed+ assert gate.calls == []+ finally:+ await shortcut.stop()+ assert not shortcut.status.armed+++ "display, wayland, supported", [(True, False, True), (False, False, False), (True, True, False)]+)+def test_readiness_is_backend_support_and_does_not_request_consent(+ monkeypatch,+ gate,+ desktop,+ display,+ wayland,+ supported,+):+ monkeypatch.setattr("jarvis.platform.probes.display_present", lambda: display)+ monkeypatch.setattr("jarvis.platform.probes.is_wayland", lambda: wayland)+ monkeypatch.setattr(+ "jarvis.cu.indicator.controller.screen_indicator_capability", lambda: (True, "")+ )+ monkeypatch.setattr("importlib.util.find_spec", lambda _name: object())+ gate.script("screen_recording", "denied")+ payload = appshot_routes._capability()+ assert payload["capture"] is supported+ assert payload["region"] is supported+ assert bool(payload["capture_detail"]) is not supported+ assert gate.calls == []+++ "enabled, patch, requests",+ [+ (True, {"hotkey": "ctrl+alt+a"}, 1),+ (True, {"hotkey": "ctrl+alt+a", "region_hotkey": "ctrl+shift+a"}, 1),+ (False, {"hotkey": "ctrl+alt+a"}, 0),+ (True, {"enabled": False}, 0),+ ],+)+def test_settings_save_asks_after_writing_and_reloads_on_enable_change(+ monkeypatch,+ gate,+ desktop,+ enabled,+ patch,+ requests,+):+ config = _config(enabled=enabled)+ events = []+ monkeypatch.setattr("jarvis.core.config.load_config", lambda: config)+ monkeypatch.setattr(+ "jarvis.core.config_writer.set_appshot_settings", lambda values: events.append("write")+ )+ monkeypatch.setattr(+ "jarvis.core.config_writer.set_screen_context_settings",+ lambda values: events.append("write"),+ )+ monkeypatch.setattr(appshot_routes, "_settings_payload", lambda: {"saved": True})++ async def reload():+ assert events == ["write"]+ assert len(gate.ensure_calls("input_monitoring")) == requests+ events.append("reload")++ monkeypatch.setattr(hotkey, "get_shortcut", lambda: SimpleNamespace(reload=reload))+ app = FastAPI()+ app.include_router(appshot_routes.router)+ with TestClient(app) as client:+ result = client.put("/api/appshot/settings", json=patch)+ assert result.status_code == 200+ assert events == ["write", "reload"]+++def test_disable_is_available_even_with_duplicate_legacy_shortcuts(monkeypatch, gate, desktop):+ config = _config(window="shift+shift")+ writes = []+ monkeypatch.setattr("jarvis.core.config.load_config", lambda: config)+ monkeypatch.setattr(+ "jarvis.core.config_writer.set_screen_context_settings", writes.append,+ )+ monkeypatch.setattr(appshot_routes, "_settings_payload", lambda: {"enabled": False})+ monkeypatch.setattr(hotkey, "get_shortcut", lambda: None)+ app = FastAPI()+ app.include_router(appshot_routes.router)+ with TestClient(app) as client:+ assert client.put("/api/appshot/settings", json={"enabled": False}).status_code == 200+ assert writes == [{"enabled": False}]+ assert gate.calls == []+++ @pytest.fixture-def mac(monkeypatch: pytest.MonkeyPatch):++def mac_keys(monkeypatch, gate):+ monkeypatch.setattr("jarvis.platform.detect_platform", lambda: "darwin")+ monkeypatch.setattr("jarvis.platform.probes.display_present", lambda: True)+ monkeypatch.setattr(gesture, "_macos_probe", lambda family: f"probe:{family}")++ return gate+- def use(granted: bool) -> None:- monkeypatch.setattr(permissions, "get_system_permission_port", lambda: FakePort(granted))+- return use---def test_a_mac_without_input_monitoring_does_not_arm_the_gesture(mac) -> None:- mac(False)++def test_a_mac_without_input_monitoring_does_not_arm_the_gesture(mac_keys):++ mac_keys.script("input_monitoring", "denied")+ probe, reason = gesture.make_probe("alt")+ assert probe is None+ assert "Input Monitoring" in reason++ # The check is silent: the gesture never asks for the grant itself.++ assert mac_keys.ensure_calls("input_monitoring") == []++-def test_a_mac_with_input_monitoring_arms_it(mac) -> None:- mac(True)++def test_a_mac_with_input_monitoring_arms_it(mac_keys):++ mac_keys.grant("input_monitoring")+ assert gesture.make_probe("shift") == ("probe:shift", "")++-class RefusingService:++class _IssueService:++ def __init__(self, code: str, message: str) -> None:++ self.issue = (code, message)+++ async def capture_permission_issue(self):- return "capture_permission", "Grant Screen Recording first."++ return self.issue++++++def _region_config():++ return SimpleNamespace(++ screen_context=SimpleNamespace(enabled=True),++ ui=SimpleNamespace(language="en"),++ appshot=SimpleNamespace(),++ )++-async def test_the_area_picker_never_opens_without_capture_permission(- monkeypatch: pytest.MonkeyPatch,-) -> None:++async def test_the_area_picker_never_opens_for_a_refusal_asking_cannot_fix(monkeypatch):+ opened: list[bool] = []++ async def pick_area(*_args, **_kwargs):+ opened.append(True)+ raise AssertionError("the screens must not freeze for a capture that will be refused")+- config = SimpleNamespace(- screen_context=SimpleNamespace(enabled=True),- ui=SimpleNamespace(language="en"),- appshot=SimpleNamespace(),- )- monkeypatch.setattr(service, "_load_config", lambda: config)- monkeypatch.setattr(service, "_pick_area", pick_area)++ monkeypatch.setattr(appshot_service, "_load_config", _region_config)++ monkeypatch.setattr(appshot_service, "_pick_area", pick_area)+ monkeypatch.setattr(- "jarvis.screen_context.turn.get_service", lambda bus=None: RefusingService()++ "jarvis.screen_context.turn.get_service",++ lambda bus=None: _IssueService("wayland_portal", "Use an X11 session."),+ )+- result = await service.take_appshot(trigger="hotkey", scope="region")++ result = await appshot_service.take_appshot(trigger="hotkey", scope="region")++ assert result.status == "refused"- assert result.reason_code == "capture_permission"- assert result.message == "Grant Screen Recording first."++ assert result.reason_code == "wayland_portal"++ assert result.message == "Use an X11 session."+ assert opened == []++++++async def test_a_missing_screen_recording_grant_is_left_to_the_just_in_time_ask(monkeypatch):++ asked: list[bool] = []++++ async def pick_area(*_args, **_kwargs):++ asked.append(True)++ return appshot_service.AppshotResult(++ status="refused", reason_code="capture_permission", message="macOS asked."++ )++++ monkeypatch.setattr(appshot_service, "_load_config", _region_config)++ monkeypatch.setattr(appshot_service, "_pick_area", pick_area)++ monkeypatch.setattr(++ "jarvis.screen_context.turn.get_service",++ lambda bus=None: _IssueService("capture_permission", "Grant Screen Recording first."),++ )++++ result = await appshot_service.take_appshot(trigger="hotkey", scope="region")++++ assert asked == [True]++ assert result.message == "macOS asked."diff --cc tests/unit/workspace/test_custom_clis.pyindex b3a4c31bb5,c3dbfb4491..de5acc4ad7--- a/tests/unit/workspace/test_custom_clis.py+++ b/tests/unit/workspace/test_custom_clis.py@@@ -410,13 -410,31 +410,31 @@@ def test_a_short_one_word_name_claims_ndef test_a_real_name_is_addressable_by_voice() -> None:- custom_clis.create_custom_cli("Antigravity", "agy")+ custom_clis.create_custom_cli("FixtureCLI", "fixture-cli")registry.refresh_custom_agents()- assert registry.spoken_aliases().get("antigravity") == "antigravity"+ assert registry.spoken_aliases().get("fixturecli") == "fixturecli"+ def test_a_cli_added_while_running_is_spawnable_by_name() -> None:+ """"Open five Warpdrive terminals" must work without restarting the app.++ The spawn parser compiles every spoken name into its patterns; an entry+ added after it was imported used to be invisible to voice until a restart.+ """+ from jarvis.agentic_ide import intent++ before = intent.detect_spawn("open five warpdrive terminals")+ assert before is None or all(group.agent != "warpdrive" for group in before.groups)+ entry = custom_clis.create_custom_cli("Warpdrive", "warpdrive --tui")+ registry.refresh_custom_agents()++ request = intent.detect_spawn("open five warpdrive terminals")+ assert request is not None+ assert [(group.count, group.agent) for group in request.groups] == [(5, entry.id)]++def test_a_custom_name_is_reserved_against_pane_call_signs() -> None:- """Saying "Antigravity" must not be a coin flip between a pane and a CLI."""- custom_clis.create_custom_cli("Antigravity", "agy")+ """Saying "FixtureCLI" must not be a coin flip between a pane and a CLI."""+ custom_clis.create_custom_cli("FixtureCLI", "fixture-cli")registry.refresh_custom_agents()- assert "antigravity" in registry.reserved_call_signs()+ assert "fixturecli" in registry.reserved_call_signs()