Repository navigation
Description
Note: This repository enforces the Star Gate (
star-check) on pull requests — please ⭐ star this repository before submitting a PR so the requiredstar-checkcheck passes.
Context / Motivation
The Windows backend (platforms/windows.py, platforms/_wincon.py, backends/uia.py, wincursor.py) has only been tested under Wine 10 (tests/test_windows_wine.py, tests/test_cursor_wine.py) and has never been verified on physical Windows 10 or Windows 11. Crucially, Wine's UI Automation implementation does not walk real control trees, meaning backends/uia.py (element tree inspection, find, click-text, fill, do --after) has never been exercised against real Windows apps.
We need contributors on real Windows 10/11 machines to test all capabilities end-to-end, fix any Win32/UIA/DPI/cursor/console bugs discovered, and document verified Windows compatibility.
Areas to Test & Verify
- Installation & Dependencies:
py -m pip install .[all](verifyingcomtypesinstallation and UIA COM initialization across Python 3.9–3.13) andcomputer-use-linux caps. - UI Automation (
backends/uia.py): real control-tree traversal,observe,tree,find,click-text,fill,do --after,wait, and snapshot refs (@sid:eN) on native Win32 apps (Notepad, Explorer), UWP/WinUI apps (Settings, Calculator), and Chromium/Electron apps. - Win32 Windows, Input & Screenshots (
platforms/windows.py):EnumWindows+ DWMDWMWA_CLOAKEDfiltering (virtual desktops / background UWP frames),SendInputclicks/drags/wheel/shortcuts and Unicode/Turkish keyboard layouts (KEYEVENTF_UNICODE),GDI BitBltscreenshots. - High-DPI Scaling & Multi-Monitor: 125% / 150% / 200% scaling, mixed-DPI monitors, and negative virtual-screen origins (
SM_XVIRTUALSCREEN/SM_YVIRTUALSCREEN) verifying Per-Monitor v2 DPI awareness keeps window rects, screenshots, cursor, and clicks aligned. - Visible Agent Cursor (
wincursor.py):WS_EX_LAYERED | WS_EX_TRANSPARENT | WS_EX_NOACTIVATEoverlay click-through without focus steal on real Windows 10/11 + HiDPI/multi-monitor, and tokenized127.0.0.1TCP daemon. - Consoles & Terminals (
platforms/_wincon.py): reading/sending tocmd.exe, PowerShell, and Windows Terminal (ConPTY) sessions. - Edge Cases & Service: graceful error reporting on elevated (UAC/UIPI) windows when running unprivileged, and optional background service (
CUL_SERVICE=1).
Relevant Code
core/computer_use_linux/platforms/windows.pycore/computer_use_linux/platforms/_wincon.pycore/computer_use_linux/backends/uia.pycore/computer_use_linux/wincursor.pytests/test_windows_wine.py,tests/test_cursor_wine.pyREADME.md(## Install,## Limitations),docs/DEPENDENCIES.md,.github/workflows/ci.yml
Acceptance Criteria
- Execute end-to-end verification on physical Windows 10 and/or Windows 11 (recording OS build, Python version, DPI scaling, and monitor layout).
- Verify
backends/uia.pycontrol-tree reading and click/fill-by-ref on real Windows applications (Win32, UWP/WinUI, and browser/Electron). - Fix any discovered bugs (COM/UIA, DPI/multi-monitor math,
SendInputlayouts,wincursor.py,_wincon.py, or packaging) and add regression tests. - Update
README.md(## Limitations/ compatibility status) anddocs/DEPENDENCIES.mdwith verified Windows 10/11 results and known limitations. - (Optional/recommended) Add a
windows-latestunit/smoke CI job to.github/workflows/ci.yml.
How to Verify
# On physical Windows 10/11:
computer-use-linux caps
computer-use-linux windows
computer-use-linux screenshot --out $env:TEMP\cul-win.png
computer-use-linux observe
computer-use-linux cursor 200 200
Activity