Commit 554c3d7
fix: set Windows event loop policy at CLI entry point
Move the WindowsSelectorEventLoopPolicy setting to the very top of
main.py, before any imports. This ensures the policy is set before
any asyncio code is triggered during module imports.
The previous fix in initialization.py was too late - by the time
ensure_initialization() runs, imports have already triggered asyncio
code with the default ProactorEventLoop.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>1 parent db50447 commit 554c3d7
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
5 | 15 | | |
| |||
0 commit comments