Add exact window discovery, activation, and bounds control#331
Open
zengfanfan wants to merge 1 commit into
Open
Add exact window discovery, activation, and bounds control#331zengfanfan wants to merge 1 commit into
zengfanfan wants to merge 1 commit into
Conversation
zengfanfan
marked this pull request as ready for review
July 13, 2026 12:06
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Windowtool withfind,activate, andboundsmodesMotivation
The existing
Apptool is intentionally convenience-oriented and supports name-based workflows.Deterministic automation also needs a separate path that never fuzzy-selects a similarly named or
titled window and that reports the actual identity and geometry Windows applied.
This replaces the withdrawn draft #317 and continues the focused proposal from #316. The branch was
rebuilt directly on current
main; it does not contain the earlier draft history.Public API
Appbehavior is unchanged. Bounds operations report the actual outer and client rectangles afterWindows applies frame, DPI, menu, and minimum-size constraints.
Safety and compatibility
Testing
ruff check: passedruff format --check: passed30 passed382 passed, 3 failedupstream/main:352 passed, 3 failedtests/test_iserror_compliance.pyimport failures occur on unmodifiedupstream/mainReal Windows smoke validation with a clean Notepad process passed:
800x600700x480Dependencies and overlap
None. This branch is based directly on current
mainand is independent of input guards and strictexecutable launch. Issue #233 concerns screenshot targeting and does not provide exact discovery,
verified activation, or outer/client bounds control.