fix(windows): prevent startup window freezes - #1069
Open
vicente-higino wants to merge 2 commits into
Open
Conversation
vicente-higino
marked this pull request as ready for review
July 29, 2026 17:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Fixes Windows startup races that could leave Fladder frozen on the logo, transparent, invisible, or incorrectly restored after an external window manager changed its startup state.
Root cause
FLUTTERVIEWafter FancyZones or another program moved/maximized the top-level window.Changes
Issue Being Fixed
Resolves #1001
Related to #859 and microsoft/PowerToys#32655.
Screenshots / Recordings
N/A. The fix was validated with repeated HWND/FLUTTERVIEW visibility and responsiveness probes under the active FancyZones configuration.
Tested On
Validation
dart format --output=none --set-exit-if-changed --line-length 120on all changed Dart source files: clean.flutter analyze: no issues.AI Assistance Disclosure
This fix was developed with assistance from OpenAI Codex. Codex was used to inspect the startup and native-window paths, correlate local behavior with the linked GitHub reports, implement and refine the changes, generate focused regression tests, run repeated builds and runtime probes, and prepare this pull request. The contributor directed the investigation and manually confirmed the installed Windows build behaves correctly.
Approximately three hours of active AI-assisted investigation, implementation, and validation went into the fix before PR follow-up work. The extended investigation was necessary because the visible freeze was caused by multiple interacting startup races across Dart initialization, Windows player/SMTC setup, the native Win32 host and hosted
FLUTTERVIEW, and external window placement by FancyZones/PowerToys. Process responsiveness alone initially produced a false positive, so repeated HWND/child-visibility inspection, native/AOT rebuilds, and normal/maximized launch stress tests were needed to isolate and verify the fix.Checklist