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.

chore: auto-save WIP via Claude stop-hook safety net (2026-06-30 16:44)

Ruben Lütke90fcc3b2b6ee
diff --git a/jarvis/brain/tools/self_mod_tools.py b/jarvis/brain/tools/self_mod_tools.py
index f6141a0175..797339b5e9 100644
--- a/jarvis/brain/tools/self_mod_tools.py
+++ b/jarvis/brain/tools/self_mod_tools.py
@@ -34,6 +34,7 @@ from jarvis.core.self_mod import (
MutationRequest,
PendingMutationStore,
PreValidateError,
+ ProviderSwitchLockedError,
ReloadError,
RollbackError,
SecretAccessError,
@@ -373,6 +374,15 @@ class SetConfigValueTool:
try:
pending = self._pending.create(request)
+ except ProviderSwitchLockedError as exc:
+ # The active brain provider is the user's hard choice — Jarvis may
+ # not change it by voice/chat, only the user via the CLI or the
+ # manual provider switch in the desktop app.
+ return ToolResult(
+ success=False,
+ output={"error_kind": "provider_switch_locked", "path": path},
+ error=f"provider_switch_locked: {exc}",
+ )
except SecretAccessError as exc:
return ToolResult(
success=False,