You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Fix splash screen white flash and improve error handling
## Problem
- Splash screen sometimes showed white flash during startup
- No user-visible error messages when startup fails
- Users see black screen with no feedback if app fails to start
## Solution
### 1. Fix White Flash
Added `backgroundColor: '#1f1f1f'` to splash window configuration to match
the splash HTML background color (hsl(0 0% 12%)). This eliminates any white
flash if HTML loads slowly.
### 2. Comprehensive Error Handling
Wrapped entire `app.whenReady()` in try/catch to handle all startup failures:
- Close splash screen on error
- Show error dialog with full error message and stack trace
- Quit app gracefully after showing error
- Ensures users always see startup failures instead of silent black screen
### 3. Update Documentation
- Corrected service load time comment (~100ms, not ~6-13s)
- Added note that spinner may freeze briefly during service loading
- This is acceptable since splash still provides visual feedback
## Impact
- ✅ No white flash - consistent dark background from first frame
- ✅ Better error UX - users see what went wrong during startup
- ✅ More accurate documentation of startup timing
## Related
- Builds on PR #226 (initial splash screen)
- Complements PR #230 (E2E test fixes)
- See issue #231 for future tree-shaking optimization
The backgroundColor fix and error handling are simple, reliable improvements
that don't add complexity. Future performance gains should come from loading
less code (tree-shaking) rather than moving work to worker threads.
0 commit comments