Skip to content

feat(desktop): add window inventory and focus tools - #172

Merged
ElbertePlinio merged 2 commits into
mainfrom
feat/desktop-windows-focus
Sep 15, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
feat/desktop-windows-focus

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Closes #151. Part of #118.

Add desktop_windows / desktop windows for visible window id, name, class, geometry and X input focus. Add desktop_focus / desktop focus with id or exact-name selection, ambiguity rejection, bounded confirmation, existing agent-permit gating and window-target evidence. Existing lightweight window listings remain unchanged.

Focus works on managed bare Xvfb without a window manager. It sets input focus, not window raising or workspace switching. Successful focus is classified as an interaction without relaxing the inspected-screenshot outcome rule.

An independent non-author review accepted the exact submitted tree. Parent verification executed 75 focused tests, including two real zenity windows and 32 security cases. The unchanged-source author full suite and coverage each passed 1,822 tests with four explicit local skips: CI-only prerequisite assertion, two absent-xterm cases, and the missing-x11vnc case because x11vnc is installed. Typecheck, lint and managed complexity passed (66 checked). No local no-sandbox override was used.

CI installs zenity and requires the new live test while preserving existing gates and the Bun pin. Required PR CI must pass on this revision before merge. No device-pass, whole-home or release acceptance is claimed. Later #152-156 work and #170 cleanup are not included.

@ElbertePlinio

Copy link
Copy Markdown
Member Author

The first Ubuntu CI run exposed the older xdotool window-class command mismatch. This candidate reads the standard WM_CLASS property through xprop and adds x11-utils to CI prerequisites. The required live test remains enabled. Current local full suite and coverage each pass 1,828 tests with four disclosed skips; parent focused tests and the saved extracted-Noble live test pass. Fresh Ubuntu CI and independent re-review of this bounded repair are still required before merge. The original failed CI run is retained.

@ElbertePlinio
ElbertePlinio merged commit 0fe9e8f into main Sep 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desktop: window inventory and focus tools

1 participant