Commit Graph

16 Commits

Author SHA1 Message Date
teknium1 113304199e refactor(desktop): gate the WSLg D3D12 selection inside the helper and test the real launch env
Move the WSL / /dev/dxg / d3d12_dri.so probes into _prefer_wsl_d3d12 with
the probed paths as module constants, so the launcher call site is a single
line and a test can lay out a fake WSLg host without touching real
/dev or /usr/lib. The two tests now run the real _desktop_launch_env end to
end (selected under WSL+dxg+driver; untouched with an explicit Mesa
override, off WSL, without /dev/dxg, or without the driver file) instead of
unit-testing the helper with a precomputed boolean.

Docs: one paragraph in the Desktop guide on the automatic selection and
the env vars that keep an explicit choice authoritative.

Follow-up to Xipong's fix for #106117 (salvaged from #106118).
2026-09-09 10:28:52 -07:00
Xipong 51fa04d49d fix(desktop): select installed WSL D3D12 driver before Electron exec 2026-09-09 10:28:52 -07:00
Teknium f17f18cd11 fix(desktop): release Windows app locks at staged promotion
Salvage #101887 after native Actions 34097643131 reproduced WinError 32 using a ready Electron app with its cwd inside the live release. Reuse the existing install-scoped process cleanup before promotion and wait after forced termination, preserving rollback.

Co-authored-by: fangliquan <fangliquan@qq.com>
2026-09-07 06:55:13 -07:00
Teknium 0e78694c72 simplify(compat): hermes_cli.main — drop 198 re-exports/aliases (155 eager + 45 lazy PEP 562 + _warn_stale_dashboard_processes alias + _time/_self/_LAZY_* machinery), repoint 17 source callers + 91 test files 2026-09-03 15:07:39 -07:00
Teknium e83816a4d1 review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
2026-09-03 09:44:26 -07:00
Teknium 28a987413d refactor(hermes_cli): remaining try/except-pass blocks -> contextlib.suppress 2026-09-02 22:34:53 -07:00
Teknium 19c3f9f37f refactor(hermes_cli): table-drive env/argv flag assembly, collapse cache-dir + launch-option ladders 2026-09-02 22:27:11 -07:00
Teknium 8a141af62f refactor(hermes_cli): try/except-pass -> contextlib.suppress in desktop/dashboard/tui_launch 2026-09-02 22:22:44 -07:00
Teknium 8d8d82b3e5 refactor(hermes_cli): merge adjacent literal prints (byte-identical stdout) 2026-09-02 22:15:30 -07:00
Teknium 46786a8138 refactor(hermes_cli): hug lone closing brackets (AST-neutral) in desktop/dashboard/web_build/tui_launch 2026-09-02 22:01:17 -07:00
Teknium 616d7c3c2a refactor(hermes_cli): compact docstrings/comments in desktop/dashboard/web_build/tui_launch (WHY kept) 2026-09-02 21:56:57 -07:00
Teknium 7e270c0d9e refactor(hermes_cli): drop lazy self-imports of never-patched same-module names in desktop/web_build/tui_launch 2026-09-02 21:29:38 -07:00
Teknium c9690e564a refactor(hermes_cli): AST-neutral bracket hug/pack in desktop/dashboard/web_build/tui_launch 2026-09-02 21:04:16 -07:00
Teknium 5e5cad172c refactor(hermes_cli): main_desktop — phase helpers for _build_desktop_app/cmd_gui, shared hash/stamp via main_web_build, sandbox lstat + codesign-verify dedupe 2026-09-02 20:58:47 -07:00
Teknium d482bd534d refactor(hermes_cli/main): split select_provider_and_model + cmd_dashboard into named helpers; drop unused imports 2026-09-02 16:19:17 -07:00
Teknium b98a4246c3 refactor(hermes_cli/main): extract desktop (Electron) cluster to main_desktop.py 2026-09-02 15:56:56 -07:00