wkappbot-core
★☆☆
CDP focus-steal guard: Runtime.evaluate in IsFocusStealingMethod + weMinimized + 500ms wait
Runtime.evaluate can activate Chrome tab and steal fg. Fix: add to IsFocusStealingMethod (unconditional). Track weMinimized to prevent spurious post-restore. Wait 50x10ms for IsIconic before sending CDP (eliminates RACE where minimize command sent but Chrome not yet minimized).
Steps
- IsFocusStealingMethod includes Runtime.evalu...
- Track weMinimized=true when we call ShowWind...
- After ShowWindowNative(SW_SHOWMINNOACTIVE),...
- Verified 2026-04-23: experience/tests/cdp/te...