Skip to content

fix: Windows Japanese locale support and stability improvements - #10

Merged
Mag1cFall merged 4 commits into
Mag1cFall:mainfrom
maebahesioru:fix/windows-stability
Mar 17, 2026
Merged

fix: Windows Japanese locale support and stability improvements#10
Mag1cFall merged 4 commits into
Mag1cFall:mainfrom
maebahesioru:fix/windows-stability

Conversation

@maebahesioru

Copy link
Copy Markdown
Contributor

Summary

Fixes several issues encountered on Windows with Japanese locale settings, and improves overall stability.

Changes

Bug Fixes

  • selector_utils.py: Replace parallel task approach with CSS combined selector (selector1, selector2) to prevent Playwright internal Future leaks that caused spurious timeout errors
  • proxy/server.py: Ignore ConnectionResetError and Japanese locale error messages (WinError 10053/10054); use class name in error string matching to handle exceptions with empty messages
  • request_processor.py: Downgrade normal client disconnect log from WARNING to DEBUG (disconnect after response is complete is expected behavior)

Windows Environment

  • worker/pool.py: Free occupied ports (API port + Camoufox port) before starting a worker to prevent EADDRINUSE errors on restart; add 60s health check grace period after worker start
  • launch_camoufox.py: Add /F flag to taskkill on Windows to force process termination

Feature Improvements

  • page_controller.py: Prioritize JS Injection strategy for Max Output Tokens input (avoids Angular spinner reset issue); improve system prompt panel close logic to use button click instead of Escape key
  • gateway.py: Add CORS middleware to allow dashboard access; handle empty request body with 400 error instead of crashing

- selector_utils: replace parallel task approach with CSS combined selector
  to prevent Playwright internal Future leaks
- proxy/server: ignore ConnectionResetError and Japanese locale error messages
  (WinError 10053/10054), use class name in error matching
- worker/pool: free ports before starting worker, add 60s health check grace period
- launch_camoufox: add /F flag to taskkill on Windows to force process termination
- page_controller: prioritize JS Injection for Max Output Tokens, improve
  system prompt panel close logic
- gateway: add CORS middleware, handle empty request body gracefully
- request_processor: downgrade normal client disconnect log from WARNING to DEBUG
- launch_camoufox: expand Firefox memory optimization prefs (disable telemetry,
  prefetch, disk cache; reduce JS heap limits; smaller window size)
- worker/pool: free STREAM proxy port before worker start; increase initial
  health check delay to 90s to allow workers time to fully initialize
- auto_update.bat: fetch latest from origin/main, apply git pull and uv sync
  if updates are available; skips gracefully if git is not found or network
  is unavailable
- start_webui.bat, start_cmd.bat: call auto_update.bat before launching
- model_management: skip page reload if browser has been closed
- service: increase worker startup interval from 3s to 15s to prevent
  resource exhaustion when starting many workers simultaneously
- launch_camoufox: increase WebSocket endpoint capture timeout from 45s to 90s
@Mag1cFall
Mag1cFall merged commit 6cc1c4a into Mag1cFall:main Mar 17, 2026
3 checks passed
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.

2 participants