Agent Zero AI framework
Prefer Super+H for host window hiding
Alessandro2f9037a1953c
diff --git a/plugins/_a0_connector/prompts/agent.system.tool.computer_use_remote.md b/plugins/_a0_connector/prompts/agent.system.tool.computer_use_remote.mdindex f9a4e1192..683cfbf52 100644--- a/plugins/_a0_connector/prompts/agent.system.tool.computer_use_remote.md+++ b/plugins/_a0_connector/prompts/agent.system.tool.computer_use_remote.md@@ -10,7 +10,7 @@ If the tool reports no CLI, disabled computer use, or `COMPUTER_USE_REARM_REQUIRCall `start_session` before screen-driven tasks. Use `status` for state only, `capture` for screenshots without an action, and `stop_session` when the desktop task is complete. Interactive actions should use normalized global-screen coordinates from the most recent capture.-State-changing actions automatically attach a fresh screen after they run. Treat key presses, clicks, scrolling, typing, and window-manager shortcuts as attempts, not success: inspect the latest attached screen, or one explicit `capture` if it is unclear or unchanged, before saying the requested outcome happened. This is mandatory for Ubuntu/Wayland shortcuts such as `Alt+F9`.+State-changing actions automatically attach a fresh screen after they run. Treat key presses, clicks, scrolling, typing, and window-manager shortcuts as attempts, not success: inspect the latest attached screen, or one explicit `capture` if it is unclear or unchanged, before saying the requested outcome happened. For Ubuntu/GNOME/Wayland hide-window tasks, prefer `Super+H` (`{"action":"key","keys":["Super","H"]}`) for the active window; do not use `Alt+F9` as the primary hide/minimize shortcut because it often leaves the window visible. A `type` result only proves keystrokes were sent; it does not prove the window was hidden or that text landed in the intended place.```json{diff --git a/plugins/_a0_connector/skills/host-computer-use/SKILL.md b/plugins/_a0_connector/skills/host-computer-use/SKILL.mdindex cc5b091b9..479823936 100644--- a/plugins/_a0_connector/skills/host-computer-use/SKILL.md+++ b/plugins/_a0_connector/skills/host-computer-use/SKILL.md@@ -88,7 +88,9 @@ If any tool result contains `COMPUTER_USE_REARM_REQUIRED` or `status=rearm requi- If the same approach has already failed twice without visible progress, switch strategy instead of repeating it.- Do not infer focus or task completion from chat logs, sidebars, tool summaries, or status text.- Never claim a window was hidden, minimized, moved, text was submitted, or navigation completed until the latest screenshot visibly confirms it.-- Treat Ubuntu/Wayland window-manager shortcuts such as `Alt+F9` as attempts only; verify the result from the fresh screenshot before deciding what happened.+- On Ubuntu/GNOME/Wayland, use `Super+H` (`{"action":"key","keys":["Super","H"]}`) to hide the active window. Do not use `Alt+F9` as the primary hide/minimize shortcut on this environment; it often leaves the window visible.+- After any hide/minimize shortcut, inspect the fresh screenshot. If the target window or focused composer is still visible, treat the attempt as failed and do not type follow-up text into the active field.+- A `type` tool result only confirms keystrokes were sent. It is not evidence that the text landed in the intended application, nor evidence that a window was hidden first.- For browser-navigation tasks done through this tool, only claim success if the browser content area visibly shows the destination page or result.- If the attached screenshot appears unchanged after a state-changing action, use one explicit `capture` to verify before repeating the same action.- Use `type(..., submit=true)` only for URL or navigation-style entry where Enter should fire immediately after typing.diff --git a/tests/test_a0_connector_prompt_gating.py b/tests/test_a0_connector_prompt_gating.pyindex 89178d58e..d83dda224 100644--- a/tests/test_a0_connector_prompt_gating.py+++ b/tests/test_a0_connector_prompt_gating.py@@ -136,9 +136,14 @@ def test_computer_use_remote_prompt_requires_visual_verification_after_actions()assert "Treat key presses, clicks, scrolling, typing" in promptassert "attempts, not success" in prompt+ assert "Super+H" in prompt+ assert '["Super","H"]' in promptassert "Alt+F9" in prompt+ assert "Do not use `Alt+F9` as the primary hide/minimize shortcut" in skill+ assert "A `type` tool result only confirms keystrokes were sent" in skill+ assert "do not type follow-up text into the active field" in skillassert "visibly confirms" in skill- assert "Ubuntu/Wayland" in skill+ assert "Ubuntu/GNOME/Wayland" in skilldef test_remote_file_and_exec_tools_are_standard_tool_prompts_independent_from_context():