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
fix(computers): Windows-aware setup prompt, readiness and quit offload
rubenluetke10-beepd8d22e3309e1
diff --git a/docs/os-parity.md b/docs/os-parity.mdindex cea606f930..0ad8819c86 100644--- a/docs/os-parity.md+++ b/docs/os-parity.md@@ -1,5 +1,38 @@# OS Feature Parity — macOS / Linux Gap Register+## Connected computers that run Windows (2026-09-30, T3)++This one is about the REMOTE side: the machine Jarvis connects to under+Computers, whatever OS Jarvis itself runs on. Linux and macOS computers take+the POSIX paths they always took. A Windows computer with the OpenSSH server+runs commands in `cmd.exe` (or PowerShell as its `DefaultShell`), which runs+no POSIX shell and mangles its own command line: every non-ASCII letter+arrived as two U+FFFD characters, a line break ends the command, and the line+stops at 8 191 characters. `jarvis/computers/remote_os.py` asks each computer+once (one `echo` that sh, cmd and PowerShell answer differently) and then:++| Feature | Linux / macOS computer | Windows computer |+|---|---|---|+| Health check and facts | POSIX probe | PowerShell probe on stdin, same sections; no load average |+| Planting the app's key (password login) | `~/.ssh/authorized_keys` | PowerShell: `administrators_authorized_keys` for admins, ACL by SID (works on a German Windows), UTF-8 without BOM |+| Readiness and install | tmux, git, Node, CLIs; apt/dnf/yum/apk/pacman/brew | git (Git for Windows), Node, CLIs; winget and npm; "admin" instead of root |+| Society agent's CLI turn | `exec env … <cli>` on the command line | system prompt uploaded as a file, CLI started by a Git Bash launcher uploaded over SFTP |+| Society agent's shell tool | sh in `~/jarvis-agents/<id>` | Git Bash in the same folder; PowerShell when Git for Windows is missing |+| IDE panes | tmux session; survives app close and network loss, re-attached | no tmux: the agent runs in the SSH terminal (ConPTY) and ends with the channel; a plain terminal is PowerShell |+| IDE folder sync, conversation copy | POSIX scripts | the same scripts in Git Bash; SFTP paths as `/C:/…` |+| Keep working when this PC closes | offered | not offered (and refused on quit): its agents would stop with the connection |++Git for Windows is the one prerequisite beyond the SSH server, and every+feature that needs it says so in one sentence. Verified live against a+Windows 11 Pro VM (German locale): facts, readiness, a CLI start through the+launcher, an agent shell command with non-ASCII output, a PowerShell pane,+and a git folder sent over and brought back with an edit made there. Covered+by `tests/unit/computers/test_windows_remote.py` against a scripted Windows+SSH server. Not verified live: planting the key with a password (unit-tested+only; the VM already had the key), a Windows computer whose `DefaultShell` is+PowerShell (handled by prefixing `&`, unit-tested only), the winget install+leg, and a Windows Server install without winget.+## Persistent Agentic IDE terminals (2026-09-28, T3)Coding-agent panes now live in a separate PTY host processdiff --git a/jarvis/agentic_ide/offload_on_quit.py b/jarvis/agentic_ide/offload_on_quit.pyindex 3cdc39827e..63a8364091 100644--- a/jarvis/agentic_ide/offload_on_quit.py+++ b/jarvis/agentic_ide/offload_on_quit.py@@ -9,6 +9,9 @@ on the server while the PC is off, and the next start shows them running there.Bounded by the quit sequence's timeout: a quit is never held open for long,and a move that could not finish leaves the pane where it was (the placementis recorded only after the move completed).++A Windows computer is never a target: it has no tmux, so its panes end with+the app's SSH connection (``jarvis.computers.remote_terminal``)."""from __future__ import annotations@@ -48,11 +51,28 @@ def set_target(computer_id: str | None) -> None:os.replace(tmp, path)+def _is_windows(computer_id: str) -> bool:+ """From the last check's facts: no network call while the app quits."""+ from jarvis.computers.store import ComputerStore++ computer = ComputerStore().get(computer_id)+ facts = computer.facts if computer is not None else None+ return facts is not None and facts.os_id == "windows"++async def offload_before_quit(registry: Any) -> list[str]:"""Move every workspace with a locally running agent. Returns their ids."""computer_id = target()if not computer_id:return []+ if _is_windows(computer_id):+ # No tmux there: a pane lives exactly as long as this app's SSH channel,+ # so moving it at quit would end the agent instead of saving it.+ logger.warning(+ "Agentic IDE: not moving panes on quit — {} runs Windows, where they would stop",+ computer_id,+ )+ return []moved: list[str] = []for workspace in list(registry.sessions):running_here = [diff --git a/jarvis/ui/web/frontend/src/i18n/locales/computers/de.json b/jarvis/ui/web/frontend/src/i18n/locales/computers/de.jsonindex 42a81dc1c3..3482045904 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/computers/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/computers/de.json@@ -180,6 +180,8 @@"ready_login_copied": "{agent} ist jetzt auf dem Server angemeldet.","ready_install": "{items} installieren","ready_needs_root": "Braucht root oder sudo für diesen Login.",+ "ready_body_windows": "IDE-Sitzungen und Agenten auf diesem Windows-Computer brauchen Git for Windows und eine angemeldete Coding-CLI. Dort stoppen sie, wenn dieser PC die Verbindung trennt.",+ "ready_needs_admin": "Braucht einen Administrator-Login auf diesem Computer.","ready_installing": "Wird auf dem Server installiert…","ready_install_done": "Installiert.","ready_install_failed": "Die Installation ist fehlgeschlagen.",@@ -187,6 +189,7 @@"keep_body": "Beim Beenden der App ziehen laufende Agentic-IDE-Sitzungen samt Ordner und Gespräch auf diesen Computer um und arbeiten dort weiter.","keep_off": "Aus","keep_failed": "Die Einstellung konnte nicht gespeichert werden.",+ "keep_windows_note": "Windows-Computer stehen hier nicht zur Wahl: Agenten dort stoppen, wenn dieser PC die Verbindung trennt.","provider_vultr": "Vultr","provider_linode": "Akamai Linode","provider_aws_lightsail": "AWS Lightsail",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/computers/en.json b/jarvis/ui/web/frontend/src/i18n/locales/computers/en.jsonindex e25fe5baf5..9ced0d0c49 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/computers/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/computers/en.json@@ -180,6 +180,8 @@"ready_login_copied": "{agent} is now logged in on the server.","ready_install": "Install {items}","ready_needs_root": "Needs root or sudo on this login.",+ "ready_body_windows": "IDE sessions and agents that run on this Windows computer need Git for Windows and a logged-in coding CLI. There they stop when this PC disconnects.",+ "ready_needs_admin": "Needs an administrator login on this computer.","ready_installing": "Installing on the server…","ready_install_done": "Installed.","ready_install_failed": "The installation failed.",@@ -187,6 +189,7 @@"keep_body": "When you quit the app, running Agentic IDE sessions move to this computer with their folder and conversation, and carry on there.","keep_off": "Off","keep_failed": "The setting could not be saved.",+ "keep_windows_note": "Windows computers are not offered here: agents there stop when this PC disconnects.","provider_vultr": "Vultr","provider_linode": "Akamai Linode","provider_aws_lightsail": "AWS Lightsail",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/computers/es.json b/jarvis/ui/web/frontend/src/i18n/locales/computers/es.jsonindex 014bf727b7..7b310a6dfb 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/computers/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/computers/es.json@@ -180,6 +180,8 @@"ready_login_copied": "{agent} ya tiene sesión iniciada en el servidor.","ready_install": "Instalar {items}","ready_needs_root": "Necesita root o sudo en este usuario.",+ "ready_body_windows": "Las sesiones del IDE y los agentes en este ordenador Windows necesitan Git for Windows y una CLI de código con sesión iniciada. Allí se detienen cuando este PC se desconecta.",+ "ready_needs_admin": "Necesita un usuario administrador en este ordenador.","ready_installing": "Instalando en el servidor…","ready_install_done": "Instalado.","ready_install_failed": "La instalación ha fallado.",@@ -187,6 +189,7 @@"keep_body": "Al cerrar la app, las sesiones del Agentic IDE en marcha se mueven a este ordenador con su carpeta y su conversación, y continúan allí.","keep_off": "Desactivado","keep_failed": "No se pudo guardar el ajuste.",+ "keep_windows_note": "Los ordenadores Windows no se ofrecen aquí: los agentes allí se detienen cuando este PC se desconecta.","provider_vultr": "Vultr","provider_linode": "Akamai Linode","provider_aws_lightsail": "AWS Lightsail",diff --git a/jarvis/ui/web/frontend/src/views/computers/AgentReadiness.tsx b/jarvis/ui/web/frontend/src/views/computers/AgentReadiness.tsxindex 11f5205cdd..7e14fa5adf 100644--- a/jarvis/ui/web/frontend/src/views/computers/AgentReadiness.tsx+++ b/jarvis/ui/web/frontend/src/views/computers/AgentReadiness.tsx@@ -95,6 +95,8 @@ export function AgentReadiness({ computer }: { computer: Computer }) {}const data = readiness.data;+ // A Windows computer needs Git for Windows instead of tmux, and an admin, not root.+ const windows = data?.os === "Windows" || computer.facts?.os_id === "windows";return (<div data-testid="computer-readiness"><Panel className="p-5">@@ -122,7 +124,9 @@ export function AgentReadiness({ computer }: { computer: Computer }) {{readiness.isFetching ? <Loader2 className="animate-spin" /> : <RefreshCw />}</Button></div>- <p className="mb-4 text-sm text-muted-foreground">{t("computers.ready_body")}</p>+ <p className="mb-4 text-sm text-muted-foreground">+ {t(windows ? "computers.ready_body_windows" : "computers.ready_body")}+ </p>{!online && <p className="text-sm text-muted-foreground">{t("computers.ready_offline")}</p>}{readiness.isError && <p role="alert" className="text-sm text-destructive">{errorText(readiness.error)}</p>}@@ -182,7 +186,9 @@ export function AgentReadiness({ computer }: { computer: Computer }) {)}</Button>{!data.root && !data.sudo && (- <span className="text-xs text-muted-foreground">{t("computers.ready_needs_root")}</span>+ <span className="text-xs text-muted-foreground">+ {t(windows ? "computers.ready_needs_admin" : "computers.ready_needs_root")}+ </span>)}</div>)}diff --git a/jarvis/ui/web/frontend/src/views/computers/KeepWorking.tsx b/jarvis/ui/web/frontend/src/views/computers/KeepWorking.tsxindex 5e84472960..81e983064b 100644--- a/jarvis/ui/web/frontend/src/views/computers/KeepWorking.tsx+++ b/jarvis/ui/web/frontend/src/views/computers/KeepWorking.tsx@@ -3,6 +3,8 @@* app safe for running coding agents: on quit, every IDE workspace with an* agent running on this machine moves to the chosen computer (folder,* uncommitted edits and conversation included) and carries on there in tmux.+ * Windows computers are not offered: without tmux their agents stop with the+ * app's connection.*/import { useEffect, useState } from "react";import { Loader2, MoonStar } from "lucide-react";@@ -55,10 +57,14 @@ export function KeepWorking({ computers }: { computers: Computer[] }) {}}+ // A Windows computer has no tmux: agents moved there at quit would stop with+ // this PC's connection, so it is no target (the backend refuses it as well).+ const isWindows = (computer: Computer) => computer.facts?.os_id === "windows";+ const hasWindows = computers.some(isWindows);const options = [{ id: null as string | null, label: t("computers.keep_off") },...computers- .filter((computer) => computer.health.status !== "provisioning")+ .filter((computer) => computer.health.status !== "provisioning" && !isWindows(computer)).map((computer) => ({ id: computer.id as string | null, label: computer.name })),];@@ -96,6 +102,7 @@ export function KeepWorking({ computers }: { computers: Computer[] }) {);})}</div>+ {hasWindows && <p className="mt-2 text-xs text-muted-foreground">{t("computers.keep_windows_note")}</p>}{error && <p role="alert" className="mt-2 text-sm text-destructive">{error}</p>}</div></div>diff --git a/jarvis/ui/web/frontend/src/views/computers/connection.test.ts b/jarvis/ui/web/frontend/src/views/computers/connection.test.tsindex 181fab3532..c525847441 100644--- a/jarvis/ui/web/frontend/src/views/computers/connection.test.ts+++ b/jarvis/ui/web/frontend/src/views/computers/connection.test.ts@@ -55,6 +55,10 @@ describe("setupPrompt", () => {const prompt = setupPrompt("George", "ssh-ed25519 AAAA george@desk");expect(prompt).toContain("ssh-ed25519 AAAA george@desk");expect(prompt).toContain("administrators_authorized_keys");+ // Group names are localized ("Administratoren"); only the SIDs work everywhere.+ expect(prompt).toContain("*S-1-5-32-544:F");+ expect(prompt).not.toContain('"Administrators:F"');+ expect(prompt).toContain("Git for Windows");expect(prompt).not.toContain("BEGIN OPENSSH PRIVATE KEY");expect(prompt.trim().endsWith(`${CONNECT_MARKER} <account>@<address>:<port>`)).toBe(true);});diff --git a/jarvis/ui/web/frontend/src/views/computers/connection.ts b/jarvis/ui/web/frontend/src/views/computers/connection.tsindex ad98f22330..6dba3ef879 100644--- a/jarvis/ui/web/frontend/src/views/computers/connection.ts+++ b/jarvis/ui/web/frontend/src/views/computers/connection.ts@@ -141,9 +141,9 @@ export function setupPrompt(assistantName: string, publicKey: string): string {2. Authorize exactly this PUBLIC key for the account I normally use on this computer. Do not create, copy or print any private key.${publicKey}- Linux/macOS: append it to ~/.ssh/authorized_keys of that account (folder mode 700, file mode 600, owned by that account).- - Windows: if the account is in the Administrators group, append it to C:\\ProgramData\\ssh\\administrators_authorized_keys and run: icacls C:\\ProgramData\\ssh\\administrators_authorized_keys /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F". Otherwise append it to C:\\Users\\<account>\\.ssh\\authorized_keys.+ - Windows: if the account is in the Administrators group, append it to C:\\ProgramData\\ssh\\administrators_authorized_keys (UTF-8 without a byte-order mark) and run: icacls C:\\ProgramData\\ssh\\administrators_authorized_keys /inheritance:r /grant "*S-1-5-32-544:F" /grant "*S-1-5-18:F" (the group SIDs work in every Windows language). Otherwise append it to C:\\Users\\<account>\\.ssh\\authorized_keys.-3. If this is Linux or macOS, also install tmux and git if they are missing (coding agents will run here later).+3. Coding agents will run here later. On Linux or macOS, install tmux and git if they are missing. On Windows, install Git for Windows if it is missing (winget install --id Git.Git -e); the agents use its Git Bash.4. Work out the address another computer can use to reach this one: the local network IP if we are on the same network, otherwise the public IP. If a router port-forward would be needed, tell me in one sentence.diff --git a/tests/unit/computers/test_windows_remote.py b/tests/unit/computers/test_windows_remote.pyindex d5160432f2..fc26c4c9ba 100644--- a/tests/unit/computers/test_windows_remote.py+++ b/tests/unit/computers/test_windows_remote.py@@ -418,3 +418,26 @@ async def test_ide_pane_runs_without_tmux_and_ends_with_its_channel(assert screen.closed == [5], "the agent's own exit, no re-attach attempt"finally:pool.close_all()+++async def test_keep_working_never_moves_panes_to_windows(+ desk, # noqa: ANN001+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ """Without tmux its agents would stop with the app's connection at quit."""+ from jarvis.agentic_ide import offload_on_quit++ monkeypatch.setattr(offload_on_quit, "target", lambda: desk.id)+ placed: list[str] = []++ async def place_workspace(workspace_id: str, *, computer_id: str) -> None:+ placed.append(workspace_id)++ running = SimpleNamespace(pty_id="p1", computer_id="")+ registry = SimpleNamespace(+ sessions=[SimpleNamespace(id="ws1", name="app", terminals=[running])],+ place_workspace=place_workspace,+ )++ assert await offload_on_quit.offload_before_quit(registry) == []+ assert placed == []