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.

ci(appshot): run the folder, sidecar and probe tests and check the macOS gesture grant

rubenluetke10-beep7793178f6b17
diff --git a/.github/workflows/appshot-cross-os.yml b/.github/workflows/appshot-cross-os.yml
index 05e9d5473e..be0688c8f3 100644
--- a/.github/workflows/appshot-cross-os.yml
+++ b/.github/workflows/appshot-cross-os.yml
@@ -18,6 +18,9 @@ on:
- "jarvis/jarvisx/**"
- "jarvis/platform/clipboard*.py"
- "jarvis/platform/screen_access.py"
+ - "jarvis/platform/user_dirs.py"
+ - "jarvis/platform/qt_sidecar.py"
+ - "jarvis/platform/probes.py"
- "jarvis/screen_context/**"
- "jarvis/trigger/backends/pynput.py"
- "jarvis/ui/web/appshot_routes.py"
@@ -38,6 +41,8 @@ env:
tests/unit/appshot tests/unit/jarvisx tests/unit/platform/test_clipboard.py
tests/unit/platform/test_clipboard_image.py tests/unit/platform/test_clipboard_reader.py
tests/unit/screen_context tests/unit/trigger/test_pynput_shifted_keys.py
+ tests/unit/platform/test_user_dirs.py tests/unit/platform/test_qt_sidecar.py
+ tests/unit/platform/test_probes.py tests/integration/test_downloads_routes.py
jobs:
linux:
diff --git a/scripts/ci/appshot_desktop_smoke.py b/scripts/ci/appshot_desktop_smoke.py
index 34538e504d..57c938812c 100644
--- a/scripts/ci/appshot_desktop_smoke.py
+++ b/scripts/ci/appshot_desktop_smoke.py
@@ -367,6 +367,25 @@ def check_shift_digit_shortcut(report: Report) -> None:
report.add(f"Ctrl+Shift+9 fires on X11 ({layout} layout)", bool(fired))
+def check_macos_gesture_permission(report: Report) -> None:
+ """macOS: a both-keys shortcut never reports armed without Input Monitoring."""
+ if _session() != "macos":
+ return
+ from jarvis.appshot.gesture import make_probe
+ from jarvis.platform.permissions import PermissionId, get_system_permission_port
+
+ granted = get_system_permission_port().runtime_access_granted(PermissionId.INPUT_MONITORING)
+ probe, reason = make_probe("alt")
+ if granted:
+ report.add("both-Option shortcut arms with Input Monitoring", probe is not None, reason)
+ else:
+ report.add(
+ "both-Option shortcut names the missing Input Monitoring grant",
+ probe is None and "Input Monitoring" in reason,
+ reason,
+ )
+
+
def check_headless_imports(report: Report) -> None:
for module in (
"jarvis.appshot.service",
@@ -405,6 +424,7 @@ def main() -> int:
check_jarvisx_copy,
]
steps += [check_markup_burn, check_library_and_downloads, check_shift_digit_shortcut]
+ steps += [check_macos_gesture_permission]
for step in steps:
try:
step(report)