fix: force repaint on system resume to prevent white screen on macOS wake - #536
Merged
Conversation
Greptile SummaryThe PR adds a system-resume recovery hook intended to repaint a white Electron window without reloading renderer state.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains in the established scoring set. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| main/index.ts | Adds the one-time power-monitor listener and guarded resize-based repaint recovery; no follow-up-eligible issue was identified. |
Reviews (2): Last reviewed commit: "fix: force repaint on system resume to p..." | Re-trigger Greptile
…wake Chromium's GPU compositor can fail to repaint after the display sleeps and wakes back up, leaving the window blank until force-quit. The renderer stays alive (render-process-gone never fires), so nothing in the existing crash-recovery paths catches it. Listen for powerMonitor's resume event and nudge the window size by a pixel to force the native compositor to redraw, without reloading webContents or losing in-progress renderer state. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
itsbkm
force-pushed
the
fix/sleep-wake-white-screen
branch
from
August 27, 2026 20:14
32dc364 to
cf0e1d6
Compare
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.
Summary
render-process-gonecrash handler never fires.powerMonitorresumeevent and nudges the window size by a pixel to force the native compositor to redraw. NowebContents.reload()and no loss of in-progress renderer state.Test plan
npm run build— compiles cleanlynpm run lint— 0 errors (pre-existing warnings only, unrelated to this change)🤖 Generated with Claude Code