What's Changed
Added
- Telemetry: Agent now sends structured
agent_event data to PostHog on every invoke/ainvoke call, capturing query, steps, model, provider, success/failure, and error details. Runs silently with no console output.
- Public API:
Agent, Browser, AgentEvent, EventType, BaseEventSubscriber and friends are now importable directly from windows_use:
from windows_use import Agent, Browser
- CI/CD: GitHub Actions workflows for linting and tests on Windows across Python 3.10–3.13, plus automated PyPI publishing on version tags.
Fixed
- Tree traversal:
NoneType crashes when Windows UI Automation returns None for element names — fixed across 6 locations in tree traversal.
- Event system:
ValueError: list.remove(x): x not in list when removing an event subscriber that was already removed or never added.
- Telemetry user ID:
PermissionError on systems where TEMP points to C:\WINDOWS\TEMP — now uses tempfile.gettempdir().
Installation
pip install windows-use==0.7.66
uv add windows-use==0.7.66