Skip to content

fix: make launcher resilient to pywebview startup failures#203

Open
LaplaceYoung wants to merge 1 commit intolsdefine:mainfrom
LaplaceYoung:fix/windows-pywebview-fallback
Open

fix: make launcher resilient to pywebview startup failures#203
LaplaceYoung wants to merge 1 commit intolsdefine:mainfrom
LaplaceYoung:fix/windows-pywebview-fallback

Conversation

@LaplaceYoung
Copy link
Copy Markdown

Summary

  • Delay pywebview import until native desktop launch, so CLI help and browser mode stay available when pywebview/pythonnet startup fails.
  • Set PYTHONNET_RUNTIME=coreclr on Windows through setdefault, preserving explicit user runtime settings.
  • Add --browser plus automatic browser fallback when native window startup raises.

Verification

  • python -m py_compile launch.pyw ga.py llmcore.py agent_loop.py
  • python launch.pyw --help
  • mocked open_browser_mode fallback check
  • git diff --check

Fixes #18
Refs #136

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.

fail to start求助

1 participant