From e33fd7e09b42c50e347cd32564a4a83ad5c4a97b Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 26 Sep 2026 19:01:42 +0100 Subject: [PATCH] fix(desktop): run updater state.db pre-flight through the installation launcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PM-managed checkouts retire the in-tree `venv` once a generation is committed, so `findPythonForRoot` returns null there and the desktop Update button refused every hand-off with: state.db pre-flight failed: Python not found. Update cancelled before backend shutdown. Update the selected installation with its hermes update command, then retry. The pre-flight was the only remaining update-path consumer of the checkout-venv resolution — the source check (`readSourceUpdate`) and the hand-off script (`scripts/desktop-update/runtime.ps1`) already resolve the installation launcher for managed checkouts. `preflightStateDb` now accepts the launcher and runs the emergency snapshot through it (`--run-module hermes_cli.backup_sqlite`, mirroring the update check), keeping the legacy `python -I -S