Repository navigation
Drain queued SQLite replies before faulting after a main-loop stall - #26444
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe deadline expiry path now waits for a second event-loop poll before it clears the active deadline and calls Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The additional poll allows queued replies another turn to drain, while clearing or rearming cancels the pending timeout check. No actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
Picks up upstream's profile-state writer fixes (stablyai#25318, stablyai#26444, stablyai#26447). Brings the offscreen-page file drop, iroh SAFETY/device-grant cleanups and extension e2e typing in line with their current PR branches. Claude-Session: https://claude.ai/code/session_01DvNJ16LEPYmdEkpQWtDL7n
ELI5
A stalled Electron main loop can report that SQLite saving timed out even though the worker already queued a successful reply. Let that reply arrive before declaring the writer failed.
What Changed
The final deadline check now waits across two poll turns instead of one. Clearing or rearming the deadline cancels the pending check at either stage. The existing timeout values and finite power/stall grace limit stay intact.
A new regression covers a reply delivered after the first poll; the original implementation fails it. Existing deadline tests drain both turns and retain their timeout, grace, cleanup, and resume assertions. The hidden Electron fixture reports its current phase and worker/reply counters on failure, without paths or profile data. Its original two-second test budget is retained.
Why
Windows packaging in #26425 timed out the existing stall probe. Increasing the probe budget did not fix the failure: it still faulted while running the deliberate stalls. Giving the already-queued reply another poll turn addresses the ordering race while a hung worker still fails within the existing bounded deadline policy.
Linked Issue
Internal maintainer-requested CI fix. Follow-up to #26425; the maintainer exception applies.
Visual Proof
N/A — this changes SQLite deadline handling and a hidden Electron regression fixture, with no direct UI or interaction change.
Testing
ORCA_BACKGROUND_LAUNCH=1, including four stalls beyond the unchanged two-second deadline.pnpm tc:nodeand changed-code quality pass locally.Review
Agent skill upstream boundary
Checklist