Repository navigation
feat(windows): expose chromium toolbar popovers - #521
Closed
yichen11818 wants to merge 3 commits into
Closed
yichen11818 wants to merge 3 commits into
yichen11818 wants to merge 3 commits into
Conversation
Contributor
|
@yichen11818 is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
This was referenced Nov 3, 2026
yichen11818
marked this pull request as ready for review
November 5, 2026 02:34
Collaborator
|
closing as superseded by #705 on main, which adds Windows agent-desktop wait --surface popover --app "<app>"
agent-desktop snapshot --app "<app>" --surface popover |
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
Chromium toolbar bubbles can be owned tool windows outside the browser frame's UI Automation tree. This adds
snapshot --surface popoversupport on Windows so those controls can be observed through their owning window.The resolver checks visibility, process identity, popup style, and the owner chain, excludes click-through windows, and selects the largest remaining popup. It returns
ELEMENT_NOT_FOUNDwhen none is open. The Windows skill and surface reference describe the new surface.This PR contains the Windows adapter and its tests. JEv's optional use of this surface is tracked in #520; the adapter can be merged independently.
Related issues
No linked issue.
Type of change
feat:new Windows observation surfacetest:live popup ownership, hidden/click-through exclusions, and advertised-surface resolution coveragedocs:Windows skill and surface referenceHow tested
Run on Windows against this branch:
cargo fmt --all -- --checkcargo clippy -p agent-desktop-core -p agent-desktop-windows -p agent-desktop -p agent-desktop-ffi --all-targets -- -D warningscargo test -q -p agent-desktop-core --lib: 1,582 passedcargo test -q -p agent-desktop-windows window_popover::tests: 5 passedevery_advertised_surface_resolves_to_a_rootable_element_when_present: passed, including the new real popup fixture. The existing focused-window leg reported that the OS declined foreground ownership.a_ref_from_a_live_popover_resolves_back_into_that_popover: passed.Popup choice; clicking its ref returnedInvokePattern.Invokesucceeded withdelivered_unverified; a fresh snapshot showed the target focused..git/pr-verification/native-performance.json.cargo test -q -p agent-desktop-windows --lib: the prior full run had 1,462 passed, 24 failed, 6 ignored. The exact same 24 failures reproduce on clean upstream93ae89e86fb849eeb5fc265b0b8e37eca56aaf72; under a private temporary-directory ACL rerun, 4 failures remain (two owner/DACL cases, the windowless-process fixture, and UIA cache provider classification). Security checks were not weakened.scripts/check-architecture.sh: G11's Windows path substitution is fixed independently in companion PR fix(ci): normalize windows paths in architecture self-test #522; this PR's base still needs that fix before this check can pass.action_required; Vercel preview requires a Vercel Labs team authorization. Browser end-to-end testing against Chromium remains outstanding.The live fixture and CLI smoke test verify observation and semantic ref resolution on this Windows host. This draft does not claim that the complete validation gate is green.
Checklist
unwrap()or inline Rust comments