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 Ctrl+Shift+9 on X11 and run the capture and hotkey tests
rubenluetke10-beepb5fabbc9f351
diff --git a/.github/workflows/appshot-cross-os.yml b/.github/workflows/appshot-cross-os.ymlindex a939f91a38..05e9d5473e 100644--- a/.github/workflows/appshot-cross-os.yml+++ b/.github/workflows/appshot-cross-os.yml@@ -17,6 +17,9 @@ on:- "jarvis/appshot/**"- "jarvis/jarvisx/**"- "jarvis/platform/clipboard*.py"+ - "jarvis/platform/screen_access.py"+ - "jarvis/screen_context/**"+ - "jarvis/trigger/backends/pynput.py"- "jarvis/ui/web/appshot_routes.py"- "scripts/ci/appshot_desktop_smoke.py"- "tests/unit/appshot/**"@@ -34,6 +37,7 @@ env:APPSHOT_TESTS: >-tests/unit/appshot tests/unit/jarvisx tests/unit/platform/test_clipboard.pytests/unit/platform/test_clipboard_image.py tests/unit/platform/test_clipboard_reader.py+ tests/unit/screen_context tests/unit/trigger/test_pynput_shifted_keys.pyjobs:linux:@@ -52,12 +56,12 @@ jobs:- name: Desktop packagesrun: |sudo apt-get update -qq- sudo apt-get install -y -qq --no-install-recommends xvfb xauth xclip xsel \+ sudo apt-get install -y -qq --no-install-recommends xvfb xauth xclip xsel xdotool x11-xkb-utils \wl-clipboard sway libegl1 libxkbcommon-x11-0 libxcb-cursor0 libxcb-icccm4 \libxcb-keysyms1 libxcb-shape0 libxcb-xinerama0 libxcb-randr0 \libxcb-render-util0 libxcb-image0 libportaudio2 ffmpeg- name: Install- run: python -m pip install -e ".[dev,desktop]"+ run: python -m pip install -e ".[dev,desktop,desktop-linux]"- name: Unit tests (no display, Qt offscreen)env:QT_QPA_PLATFORM: offscreendiff --git a/scripts/ci/appshot_desktop_smoke.py b/scripts/ci/appshot_desktop_smoke.pyindex abbdce4810..34538e504d 100644--- a/scripts/ci/appshot_desktop_smoke.py+++ b/scripts/ci/appshot_desktop_smoke.py@@ -343,6 +343,30 @@ def check_real_appshot(report: Report, *, expect_capture: bool) -> None:report.add("a refusal explains itself", bool(result.message), result.message)+def check_shift_digit_shortcut(report: Report) -> None:+ """X11 only: a real Ctrl+Shift+9 (the recording shortcut) reaches the hotkey backend."""+ if _session() != "x11" or not shutil.which("xdotool"):+ return+ try:+ from jarvis.trigger.backends.pynput import PynputBackend+ except ImportError as exc:+ report.add("Ctrl+Shift+9 fires on X11", False, f"pynput backend unavailable: {exc}")+ return+ for layout in ("us", "de"):+ if shutil.which("setxkbmap"):+ _run(["setxkbmap", layout])+ fired: list[int] = []+ backend = PynputBackend()+ backend.register([("ctrl+shift+9", lambda hits=fired: hits.append(1))])+ backend.start()+ time.sleep(1.0)+ _run(["xdotool", "keydown", "ctrl", "keydown", "shift", "key", "9"])+ _run(["xdotool", "keyup", "shift", "keyup", "ctrl"])+ time.sleep(1.0)+ backend.stop()+ report.add(f"Ctrl+Shift+9 fires on X11 ({layout} layout)", bool(fired))++def check_headless_imports(report: Report) -> None:for module in ("jarvis.appshot.service",@@ -380,7 +404,7 @@ def main() -> int:check_text_clipboard,check_jarvisx_copy,]- steps += [check_markup_burn, check_library_and_downloads]+ steps += [check_markup_burn, check_library_and_downloads, check_shift_digit_shortcut]for step in steps:try:step(report)