Repository navigation
macos: walk the focused window and menu bar - #42
Open
charan-rathore wants to merge 1 commit into
Open
charan-rathore wants to merge 1 commit into
charan-rathore wants to merge 1 commit into
Conversation
Contributor
Author
|
This is green on CI and conflict-free on my end. Is there anything you'd like changed before it can land? Happy to adjust. |
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
Fixes #36. The macOS actionable-control walk previously started at the app, traversing every window and desktop icon before it reached the front Finder window's controls. It now walks the focused window and the menu bar under the existing app root. When no focused window is available, it keeps the original app-wide fallback.
This changes only the macOS actionable walk. It does not change the shared bounded walker, Windows, or OCR. Open PR #18 adds separate macOS menu and unnamed-control walks, but leaves this
actionable_elementspath intact.Checks
uv run --no-sync ruff check .: passed.uv run --no-sync ruff format --check .: passed.uv run --no-sync pytest -q: 616 passed, 3 skipped, 1 xfailed on Linux.Caveat
No real Finder replay or macOS accessibility capture was run here. The before/after assertion is a fake AX tree; CI's macOS job will test the code path, but not Finder's live tree.
Instinct assisted.