fix(desktop): keep Windows SSH runtime at machine root

This commit is contained in:
Cad from Arca
2026-08-01 12:00:20 +00:00
committed by Teknium
parent 6d3cb23d24
commit 5cb19d7af5
2 changed files with 16 additions and 3 deletions
@@ -138,3 +138,12 @@ def test_token_file_rejects_parent_escape(tmp_path, monkeypatch):
assert escaped.exists()
finally:
reset_hermes_home_override(override)
def test_windows_runtime_root_stays_at_machine_root_for_named_profile(tmp_path, monkeypatch):
from hermes_cli import windows_ssh_runtime
machine_root = tmp_path / "custom-hermes-root"
monkeypatch.setenv("HERMES_HOME", str(machine_root / "profiles" / "writer_2"))
assert windows_ssh_runtime._root() == machine_root / "desktop-ssh"