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(desktop): the on-screen bar belongs to the default app — a dev instance never draws it and never rewrites the shared style
rubenluetke10-beepcb5d356515cc
diff --git a/docs/dev-instance.md b/docs/dev-instance.mdindex cb4f59c2af..bfe049ab4c 100644--- a/docs/dev-instance.md+++ b/docs/dev-instance.md@@ -19,6 +19,7 @@ working on the app from inside the app.| Window title / taskbar / tray | Personal Jarvis, mascot icon | Personal Jarvis **Dev**, mascot with a yellow **DEV** tag, own taskbar group, own tray entry; the sidebar shows a small **DEV** badge || Wake word, global hotkeys | as configured | **off** — the microphone and the key combos belong to the default app (the in-window mic button and chat still work) || Chat channels (Telegram/Discord), autostart | as configured | **off** — a second poller on the same bot token would collide; the dev app never touches the login autostart entry |+| On-screen overlay (Jarvis Bar / orb) | as configured | **off** — the dev app draws no bar or orb and its Settings refuse to switch the style (HTTP 409): both apps read ONE `jarvis.toml`, and a second bar on the same spot that someone then switched off once took the default app's bar away on its next restart (2026-08-23) || Agentic-IDE resume offer | `last_session.json` | `last_session.dev.json` — a restarted dev app never offers to resume panes that are alive in the default app |## How it is selected@@ -39,7 +40,9 @@ else asks it (`current_instance()`): `jarvis.core.config.DATA_DIR`,`load_config` (port offsets, `memory.data_dir`), `jarvis.ui.icon_utils` (AUMID,shortcut, branded exe, icon), `jarvis.ui.desktop_app.WINDOW_TITLE`, the tray,`jarvis.setup.state`, the Agentic-IDE resume store, `SpeechPipeline` (wake word,-hotkeys), the Friends stack (channels), and the launcher (autostart).+hotkeys), the Friends stack (channels), the launcher (autostart), and+`jarvis.ui.desktop_app.boot_overlay_style` + the overlay-style settings route+(on-screen overlay).## Shortcutsdiff --git a/docs/os-parity.md b/docs/os-parity.mdindex b40d884a56..f677c540e0 100644--- a/docs/os-parity.md+++ b/docs/os-parity.md@@ -254,7 +254,7 @@ experiences today.| P-35 | Low | Desktop shell | The embedded browser's profile is PERSISTENT (`webview.start(private_mode=False, storage_path=<data>/webview)`) so the frontend's `localStorage` — wallpaper pick, deck/classic surface, pane sizes, favourites, theme cache — survives a restart (2026-08-18: pywebview's default private mode parked the WebView2 profile in a fresh `%TEMP%` folder per launch and the interface forgot every pick). The same call is honoured by every pywebview backend (Edge `UserDataFolder`, WebKitGTK `WebsiteDataManager`, Qt profile path, Cocoa's default persistent data store) but has only been RUN against Windows/WebView2 | `jarvis/ui/desktop_app.py::webview_storage_dir` | Honest everywhere: a checkout without a writable data directory falls back to the per-user directory, then to private mode with a logged warning — the interface still works, it only forgets its cosmetic picks. macOS/Linux live check pending: pick a wallpaper, restart, confirm it is still there || P-36 | Low | Coding-CLI panes | DeepSeek Harness is the one registered CLI whose interface is NOT the terminal. Upstream removed its terminal front door and publishes no `@deepseek-ai/dsh-tui*` bundle (checked 2026-08-22), so the two shipped profiles are `web` — a server the pane boots, whose UI opens in the default browser — and `headless`, which answers one task and exits. The pane therefore runs and is detected like every other entry, but declines the keystroke channel (`accepts_typed_prompts=False`), so the prompt bar, voice fan-out and CLI never type into it, and it has no transcript, recap or conversation resume | `jarvis/workspace/agents.py` (the `deepseek-harness` entry), `jarvis/agentic_ide/session.py::accepts_prompts`, upstream `apps/cli/README.md` | Identical on all three OSes — one npm package, one Node entrypoint, no native binary and no OS-specific installer. The one difference is not ours: on a host with no browser (headless Linux, an SSH launch) the harness prints its URL instead of opening it, which is the honest degradation and leaves the pane usable over a forwarded port |-| P-37 | Low | Dev instance | A second desktop app from the same checkout (`--instance dev` / `JARVIS_INSTANCE=dev`, see `docs/dev-instance.md`) is built OS-neutral — own `data-dev/`, ports +100, own single-instance lock, window title, DEV-badged icon, no wake word / global hotkeys / chat channels / autostart — but only the WINDOWS identity layer has been run live: AUMID `PersonalJarvis.PersonalJarvis.Dev`, Start-Menu shortcut `Personal Jarvis Dev.lnk`, branded `PersonalJarvisDev.exe`, tray tooltip. Linux gets its own `.desktop` entry + `StartupWMClass` through the same code path (unverified live). macOS has NO separate bundle for the dev instance: the dock shows the default app's bundle icon, and an in-app restart of the dev instance re-enters through the interpreter directly (`build_launch_command` skips the LaunchServices bundle for a non-default instance, because `open -a` would not carry `JARVIS_INSTANCE` and would bring it back as a second default app) — so the restarted dev app has no TCC attachment of its own | `jarvis/core/instance.py`, `jarvis/ui/icon_utils.py` (instance-bound constants), `jarvis/ui/relauncher.py::build_launch_command` | Windows: full parity, verified live. Linux desktop: expected parity (title, icon, tray, data, ports), entry unverified. macOS: functional (data, ports, title, ambient duties, in-app restart), dock icon degrades as described — the dev window is still told apart by its title and the DEV tag in the sidebar |+| P-37 | Low | Dev instance | A second desktop app from the same checkout (`--instance dev` / `JARVIS_INSTANCE=dev`, see `docs/dev-instance.md`) is built OS-neutral — own `data-dev/`, ports +100, own single-instance lock, window title, DEV-badged icon, no wake word / global hotkeys / chat channels / autostart / on-screen overlay (the dev app boots the NullOverlay at runtime and its overlay-style route answers 409, so a pick there can never rewrite the shared `jarvis.toml`) — but only the WINDOWS identity layer has been run live: AUMID `PersonalJarvis.PersonalJarvis.Dev`, Start-Menu shortcut `Personal Jarvis Dev.lnk`, branded `PersonalJarvisDev.exe`, tray tooltip. Linux gets its own `.desktop` entry + `StartupWMClass` through the same code path (unverified live). macOS has NO separate bundle for the dev instance: the dock shows the default app's bundle icon, and an in-app restart of the dev instance re-enters through the interpreter directly (`build_launch_command` skips the LaunchServices bundle for a non-default instance, because `open -a` would not carry `JARVIS_INSTANCE` and would bring it back as a second default app) — so the restarted dev app has no TCC attachment of its own | `jarvis/core/instance.py`, `jarvis/ui/icon_utils.py` (instance-bound constants), `jarvis/ui/relauncher.py::build_launch_command` | Windows: full parity, verified live. Linux desktop: expected parity (title, icon, tray, data, ports), entry unverified. macOS: functional (data, ports, title, ambient duties, in-app restart), dock icon degrades as described — the dev window is still told apart by its title and the DEV tag in the sidebar |## Maintenancediff --git a/jarvis/core/instance.py b/jarvis/core/instance.pyindex fbf1f1d7f8..ba311875bb 100644--- a/jarvis/core/instance.py+++ b/jarvis/core/instance.py@@ -16,8 +16,10 @@ processes cannot share is separated here:Windows AppUserModelID / Start-Menu shortcut / branded launcher exe, so the twoapps never group under one taskbar button and never focus each other's window;* the *ambient duties* — only the default instance arms the wake word, the- global hotkeys, the chat channels and reconciles autostart. Two apps answering- "Hey Jarvis" at once is a defect, not a feature.+ global hotkeys, the chat channels, reconciles autostart and draws the+ on-screen overlay (Jarvis Bar / orb). Two apps answering "Hey Jarvis" at+ once — or two bars stacked on one spot of the screen — is a defect, not a+ feature.The instance is chosen by the ``JARVIS_INSTANCE`` environment variable (thelauncher's ``--instance`` flag sets it before anything else is imported). It is@@ -109,9 +111,14 @@ class InstanceIdentity:@propertydef owns_ambient_duties(self) -> bool:- """May this instance arm the wake word, global hotkeys, chat channels- and autostart? Only the default app does; a second listener on the same- microphone / bot token / key combo is a collision, not redundancy."""+ """May this instance arm the wake word, global hotkeys, chat channels,+ autostart and the on-screen overlay (Jarvis Bar / orb)? Only the default+ app does; a second listener on the same microphone / bot token / key+ combo — or a second bar on the same spot of the screen — is a collision,+ not redundancy. The overlay is the sharpest case: both instances read+ ONE ``jarvis.toml``, so a dev app that drew its own bar and then had it+ switched off wrote ``orb_style = "none"`` into the shared file and took+ the default app's bar away on its next restart (2026-08-23)."""return self.is_default# ---- naming ---------------------------------------------------------diff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.pyindex 78557f0690..125c732446 100644--- a/jarvis/ui/desktop_app.py+++ b/jarvis/ui/desktop_app.py@@ -122,6 +122,22 @@ _REALTIME_WARM_MIN_INTERVAL_S = 20.0_BACKEND_MIN_UPTIME_FOR_RECOVERY_S = 120.0+def boot_overlay_style(configured: str | None, *, instance: Any | None = None) -> str:+ """The on-screen overlay style this process boots with.++ The screen is an ambient duty (``jarvis.core.instance``): only the default+ app draws the Jarvis Bar / orb. A dev instance beside it would put a second+ bar on the very same spot — and, both apps reading ONE ``jarvis.toml``,+ switching that duplicate off persisted ``orb_style = "none"`` and took the+ default app's bar away on its next restart (2026-08-23). So a non-default+ instance always boots the NullOverlay, at runtime only: the configured+ value is left exactly as it is for the app that owns it.+ """+ configured = configured or "jarvis_bar"+ identity = instance if instance is not None else current_instance()+ return configured if identity.owns_ambient_duties else "none"++def _local_voice_permission_granted(*,platform_name: str | None = None,@@ -3626,9 +3642,18 @@ class DesktopApp:from jarvis.platform.probes import has_overlay- orb_style = self.cfg.ui.orb_style or "jarvis_bar"+ configured_style = self.cfg.ui.orb_style or "jarvis_bar"+ orb_style = boot_overlay_style(configured_style)overlay_ok = has_overlay()+ if orb_style != configured_style:+ # The screen belongs to the default app (see boot_overlay_style).+ logger.info(+ "On-screen overlay stays with the default app — the {} instance "+ "draws none (configured style={}).",+ current_instance().label, configured_style,+ )+if not overlay_ok:# Headless / no display: no surface, no bridge. A later settings# swap persists the choice and applies on the next GUI boot.diff --git a/jarvis/ui/web/settings_routes.py b/jarvis/ui/web/settings_routes.pyindex c1f1432125..90e7a93cb3 100644--- a/jarvis/ui/web/settings_routes.py+++ b/jarvis/ui/web/settings_routes.py@@ -2115,6 +2115,12 @@ async def put_overlay_style(body: OverlayStyleBody, request: Request) -> dict[stLegacy values from a not-yet-rebuilt client (``whisper_bar`` before therename, ``orb`` before the procedural renderer was removed) are normalizedrather than rejected.++ Only the default instance of the app answers this (``jarvis.core.instance``):+ a dev instance beside it draws no overlay, and both read ONE ``jarvis.toml``+ — a pick made there would silently change what the default app shows on its+ next restart (the 2026-08-23 "my bar is gone" case). It answers 409 and says+ where the switch lives instead."""style = normalize_overlay_style(body.style)if style is None:@@ -2122,6 +2128,19 @@ async def put_overlay_style(body: OverlayStyleBody, request: Request) -> dict[ststatus_code=400, detail=f"Unknown overlay style '{body.style.strip()}'")+ from jarvis.core.instance import current_instance++ instance = current_instance()+ if not instance.owns_ambient_duties:+ raise HTTPException(+ status_code=409,+ detail=(+ f"The on-screen overlay belongs to the default app; the {instance.label} "+ "instance draws none and does not change the shared setting. Switch the "+ "style in the regular Personal Jarvis app."+ ),+ )+# Best-effort in-memory cfg update so a later read agrees pre-restart.cfg = _config(request)ui = getattr(cfg, "ui", None)diff --git a/tests/unit/ui/test_overlay_boot_instance.py b/tests/unit/ui/test_overlay_boot_instance.pynew file mode 100644index 0000000000..3bb4bfa7a7--- /dev/null+++ b/tests/unit/ui/test_overlay_boot_instance.py@@ -0,0 +1,39 @@+"""The on-screen overlay is an ambient duty (``jarvis.core.instance``): only the+default app draws the Jarvis Bar / orb. A dev instance beside it boots the+NullOverlay at runtime and leaves the configured style — shared through ONE+``jarvis.toml`` — exactly as it is. Regression for 2026-08-23: the dev app drew a+second bar, switching it off persisted ``orb_style = "none"``, and the default+app lost its bar on the next restart.+"""+from __future__ import annotations++import pytest++from jarvis.core.instance import INSTANCE_ENV_VAR, InstanceIdentity+from jarvis.ui.desktop_app import boot_overlay_style+from jarvis.ui.overlay_styles import OVERLAY_STYLES++[email protected]("configured", OVERLAY_STYLES)+def test_default_instance_boots_the_configured_style(monkeypatch, configured) -> None:+ monkeypatch.delenv(INSTANCE_ENV_VAR, raising=False)+ assert boot_overlay_style(configured) == configured+++def test_default_instance_blank_style_means_the_bar(monkeypatch) -> None:+ monkeypatch.delenv(INSTANCE_ENV_VAR, raising=False)+ assert boot_overlay_style("") == "jarvis_bar"+ assert boot_overlay_style(None) == "jarvis_bar"++[email protected]("configured", OVERLAY_STYLES)+def test_dev_instance_draws_no_overlay_whatever_is_configured(monkeypatch, configured) -> None:+ monkeypatch.setenv(INSTANCE_ENV_VAR, "dev")+ assert boot_overlay_style(configured) == "none"+++def test_explicit_identity_wins_over_the_environment(monkeypatch) -> None:+ monkeypatch.setenv(INSTANCE_ENV_VAR, "dev")+ assert boot_overlay_style("jarvis_bar", instance=InstanceIdentity("default")) == "jarvis_bar"+ monkeypatch.delenv(INSTANCE_ENV_VAR, raising=False)+ assert boot_overlay_style("jarvis_bar", instance=InstanceIdentity("dev")) == "none"diff --git a/tests/unit/ui/test_overlay_style_route.py b/tests/unit/ui/test_overlay_style_route.pyindex 9c8f482e66..67eb7333b3 100644--- a/tests/unit/ui/test_overlay_style_route.py+++ b/tests/unit/ui/test_overlay_style_route.py@@ -87,3 +87,37 @@ def test_put_without_desktop_app_persists_but_needs_restart(monkeypatch):body = r.json()assert body["applied_live"] is Falseassert body["restart_required"] is True+++def test_put_in_a_dev_instance_is_refused_and_touches_nothing(monkeypatch):+ # Both instances read ONE jarvis.toml. A pick made in the dev app would+ # silently change what the default app shows on its next restart — the+ # 2026-08-23 "my bar is gone" case — so the dev instance answers 409, persists+ # nothing and never reaches the live swap.+ import jarvis.core.config_writer as cw+ from jarvis.core.instance import INSTANCE_ENV_VAR++ monkeypatch.setenv(INSTANCE_ENV_VAR, "dev")+ persisted = {}+ monkeypatch.setattr(+ cw, "set_overlay_style", lambda style, **k: persisted.setdefault("v", style)+ )+ swapped = {}+ desktop = SimpleNamespace(swap_overlay=lambda style: swapped.setdefault("v", style))++ r = _client(orb_style="jarvis_bar", desktop=desktop).put(+ "/api/settings/overlay-style", json={"style": "none", "persist": True}+ )+ assert r.status_code == 409+ assert "default app" in r.json()["detail"]+ assert persisted == {}+ assert swapped == {}+++def test_get_in_a_dev_instance_still_reads_the_shared_style(monkeypatch):+ from jarvis.core.instance import INSTANCE_ENV_VAR++ monkeypatch.setenv(INSTANCE_ENV_VAR, "dev")+ r = _client(orb_style="jarvis_bar").get("/api/settings/overlay-style")+ assert r.status_code == 200+ assert r.json()["style"] == "jarvis_bar"