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.

feat(computer-use): enable desktop control by default on fresh installs

Ruben Lütkecba53668f8b6
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index ac953801cf..e4d09738a9 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -1692,13 +1692,17 @@ class ComputerUseConfig(BaseModel):
"""Top-level ``[computer_use]`` config for the Computer-Use harness.
Controls the screenshot-click loop in
- ``jarvis/harness/screenshot_only_loop.py``. Default OFF — the harness
- only runs when ``enabled = true`` is set (Phase 5 shell module,
- see ADR-0008).
+ ``jarvis/harness/screenshot_only_loop.py``. Default ON since 2026-07-18
+ (maintainer directive): desktop control is the product's core promise and
+ fresh installs experienced the old opt-out default as a broken feature
+ (AP-23 class). Safety holds without the flag: the whitelist ships empty so
+ risky actions stay ask-tier, and machines without a vision engine or
+ display degrade to an honest "not active" ToolResult instead of running
+ (Phase 5 shell module, see ADR-0008).
"""
model_config = {"extra": "allow"}
- enabled: bool = False
+ enabled: bool = True
# Screen indicator (2026-07-15): while a CU mission controls the local
# mouse/keyboard, a pulsing gold border glows on every monitor edge and
# an "Esc to cancel" pill is shown (jarvis/cu/indicator).
diff --git a/jarvis/plugins/tool/computer_use_tool.py b/jarvis/plugins/tool/computer_use_tool.py
index a5f4161939..40b7e288f3 100644
--- a/jarvis/plugins/tool/computer_use_tool.py
+++ b/jarvis/plugins/tool/computer_use_tool.py
@@ -163,18 +163,19 @@ class ComputerUseTool:
return ToolResult(success=False, output=None, error="goal missing")
# Fresh-machine honesty (2026-07-06): computer_use stays in ROUTER_TOOLS
# unconditionally (ADR-0011), but the CU context is only wired when
- # [computer_use].enabled AND a vision engine exist (factory.py). On a
- # fresh install (the shipped default is disabled) every dispatch used
- # to die deep inside the harness with "RuntimeError: ComputerUseHarness
- # context not set". Peek the singleton BEFORE dispatching so an unwired
- # machine gets an honest, actionable ToolResult instead of a crash.
+ # [computer_use].enabled AND a vision engine exist (factory.py). On an
+ # unwired machine (enabled=false, or no vision engine — e.g. headless)
+ # every dispatch used to die deep inside the harness with
+ # "RuntimeError: ComputerUseHarness context not set". Peek the
+ # singleton BEFORE dispatching so an unwired machine gets an honest,
+ # actionable ToolResult instead of a crash.
if peek_computer_use_context() is None:
return ToolResult(
success=False,
output=None,
error=(
"computer-use is not active on this machine: [computer_use].enabled "
- "is false (the shipped default) or no vision engine could be built. "
+ "is false or no vision engine could be built. "
"Tell the user desktop control is currently OFF. There is no "
"Settings toggle for it (yet); it is enabled via the config value "
"computer_use.enabled=true — you may offer to set it through the "