Files
hermes-agent/apps/desktop/e2e
BearHuddleston 96de735f68 fix(desktop): start as default when the remembered local profile is gone
Electron userData (active-profile.json) outlives HERMES_HOME. After a
reinstall that wiped the Hermes home, or a `hermes profile delete` while
the app was closed, Desktop still launched `hermes --profile <name>
gateway ensure`, which refuses a missing profile, so every boot and
every Retry failed with "Profile '<name>' does not exist".

Before the first profile read at startup, apply what an in-app delete
already does: a remembered last-used profile whose directory is absent
from this machine's profiles root falls back to default, and a matching
explicit default route is cleared. Remote, SSH and cloud routes are not
judged by the local disk, and a profile named with --profile at launch
still fails loudly, like `hermes -p`.
2026-11-02 07:42:30 -08:00
..
…