Keep Orca visible when Windows startup stalls#6462
Conversation
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/window/createMainWindow.test.ts (1)
2549-2566: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueShared handler map across
window.onandwebContents.onis fragile.Both
webContents.on(Line 2552) andbrowserWindowInstance.on(Line 2563) write into the samewindowHandlersmap keyed by event name, so an event registered on both targets would silently overwrite (last writer wins). The current tests only trigger window-level events (ready-to-show,closed), so this is fine today, but separating the two maps would make the fixture more robust to future cases.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: eee941d8-5fa7-44a2-9d2a-eb0f7bdda014
📒 Files selected for processing (2)
src/main/window/createMainWindow.test.tssrc/main/window/createMainWindow.ts
Summary
ready-to-showevent.ready-to-showhandling stay consistent.Fixes #6233.
Design / Review
design-docs/issue-6233-window-reveal-fallback.md(ignored; not committed).brennan-test-changespass: Land.Validation
pnpm exec vitest run --config config/vitest.config.ts src/main/window/createMainWindow.test.ts- 59 tests passed.pnpm exec oxlint src/main/window/createMainWindow.ts src/main/window/createMainWindow.test.ts- passed.pnpm run typecheck:node- passed.git diff --check- no whitespace errors; only Windows LF/CRLF warnings.Product Surface Evidence
playwright-cliwas unavailable on PATH.http://127.0.0.1:5176/.devRepoRoot = C:\Users\neil\orca\workspaces\orca\6233.validation-screenshots/issue-6233-electron-visible-9341.png(not committed).Accepted Gaps
ready-to-showstall is hardware/driver dependent and was not reproduced directly. The fallback behavior is covered by unit simulation, while the visible Orca product surface was validated via CDP.