Commit Graph

5 Commits

Author SHA1 Message Date
yoniebans
7f72db17af fix(desktop): read the Windows SSH inventory through the runtime helper
The roster and install-id reads ran Python by rewriting the launcher's bootstrap source, behind their own PowerShell link scan and install-root rule. A link inside any profile directory aborted the whole roster, and a home nested under the install root read its install id from a different directory than the profile list.

Both reads now come from one read-only `inventory` operation of the runtime helper, reached through `--run-module` like every other helper call. It uses the install's own root resolution, profile predicate and identity reader, and creates nothing. The source rewrite and the launcher gate that required its spelling are gone.
2026-10-24 10:28:47 +02:00
yoniebans
197bde96f9 fix(desktop): run Windows SSH helpers through the launcher's --run-module
Helper calls rebuilt a Python command from the launcher's boot-selecting runtime: they rewrote the bootstrap source with a regex and needed the runtime command at every call site. The connection result, the stored SSH state, the managed-update drain and the bootstrap rollback carry only the launcher path, so those callers fell back to a bare `python -m hermes_cli.windows_ssh_runtime` on the PM store interpreter, which has no checkout on its path. Any change to the launcher's bootstrap text would also have refused every Windows remote.

Helpers now call `<launcher> --run-module hermes_cli.windows_ssh_runtime <operation>`, the launcher's own module dispatch (present in every release launcher since v0.22.0). Each caller needs only the launcher path it already has.

Co-authored-by: henryleo <197507345+henrycyberbio@users.noreply.github.com>
2026-10-24 10:28:47 +02:00
Luo, Yiliang
be3b57d57b fix(desktop): preserve injected Python through PowerShell 5.1 native argv 2026-10-24 10:28:47 +02:00
Luo, Yiliang
8f9fac7f3e fix(desktop): check no-reparse ancestors above leaf files 2026-10-24 10:28:47 +02:00
Luo, Yiliang
6d11594686 fix(desktop): repair Windows SSH transport runtime and read-only inventory
Encoded buffered bootstrap informed by PR #100593 (mauricio0209) and #134707 (liuhao1024); no whole-PR cherry-pick. Preserve update and ownership fences; require isolated-bootstrap ownership capability before remote spawn.
2026-10-24 10:28:47 +02:00