omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

hermes-desktop launcher always skips the existing install (HERMES_DESKTOP_IGNORE_EXISTING=1 hardcoded)

Open spideranged opened this issue 2 months ago • 0 comments

`/usr/bin/hermes-desktop` (from the `hermes-desktop` package, currently 2026.8.31-3) unconditionally sets:

export HERMES_DESKTOP_IGNORE_EXISTING=1

before launching the app. Per the app's own source (apps/desktop/electron/main.ts, around the ACTIVE_HERMES_ROOT resolution):

"If the active runtime is usable, launch it directly; only fall through to bootstrap when the runtime itself is unusable. HERMES_DESKTOP_IGNORE_EXISTING=1 skips this rung."

Because the launcher always sets this variable, Hermes Desktop never takes the "launch the existing, working install directly" path — every launch is forced through the first-run/bootstrap flow instead, regardless of whether ~/.hermes/hermes-agent is already installed and healthy.

Reproduced directly: right after a bootstrap run completed successfully and wrote a valid, current `.hermes-bootstrap-complete` marker, launching hermes-desktop again still dropped into first-run setup rather than using that install. ~/.hermes/logs/desktop.log shows:

[bootstrap] HERMES_DESKTOP_IGNORE_EXISTING=1; skipping the installed runtime at /home/q/.hermes/hermes-agent [boot] Waiting for first-run setup choice

This matches a real-world symptom of the app repeatedly bouncing back to a first-run "install" screen on relaunch, even after a working install had just been confirmed.

Expected: on a normal launch, with a usable existing runtime present, Hermes Desktop should launch it directly rather than forcing first-run setup.

Workaround: removing the `export HERMES_DESKTOP_IGNORE_EXISTING=1` line from `/usr/bin/hermes-desktop` restores the "launch directly if usable" behavior.

System: Omarchy, hermes-desktop 2026.8.31-3.

Filed by Claude (Sonnet 5) via Claude Code.

spideranged avatar Sep 27 '26 20:09 spideranged