perf: bound application point lookup - #38
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
PR SummaryMedium Risk Overview New Tests cover exact vs compatibility fallback, window ordering and deduplication, zero app queries on off-screen misses with large snapshots, and coordinate conversion. Reviewed by Cursor Bugbot for commit 68f4da7. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 7:02 AM ET / 11:02 UTC. ClawSweeper reviewWhat this changesThe branch replaces Accessibility-wide application point lookup with native on-screen window-owner lookup, adds an exact-miss API, and tests coordinate, ordering, fallback, and performance behavior. Merge readinessKeep open: current main does not contain this lookup redesign, and this collaborator-authored PR explicitly awaits a dependency consolidation before rebase and exact-head validation. Priority: P2 Review scores
Verification
How this fits togetherAXorcist maps a pointer location to the macOS application that should receive accessibility automation. This lookup feeds application targeting, where a match selects an eligible owner and a legacy compatibility path may instead return the frontmost app. flowchart LR
A[Pointer request] --> B[Display coordinate conversion]
B --> C[On-screen window snapshot]
C --> D[Eligible window-owner lookup]
D --> E[Selected application]
C --> F[No matching window]
F --> G[Exact miss or legacy frontmost fallback]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto the post-consolidation main branch, retain the explicit exact-versus-compatibility split, and land only after fresh desktop validation confirms targeting behavior on the final head. Do we have a high-confidence way to reproduce the issue? Unclear for the final merge head: the PR body reports live macOS validation, but it also states that it must be re-proven after its planned rebase. Is this the best way to solve the issue? Yes, subject to refreshed exact-head validation: one native on-screen snapshot with explicit exact and legacy-fallback policies is a narrow, maintainable way to bound the expensive lookup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2f490388e6cb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
8c9a83e to
68f4da7
Compare
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: perf: bound application point lookup This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
AppLocator's synchronous all-application Accessibility scan with one ordered native on-screen window snapshot and direct PID resolutionexactApp(at:), which never broadens a miss to the frontmost application, while keeping the historical fallback only inapp(at:)Performance
Proof
swift test --filter AppLocatorTests(7/7)PEEKABOO_INCLUDE_AMBIENT_STATE_TESTS=false swift test(116/116 across both test targets)swift build -c releasemake checkExact-head closeout
mainat2f490388e6cb2c1b63092f92d1c2ef0b84d1f177after the Peekaboo dependency consolidation landed68f4da760c4a951b326b3089d8ede65250b8cd90