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.

docs(cu): tie type_text's safe-tier rationale to the foreground-guard contract

Personal Jarvis Maintainer20b77df3e2f6
diff --git a/jarvis/plugins/tool/type_text.py b/jarvis/plugins/tool/type_text.py
index a4c31e5e41..a6f1a6024b 100644
--- a/jarvis/plugins/tool/type_text.py
+++ b/jarvis/plugins/tool/type_text.py
@@ -5,7 +5,11 @@ engine — it injects exact Unicode codepoints regardless of the active keyboard
layout (e.g. German QWERTZ) and is far more robust into webview/Tauri text
inputs than pyautogui's layout-dependent virtual-key approach. pyautogui is kept
as a best-effort fallback on Windows and remains the primary engine on other
-platforms. Risk tier: safe — text input into the active window is reversible (Ctrl+Z).
+platforms. Risk tier: safe — text input into the active window is reversible
+(Ctrl+Z). That rationale leans on the foreground guard pinning the RIGHT
+window: the CU engine holds a strict per-frame window signature and only
+relaxes it for same-app churn after an action of its own batch (see
+``jarvis.cu.target_guard``); this tool's own re-check mirrors that contract.
"""
from __future__ import annotations