Skip to content

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.

docs: allow explicitly authorized desktop restarts

rubenluetke10-beep37ad65c156b8
diff --git a/AGENTS.md b/AGENTS.md
index f3d3408686..ea3255298e 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -70,9 +70,12 @@ on unpinned libs; signing private keys ONLY in GH Actions secrets; no silent
## 9. Operational reality & git
Working tree is SHARED: stage only YOUR files (`git add -p`/pathspec, never
`git add -A`/`.`); auto-commit each logical step (Conventional Commits); never
-push automatically; never commit secrets. **Coding agents NEVER restart, quit,
-kill, or relaunch the desktop app** (no restart API/CLI, `Stop-Process`, or
-equivalent). If Python changes need a restart, explain why and let the maintainer
+push automatically; never commit secrets. Desktop lifecycle actions are
+maintainer-gated: agents may restart, quit, kill, or relaunch the desktop app
+ONLY after the maintainer explicitly authorizes that exact action in the current
+conversation. Generic "fix/finish/verify" approval is insufficient. Verify the
+exact Personal Jarvis PID + command first and never affect unrelated processes.
+Without explicit approval, explain why a restart is needed and let the maintainer
click Restart in the desktop UI. The desktop WebView
has no F5/console — frontend fix = `npm run build` in
`jarvis/ui/web/frontend/`, nothing else: open windows reload themselves
diff --git a/CLAUDE.md b/CLAUDE.md
index f3d3408686..ea3255298e 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -70,9 +70,12 @@ on unpinned libs; signing private keys ONLY in GH Actions secrets; no silent
## 9. Operational reality & git
Working tree is SHARED: stage only YOUR files (`git add -p`/pathspec, never
`git add -A`/`.`); auto-commit each logical step (Conventional Commits); never
-push automatically; never commit secrets. **Coding agents NEVER restart, quit,
-kill, or relaunch the desktop app** (no restart API/CLI, `Stop-Process`, or
-equivalent). If Python changes need a restart, explain why and let the maintainer
+push automatically; never commit secrets. Desktop lifecycle actions are
+maintainer-gated: agents may restart, quit, kill, or relaunch the desktop app
+ONLY after the maintainer explicitly authorizes that exact action in the current
+conversation. Generic "fix/finish/verify" approval is insufficient. Verify the
+exact Personal Jarvis PID + command first and never affect unrelated processes.
+Without explicit approval, explain why a restart is needed and let the maintainer
click Restart in the desktop UI. The desktop WebView
has no F5/console — frontend fix = `npm run build` in
`jarvis/ui/web/frontend/`, nothing else: open windows reload themselves
diff --git a/docs/agent-contract.md b/docs/agent-contract.md
index 177e98fb97..f05cbd8fbe 100644
--- a/docs/agent-contract.md
+++ b/docs/agent-contract.md
@@ -481,14 +481,20 @@ Detail in [`docs/BUGS.md`](BUGS.md):
(`git add -p` / pathspec-scoped). A large uncommitted diff is normal. On a
corrupted-looking index/HEAD, recover via temp-index commit + `update-ref`
CAS + safety branch (`git-rescue` on repo-wide disorder).
-- **Coding agents NEVER restart, quit, kill, or relaunch the desktop app.** Do
- not call `POST /api/settings/restart-app`, `jarvis system restart`,
- `Stop-Process`, or an equivalent process-control path. A task such as
- "finish", "verify", or "fix it" is not restart approval, and `--yes` is not
- human presence. When a Python-side change genuinely needs a fresh process,
- state the reason and let the maintainer click Restart in the desktop UI. The
- server rejects Control-API/Bearer restart requests so this contract remains
- fail-closed when a prompt is missed.
+- **Desktop lifecycle actions are maintainer-gated.** Coding agents must not
+ restart, quit, kill, or relaunch the desktop app unless the maintainer
+ explicitly authorizes that exact lifecycle action in the current
+ conversation. A task such as "finish", "verify", or "fix it" is not restart
+ approval, and `--yes` is not human presence. Before an authorized action,
+ verify the exact Personal Jarvis PID and command line with read-only checks;
+ target only that process and never a name-wide Python/process set. Prefer the
+ supported in-app relauncher. If the UI is absent, an authorized agent may
+ terminate only the verified process and relaunch `jarvis.ui.web.launcher`
+ with the same interpreter and repository working directory. Verify the new
+ PID, API reachability, and desktop window afterward. Without explicit
+ approval, state why a fresh process is needed and let the maintainer click
+ Restart in the desktop UI. The server still rejects Control-API/Bearer
+ restart requests so unattended automation remains fail-closed.
- **Jarvis is used as a DESKTOP APP, not a browser tab.** The window is an
embedded WebView (`jarvis/ui/desktop_app.py`) with no address bar, no
reload button and no dev tools, so "press Ctrl+R / F5", "hard-refresh",