Fix First-Open Window Flash Before Open Animation Across All Modules (r106)
Fixed the cold-open flash where windows briefly appeared at full scale showing a loading state before disappearing and replaying the open animation: route switches triggered closeWelcome() on #welcome-modal[hidden], which called global windowMorph.cancel() and stripped .is-morph-measuring from the loading target window
# Fix First-Open Window Flash Before Open Animation Across All Modules (r106)
Identified and fixed the root cause of the cold-open flash-and-replay bug across all site modules:
- **Root Cause**: When cold-opening a module, `openWindowWithReadyGate()` hides the target window with `.is-morph-measuring` until route code and data settle. During route commit, `main.js` calls `closeWelcome({ restoreFocus: false })`, mutating `#welcome-modal[hidden]`, which fired `welcomeModalObs` and called global `windowMorph.cancel()`, stripping `.is-morph-measuring` from the loading target window so it flashed at full scale showing loading placeholders until `startOpen()` hid it and replayed the morph animation.
- **Fix**: Added scoped `cancelMode(mode)` in `crt-window-morph.mjs`, updated `welcomeModalObs` to call `windowMorph.cancelMode('welcome')`, and added capturing `prepareOpenMount('welcome')` for direct `[data-open-welcome]` clicks.
- **Cold-Open Verification**: Verified zero flash and single continuous Frame-0 open animation across Knowledge, Videos, Tools, Games, Chatroom, Quick Transfer, Whiteboard, About, and Welcome.