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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
ci(appshot): press both Shift keys and check GTK shadow trimming on X11
rubenluetke10-beepa71633dc6bbf
diff --git a/.github/workflows/appshot-cross-os.yml b/.github/workflows/appshot-cross-os.ymlindex be0688c8f3..615d393a17 100644--- a/.github/workflows/appshot-cross-os.yml+++ b/.github/workflows/appshot-cross-os.yml@@ -43,6 +43,7 @@ env:tests/unit/screen_context tests/unit/trigger/test_pynput_shifted_keys.pytests/unit/platform/test_user_dirs.py tests/unit/platform/test_qt_sidecar.pytests/unit/platform/test_probes.py tests/integration/test_downloads_routes.py+ tests/unit/platform/test_gtk_frame_extents.py tests/unit/platform/test_window_state_rects.pyjobs:linux:diff --git a/scripts/ci/appshot_desktop_smoke.py b/scripts/ci/appshot_desktop_smoke.pyindex 57c938812c..28326eba55 100644--- a/scripts/ci/appshot_desktop_smoke.py+++ b/scripts/ci/appshot_desktop_smoke.py@@ -367,6 +367,58 @@ def check_shift_digit_shortcut(report: Report) -> None:report.add(f"Ctrl+Shift+9 fires on X11 ({layout} layout)", bool(fired))+def check_both_shift_gesture(report: Report) -> None:+ """X11 only: pressing both Shift keys (the area shortcut) fires the watcher."""+ if _session() != "x11" or not shutil.which("xdotool"):+ return+ from jarvis.appshot.gesture import BothKeysWatcher, make_probe, together_window++ probe, reason = make_probe("shift")+ if probe is None:+ report.add("both-Shift shortcut fires on X11", False, reason)+ return+ fired: list[int] = []+ watcher = BothKeysWatcher(+ lambda: fired.append(1), probe=probe, together_s=together_window("shift")+ )+ watcher.start()+ time.sleep(0.5)+ _run(["xdotool", "keydown", "Shift_L", "keydown", "Shift_R"])+ time.sleep(0.5)+ _run(["xdotool", "keyup", "Shift_R", "keyup", "Shift_L"])+ time.sleep(0.3)+ watcher.stop()+ report.add("both-Shift shortcut fires on X11", fired == [1], f"fired {len(fired)}x")+++def check_gtk_shadow_trim(report: Report) -> None:+ """X11 only: a window publishing GTK shadow margins is captured without them."""+ if _session() != "x11" or not shutil.which("xdotool"):+ return+ try:+ from Xlib import X, Xatom, display+ except ImportError as exc:+ report.add("GTK shadow margins are trimmed", False, f"python-xlib missing: {exc}")+ return+ from jarvis.platform.window_state import WindowInfo, window_frame_rect++ conn = display.Display()+ root = conn.screen().root+ window = root.create_window(200, 150, 846, 646, 0, conn.screen().root_depth, X.InputOutput)+ window.change_property(+ conn.intern_atom("_GTK_FRAME_EXTENTS"), Xatom.CARDINAL, 32, [23, 23, 15, 31]+ )+ window.map()+ conn.sync()+ time.sleep(0.3)+ try:+ rect = window_frame_rect(WindowInfo(title="csd", handle=window.id))+ finally:+ window.destroy()+ conn.close()+ report.add("GTK shadow margins are trimmed", rect == (223, 165, 800, 600), f"rect {rect}")++def check_macos_gesture_permission(report: Report) -> None:"""macOS: a both-keys shortcut never reports armed without Input Monitoring."""if _session() != "macos":@@ -424,7 +476,7 @@ def main() -> int:check_jarvisx_copy,]steps += [check_markup_burn, check_library_and_downloads, check_shift_digit_shortcut]- steps += [check_macos_gesture_permission]+ steps += [check_macos_gesture_permission, check_both_shift_gesture, check_gtk_shadow_trim]for step in steps:try:step(report)