agent-desktop/crates
Lahfir d0371caaec feat: focus the target window before ref-addressed physical input
Ref-action physical fallbacks (click/scroll/type) already brought the target
app frontmost before synthesizing CGEvents. The raw-input commands (drag, hover,
mouse-*) resolving a point from a ref did not — the resolver had the pid but
discarded it, so the adapter saw only coordinates and synthetic events could
land on whatever window happened to be frontmost.

Add a best-effort focus_app(pid) to PlatformAdapter (macOS uses
ensure_app_focused; other adapters default to not_supported). The point resolver
now focuses the ref's app before returning, so every physical interaction that
targets a known element raises its window first. Coordinate (--xy) input is
unchanged: the caller owns the target there.
2026-06-17 13:43:19 -07:00
..
core feat: focus the target window before ref-addressed physical input 2026-06-17 13:43:19 -07:00
ffi fix: close review runtime, correctness, and security gaps 2026-06-17 13:43:19 -07:00
linux refactor!: unify command execution contracts 2026-05-19 18:27:08 -07:00
macos feat: focus the target window before ref-addressed physical input 2026-06-17 13:43:19 -07:00
windows refactor!: unify command execution contracts 2026-05-19 18:27:08 -07:00