Skip to content

Test and verify real-hardware macOS compatibility (Quartz, Accessibility AX, Retina scaling, maccursor, Terminal/iTerm2) #48

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 macOS backend (platforms/macos.py, backends/ax.py, maccursor.py) is currently implemented and logic-tested only against fake Quartz/AX/Objective-C shims (tests/test_macos_logic.py, tests/test_cursor_macos.py). As noted in README.md (## Limitations), it has never been run or verified on a real Mac, so real-world compatibility on macOS (Apple Silicon arm64 and Intel x86_64) is currently unknown.

We need contributors on real macOS machines to run end-to-end verification, fix any ctypes/Quartz/AX/permission/scaling issues found, and bring macOS support from unverified preview to tested status.

Areas to Test & Verify

  • Installation & Permissions: python3 -m pip install '.[all]', computer-use-linux setup, computer-use-linux caps, and macOS Privacy & Security prompts (Accessibility, Screen Recording, Automation) when launched from Terminal.app, iTerm2, VS Code, etc.
  • Windows & Actions (platforms/macos.py): CGWindowListCopyWindowInfo window enumeration, AXUIElement actions (AXRaise, AXMinimized, close button), focus handling across Spaces/Mission Control.
  • Input (CGEventPost / kCGHIDEventTap): left/right/middle click, double-click (kCGMouseEventClickState), drag (*Dragged events), scroll, modifier combos (cmd, ctrl, alt, shift), and Unicode / non-ASCII text input (CGEventKeyboardSetUnicodeString).
  • Screenshots & Retina/Multi-Display Alignment: screencapture -x capture, Screenshot.scale (pixel vs point space), --window, --region, --screen, and --from-shot coordinate accuracy on Retina displays and multi-monitor setups.
  • Accessibility Tree (backends/ax.py): real observe, tree, find, click-text, fill, do --after, wait, and snapshot ref stability (@sid:eN) on native Cocoa apps and browsers/Electron apps.
  • Visible Agent Cursor (maccursor.py): ctypes Objective-C overlay (ignoresMouseEvents, no focus steal) — especially verifying arm64 objc_msgSend prototypes on Apple Silicon and multi-display behavior.
  • Terminals & Service: Terminal.app and iTerm2 AppleScript read/send (argv safety with special characters), tmux panes, and optional background service (CUL_SERVICE=1).

Relevant Code

  • core/computer_use_linux/platforms/macos.py
  • core/computer_use_linux/backends/ax.py
  • core/computer_use_linux/maccursor.py
  • tests/test_macos_logic.py, tests/test_cursor_macos.py
  • README.md (## Install, ## Limitations), docs/DEPENDENCIES.md, .github/workflows/ci.yml

Acceptance Criteria

  • Execute end-to-end manual and automated checks on a real Mac (recording macOS version, architecture arm64/x86_64, display scaling/monitors, and host terminal app).
  • Fix any crashes, ctypes/ABI bugs, coordinate mismatches, permission edge cases, or AX/cursor/terminal defects uncovered on real macOS, adding unit regression tests to tests/test_macos_logic.py / tests/test_cursor_macos.py.
  • Update README.md (## Limitations / compatibility status) and docs/DEPENDENCIES.md with verified macOS compatibility results and any remaining caveats.
  • (Optional/recommended) Add a macos-latest headless unit-test job to .github/workflows/ci.yml so macOS-specific tests run on real macOS runners in CI.

How to Verify

python3 tests/test_macos_logic.py
python3 tests/test_cursor_macos.py

# On a real Mac with Accessibility + Screen Recording granted:
computer-use-linux setup
computer-use-linux caps
computer-use-linux windows
computer-use-linux screenshot --out /tmp/cul-macos.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