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.

fix(config): heal stale inherited GPT-Live env vars at boot

rubenluetke10-beep9dbab68040a7
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index 88a044ae68..121110af84 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -4612,6 +4612,16 @@ _PERSISTED_PROVIDER_ENV_KEYS: tuple[str, ...] = (
"JARVIS__GOOGLE__VERTEX_PROJECT",
"JARVIS__GOOGLE__VERTEX_LOCATION",
"JARVIS__GOOGLE__SERVICE_ACCOUNT_PATH",
+ # GPT-Live profile. Forensic 2026-09-29: the user switched the thinking
+ # model to a ~20x cheaper one, jarvis.toml and the registry both held it,
+ # yet a restart inherited the old model from an ancestor env and every
+ # voice turn kept billing the expensive one.
+ "JARVIS__LIVE__MODEL",
+ "JARVIS__LIVE__VOICE",
+ "JARVIS__LIVE__BACKEND_MODEL",
+ "JARVIS__LIVE__REASONING_EFFORT",
+ "JARVIS__LIVE__WEB_SEARCH",
+ "JARVIS__LIVE__CONFIGURED",
)
diff --git a/tests/unit/core/test_persisted_provider_env_refresh.py b/tests/unit/core/test_persisted_provider_env_refresh.py
index 6d1db62a51..1a78f48889 100644
--- a/tests/unit/core/test_persisted_provider_env_refresh.py
+++ b/tests/unit/core/test_persisted_provider_env_refresh.py
@@ -138,6 +138,18 @@ def test_refresh_heals_stale_ack_brain_enabled(monkeypatch: pytest.MonkeyPatch)
assert changed["JARVIS__ACK_BRAIN__PROVIDER"] == "gemini"
+def test_refresh_heals_stale_live_thinking_model(monkeypatch: pytest.MonkeyPatch) -> None:
+ """2026-09-29: a restart inherited the old, ~20x pricier GPT-Live thinking
+ model although the registry already held the user's cheaper choice."""
+ monkeypatch.setenv("JARVIS__LIVE__BACKEND_MODEL", "expensive-model") # stale inherited
+ reg = {"JARVIS__LIVE__BACKEND_MODEL": "cheap-model"}
+
+ changed = config.refresh_persisted_env_from_user_registry(read=reg.get)
+
+ assert os.environ["JARVIS__LIVE__BACKEND_MODEL"] == "cheap-model"
+ assert changed == {"JARVIS__LIVE__BACKEND_MODEL": "cheap-model"}
+
+
def test_refresh_default_reader_is_noop_off_win32(monkeypatch: pytest.MonkeyPatch) -> None:
"""With no injected reader on a non-win32 platform the default reader yields
None for every key, so nothing is changed (cloud-first / Linux VPS safe)."""