Repository navigation
Wait for the native window show before e2e launch returns - #198
Merged
Merged
Conversation
The e2e launch helper polled BrowserWindow.isVisible(), which in Electron 44 on macOS turns true as soon as the window is ordered front, before the window server has displayed it and before Electron emits `show`. The v0.0.7 release run's first attempt (37359528998) resized the window 10 ms into that gap and the renderer never saw the new size: release.spec's minimum-window test read innerWidth 1380 for 15 s. Across ten local launches `show` followed isVisible() by 35-50 ms; showInactive emits it every time. launch() now records each window's `show` from a listener installed before any window exists, so the one-time event cannot be missed, and waits for it. resizeWindow (#167, 9d93586) already settles native and renderer geometry at every measurement site; the update-banner spec's remaining setSize call now goes through it too. The release review records the cause. Coven-Harness: Claude Code / claude-fable-5-1
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Merging main put the note inside the shipped v0.0.12 section, because the bullet it preceded moved there. The launch helper change is unreleased. Coven-Harness: Claude Code / claude-opus-5-5
This branch was successfully deployed
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
release.specminimum-window test readinnerWidth1380 for 15 s aftersetContentSize(900, 600)).showevent, recorded from a listener installed before the window exists, instead ofisVisible().setSizethroughresizeWindow.docs/status.md.Cause
The retained Playwright trace shows
launch()'sisVisible()poll passing on its first sample and the resize issued 10 ms later; every poll sample for 15 s then read 1380. In Electron 44 on macOS,NativeWindowMac::IsVisible()is[window isVisible]plus a minimized check and an inverted occlusion test that never fires in practice, so it turns true the momentShowInactive()callsorderFrontRegardless. Electron'sshowevent, andBrowserWindow::OnWindowShow -> WebContents::WasShown, fire only fromwindowDidChangeOcclusionState, when the window server reports the window visible. A probe of ten local launches with the app's ownshowInactive()measuredshow35–50 ms afterisVisible()turned true, and the trace places the failing resize inside that gap on the slower hosted runner.resizeWindow(#167, 9d93586) now settles native and renderer geometry at every measurement site, and the minimum-window test has passed on everymainrun since. This PR closes the gap at its source so launch-time work is not raced, and keepsresizeWindowas the guard at measurement sites. The removed comment said inactive windows may never emitshow; the probe saw it on every launch, and this PR's hosted run tests that claim on the runner itself.Verification
mainat e3fecf0: workspace build; unit suites (core 15, desktop 1260 with 16 skipped, site 21, store-desktop 10, 16 further checks; 0 failures); focused e2erelease,layout,window-lifecycle,updates,panel-layout: 35 passed in 2.2 min.unit + e2e (macOS)check on this PR. If the launch poll ever fails there with "the window never reported its native show", theshowclaim is wrong on the runner and the launch change should be dropped while the diagnosis stays.