Skip to content

Record native window show before E2E observers connect - #213

Closed
BunsDev wants to merge 5 commits into
mainfrom
e2e-show-observer
Closed

BunsDev wants to merge 5 commits into
mainfrom
e2e-show-observer

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Delivery is consolidated in #221, which contains this reviewed change and retains current-main ancestry. This PR remains open until #221 passes its fresh checks and lands; its superseded queued CI has been cancelled.

The E2E helper attached its native show listener after electron.launch() resolved and could miss the event. Main now records the actual notification immediately after constructing the hidden window under MODEX_E2E; the helper reads that record, and closed windows remove their IDs. Visibility alone does not count as success.

A raw-launch regression failed before the fix and passed afterward. Independent source and integration reviews found no actionable issues. The prior published head passed a full macOS CI run and iPhone CI run.

Synced with main through the landed deletion, archive, and Knowledge/Space changes. Full local build and unit suites pass. The six-spec UI run had 34 passes, 14 native-show launch failures, and 3 skips. A failed-case retry had 5 passes and 9 launch failures; none reached a failing feature assertion. Original logs and traces are preserved. A diagnostic observed visible=true before the actual show notification arrived around the final 15-second sample, while host load was high; the exclusive cause remains unproven. Existing assertions and timeouts are unchanged. Fresh current-head CI is required before landing.

Coven-Harness: Codex / GPT-6

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 15, 2026 8:44am UTC

Request Review

Build and full unit suites pass. Focused UI verification still encounters
intermittent native-show launch timeouts; preserved diagnostics show delayed
actual event delivery under high host load. Keep existing assertions intact
and require fresh CI before landing. Independent integration review cleared.

Coven-Harness: Codex / GPT-6
@BunsDev

BunsDev commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

Closed as superseded. This change reached main through #221, which was folded into #240 and landed in the reviewed release batch (#243, 4408c9c).

On main, under MODEX_E2E, the main process records the window's native show (and first paint) as soon as the hidden window is constructed (apps/desktop/src/main/index.ts:879). It does this before Playwright connects, so the event can no longer be missed. waitForWindowReady in apps/desktop/e2e/support.ts reads that record. It treats a show or a paint, together with visibility and settled native/renderer geometry held for 200 ms, as ready. That covers what this PR set out to fix: the helper used to attach its show listener after electron.launch() and could miss the event. It also covers the case this PR's diagnostics found, where an inactive window paints without ever emitting show.

Coven-Harness: Claude Code / claude-opus-5-5

@BunsDev
BunsDev deleted the e2e-show-observer branch October 18, 2026 03:43

This branch was successfully deployed

1 active deployment
Preview — e9f64113 Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant