Revert Auto-Type change that caused race condition#12738
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a race condition in the Auto-Type functionality by reverting a previous change and restructuring how the initial start delay is handled. The key insight is that the initial delay must be executed synchronously before grabbing the active window reference, rather than being queued as an action in the actions list.
Key Changes:
- Moved initial Auto-Type delay execution from the action queue to direct execution before window capture
- Introduced file-scoped constants
s_minWaitDelay(100ms) ands_maxWaitDelay(10s) for consistent delay validation - Updated all delay validation logic to use the new constants instead of local variables
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #12738 +/- ##
========================================
Coverage 64.42% 64.42%
========================================
Files 378 378
Lines 39845 39844 -1
========================================
Hits 25667 25667
+ Misses 14178 14177 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
85f7276 to
f48fd6b
Compare
|
Oh, we're having this random test failure again: This seems to be happening when the second lapses during the generation of the test pattern matrix and the actual test execution: Line 157 in 967dc59 My recommended fix would be simply to remove the second from the pattern. This could still happen at the minute mark, but it's way less likely. |
|
confirm this fixed autotype not working on openSUSE KDE X11. Thanks. |
Testing strategy
Type of change