Skip to content

Test and verify real-hardware Windows 10/11 compatibility (Win32, UI Automation comtypes, HiDPI/multi-monitor, wincursor, consoles) #49

Backlog

Description

@m3lonxd

Note: This repository enforces the Star Gate (star-check) on pull requests — please ⭐ star this repository before submitting a PR so the required star-check check 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] (verifying comtypes installation and UIA COM initialization across Python 3.9–3.13) and computer-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 + DWM DWMWA_CLOAKED filtering (virtual desktops / background UWP frames), SendInput clicks/drags/wheel/shortcuts and Unicode/Turkish keyboard layouts (KEYEVENTF_UNICODE), GDI BitBlt screenshots.
  • 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_NOACTIVATE overlay click-through without focus steal on real Windows 10/11 + HiDPI/multi-monitor, and tokenized 127.0.0.1 TCP daemon.
  • Consoles & Terminals (platforms/_wincon.py): reading/sending to cmd.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.py
  • core/computer_use_linux/platforms/_wincon.py
  • core/computer_use_linux/backends/uia.py
  • core/computer_use_linux/wincursor.py
  • tests/test_windows_wine.py, tests/test_cursor_wine.py
  • README.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.py control-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, SendInput layouts, wincursor.py, _wincon.py, or packaging) and add regression tests.
  • Update README.md (## Limitations / compatibility status) and docs/DEPENDENCIES.md with verified Windows 10/11 results and known limitations.
  • (Optional/recommended) Add a windows-latest unit/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

  1. added
    enhancement
    help wanted
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions