Files
hermes-agent/scripts
emozilla 74b644aaa4 fix(windows): only the home new consoles use may write the User PATH
A Hermes process whose HERMES_HOME, LOCALAPPDATA or USERPROFILE override
points at a throwaway folder (a review preview, a lab run, a test home)
prepended that folder's bin to the real HKCU User PATH during dependency
sync and update. Every console opened afterwards ran the sandbox's
launcher.

expose_cli and the update-tail PATH migration now ask Windows for the
environment a new console receives (CreateEnvironmentBlock, which ignores
this process's environment). They edit the User PATH only when that
environment resolves the same Hermes root, and leave it alone when Windows
cannot say. Other homes still publish launchers into their own bin.

hermes_root_for_environment resolves the root from a given environment and
shares its root rules with get_default_hermes_root. It expands %NAME%,
${NAME}, $NAME and a leading ~ from that environment alone, so a sandbox
that inherits a stored HERMES_HOME such as %LOCALAPPDATA%\data and
overrides LOCALAPPDATA does not match the console's root. The environment
block reader advances by UTF-16 units, so a stored value holding an emoji
does not hide the variables after it.
2026-10-14 22:36:14 -04:00
..
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 21:29:48 +02:00