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(cu): stop uninvited window zooming + done-first prompt + per-step logs

Ruben Lütke67f9ae94cc94
diff --git a/jarvis/brain/factory.py b/jarvis/brain/factory.py
index 58a8390a25..1e7e7df8dc 100644
--- a/jarvis/brain/factory.py
+++ b/jarvis/brain/factory.py
@@ -1114,7 +1114,7 @@ def _phase2_full_brain(
main_monitor=getattr(cu_cfg, "main_monitor", "primary"),
coordinate_space=getattr(cu_cfg, "coordinate_space", "auto"),
capture_scope=getattr(cu_cfg, "capture_scope", "window"),
- normalize_window=getattr(cu_cfg, "normalize_window", True),
+ normalize_window=getattr(cu_cfg, "normalize_window", False),
))
# Hot-reload: refresh the live context's step_budget / timeout /
# replan knobs on ConfigReloaded so a voice-tunable change
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index 4a207fd8a0..9f36960643 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -1493,7 +1493,12 @@ class ComputerUseConfig(BaseModel):
# grounding errors then click the wallpaper next to it (live incident
# 2026-07-02). Never moves a window across monitors (mixed-DPI resize
# trap); fixed-size dialogs and the desktop shell are left untouched.
- normalize_window: bool = True
+ # DEFAULT OFF (maintainer mandate 2026-07-02): the restore/maximize
+ # animation visibly "zooms" already-open windows and rearranges the
+ # user's layout uninvited; the window-scoped capture above already gives
+ # the model a full-size view of the window WITHOUT touching it. Opt back
+ # in for setups where tiny floating windows keep mis-grounding.
+ normalize_window: bool = False
# Master switch for the per-action read-back verification suite (claude-in-
# chrome parity): after a type, confirm the text landed in the field; after a
# click_element, confirm the intended state changed; don't blind-batch a
diff --git a/jarvis/cu/engine.py b/jarvis/cu/engine.py
index b14faca034..86b8f4596d 100644
--- a/jarvis/cu/engine.py
+++ b/jarvis/cu/engine.py
@@ -97,6 +97,10 @@ _SYSTEM_BASE = (
"You are the computer-use executor: you operate the user's REAL desktop "
"by looking at a screenshot and issuing mouse/keyboard actions.\n"
"Core discipline — perceive, act, verify:\n"
+ "* FIRST CHECK, before choosing ANY action: is the GOAL's proof already "
+ "visible in this screenshot? Then reply with the done action IMMEDIATELY "
+ "— every extra action after success is a failure (it wastes seconds and "
+ "can undo the result).\n"
"* The screenshot is the ONLY ground truth. Never assume an effect "
"happened; check the fresh screenshot.\n"
"* FIRST verify the effect of your previous action (see PREVIOUS STEPS). "
@@ -419,7 +423,10 @@ async def run_cu_loop(
monitor_policy = str(getattr(ctx, "monitor", "primary") or "primary")
main_monitor = str(getattr(ctx, "main_monitor", "primary") or "primary")
capture_scope = str(getattr(ctx, "capture_scope", "window") or "window")
- normalize_window = bool(getattr(ctx, "normalize_window", True))
+ # DEFAULT OFF: the restore/maximize animation visibly "zooms" open windows
+ # and rearranges the user's layout uninvited (maintainer complaint
+ # 2026-07-02); window-scoped capture covers the grounding need untouched.
+ normalize_window = bool(getattr(ctx, "normalize_window", False))
coordinate_space = str(getattr(ctx, "coordinate_space", "auto") or "auto")
settle_scale = float(getattr(ctx, "settle_scale", 1.0) or 1.0)
strict_verify = bool(getattr(ctx, "strict_verify", True))
@@ -899,12 +906,19 @@ async def run_cu_loop(
f"step {step_idx}: {summary} -> OK"
+ (f" ({detail[:120]})" if detail else ""),
)
+ # Also INFO-log each step: the progress chunks live only in
+ # the harness stdout, which made live per-step forensics
+ # impossible (2026-07-02 x.com run: 15 opaque steps).
+ log.info("[cu] step %d: %s -> OK %s", step_idx, summary,
+ detail[:120] if detail else "")
yield _progress(f"[cu] step {step_idx}: {summary} ok")
else:
consecutive_failures += 1
history.append(
f"step {step_idx}: {summary} -> FAILED: {detail[:180]}",
)
+ log.info("[cu] step %d: %s -> FAILED: %s", step_idx, summary,
+ detail[:180])
yield _progress(f"[cu] step {step_idx}: {summary} FAILED")
if consecutive_failures >= _MAX_CONSECUTIVE_FAILURES:
reason = detail or "the last actions kept failing"
diff --git a/jarvis/harness/computer_use_context.py b/jarvis/harness/computer_use_context.py
index cc2f10c616..adc2fc0194 100644
--- a/jarvis/harness/computer_use_context.py
+++ b/jarvis/harness/computer_use_context.py
@@ -86,9 +86,12 @@ class ComputerUseContext:
# the whole-monitor framing. See jarvis/cu/capture.py::select_capture_target.
capture_scope: str = "window"
# CU v2: maximize the target window on its own monitor before acting
- # ([computer_use].normalize_window). See
+ # ([computer_use].normalize_window). DEFAULT OFF — the restore/maximize
+ # animation visibly "zooms" open windows and rearranges the user's layout
+ # uninvited (maintainer complaint 2026-07-02); the window-scoped capture
+ # covers the grounding need without touching the window. See
# jarvis/platform/window_state.py::normalize_foreground_window.
- normalize_window: bool = True
+ normalize_window: bool = False
_CONTEXT: ComputerUseContext | None = None