wkappbot-core
★★★
a11y focus-steal: user-active silent yield in RestoreFocusWithRetryAsync
When RestoreFocusWithRetryAsync is fighting a focus steal (Chrome/Electron) but user is actively typing (<1.5s idle), treat it as an intentional user switch and bail out silently -- no more ForceForegroundWindow loop, no AutoBugReport noise.
Steps
- Sentinel retries ForceForegroundWindow up to...
- Inside loop: check NativeMethods.GetUserIdle...
- If <1500ms (user is typing/clicking) set use...
- On userBailed return false immediately -- no...
- The user's foreground choice wins; only file...
- Usage context: wkappbot a11y invoke / a11y f...
- Also covers ask gpt / ask claude / ask gemin...
- Verified 2026-04-19: experience/tests/sessio...
- Verified 2026-04-21: test-focus-steal-user-a...
- Verified 2026-04-21: test-a11y-find-focus-st...
- Verified 2026-04-22: test-a11y-find-focus-st...
- Verified 2026-04-28: test-a11y-type-read-wm-...
- Verified 2026-05-10: test-a11y-focusless-fl....