Skip to content

Hermes Desktop: link recovery skill; move low-VRAM launcher fix to omarchy-pkgs - #14385

Open
NostrDanish wants to merge 4 commits into
omacom:quattrofrom
NostrDanish:fix/hermes-desktop-launcher-recovery
Open

NostrDanish wants to merge 4 commits into
omacom:quattrofrom
NostrDanish:fix/hermes-desktop-launcher-recovery

Conversation

@NostrDanish

@NostrDanish NostrDanish commented Oct 6, 2026 •

Copy link
Copy Markdown

Summary

  • The Hermes Desktop launcher fix (low-VRAM NVIDIA software-GPU default) now lives in the hermes-desktop package: hermes-desktop: soft-default software GPU on low-VRAM NVIDIA omarchy-pkgs#1155.
  • Migration links the hermes-desktop-recovery skill for already-provisioned agents, into the same folders omarchy-provision-user uses (~/.agents, ~/.claude, ~/.codex, ~/.pi/agent, ~/.gemini/config, ~/.hermes and existing Hermes profiles). It only links where the folder exists, never replaces an existing link or file, and runs whether or not Hermes Desktop is installed.
  • omarchy-install-ai-hermes launches the packaged /usr/bin/hermes-desktop.
  • Skill docs point to updating the package instead of copying or editing launchers.

Test plan

  • bash test/shell.d/hermes-desktop-launcher-recovery-test.sh
  • Existing install: run migration, each existing agent (Claude, Codex, Hermes, …) can load hermes-desktop-recovery
  • A user's own hermes-desktop-recovery skill link is left alone

Install a user-PATH hermes-desktop override (5-tuple launch options, no
IGNORE_EXISTING, software GPU defaults) and ship an agent recovery skill so
installs survive agent/package skew and weak NVIDIA GPUs without HackerOne
noise for upstream Electron crashes.
@greptile-apps

greptile-apps Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The changes since the previous review appear safe to merge.

Summary

Adds a Hermes Desktop recovery skill and makes it available to existing agents.

  • The migration links the skill into existing agent and Hermes profile skill folders, even without hermes-desktop installed.
  • Existing skill directories and links remain untouched.
  • Recovery guides describe rebuilding the desktop app and choosing software rendering. Launcher fixes are delegated to the separate package.
  • Tests cover skill links, repeat runs, missing folders, and preserving custom skills.

Reviews (4) · Last reviewed commit: "Link Hermes recovery skill into all exis..." · Reviewed by Greptile

Comment thread migrations/1791324018.sh Resolved
Comment thread migrations/1791324018.sh Resolved
Comment thread migrations/1791324018.sh Resolved
Comment thread migrations/1791324018.sh Resolved
Comment thread migrations/1791324018.sh Resolved
Comment thread migrations/1791324018.sh Resolved
… PATH

Soft-default software GPU only on weak NVIDIA (≤4 GiB), prefer the user
launcher from install-ai-hermes, ship missing skill references, link the
recovery skill from the migration, and cover it with a shell test.
Comment thread migrations/1791324018.sh Resolved
Comment thread migrations/1791324018.sh Resolved
@jandrusk

jandrusk commented Oct 7, 2026

Copy link
Copy Markdown

Thanks for digging into the Hermes Desktop launcher skew. A few things stop this migration from working as described:

  1. The override is never on PATH (BLOCKING). The migration says "Omarchy already prefers ~/.config/omarchy/bin", but nothing on quattro adds that directory to PATH. env-bootstrap, default/hypr/envs.lua and the router don't reference it. So menu, app-launcher and hermes-desktop launches keep running /usr/bin/hermes-desktop. Only omarchy-install-ai-hermes picks up the wrapper.

  2. A failed nvidia-smi query stops the launch (BLOCKING). The wrapper runs set -euo pipefail, so if nvidia-smi is installed but can't reach the driver, _hermes_vram=$(nvidia-smi … | head -1 | tr -d ' ') fails and the wrapper exits before Hermes starts. The error is hidden by 2>/dev/null. Suggested fix:

    _hermes_vram=$(nvidia-smi --query-gpu=memory.total --format=csv,noheader,nounits 2>/dev/null | head -1 | tr -d ' ' || true)
    if [[ $_hermes_vram =~ ^[0-9]+$ ]] && (( _hermes_vram <= 4096 )); then
  3. The helper call does nothing. omarchy-install-hermes-cli >/dev/null 2>&1 || true with no arguments always fails, because that script now needs --check, --now or --retire-mise. Its header says the no-argument call was removed on purpose. I'd drop it.

  4. Fresh installs and later installs. Fresh installs mark existing migrations as done, and anyone who installs Hermes after the update never gets the wrapper. Since the problems are in the packaged launcher (hermes-desktop launcher crashes: _desktop_launch_options() now returns 5 values #13866 5-value unpack, hermes-desktop launcher always skips the existing install (HERMES_DESKTOP_IGNORE_EXISTING=1 hardcoded) #13453 / hermes-desktop launcher falls back to the stale packaged app forever on the new Hermes runtime layout (no runtime/venv), causing an infinite first-launch bootstrap loop #13975), I think the fix belongs in the hermes-desktop package in omacom/omarchy-pkgs, not in a user-level copy written by a migration. That would also avoid overwriting users' own launchers and ln -sfn replacing their skill links.

Related: #13866, #13975, #13453, #11000.

- Drop the user-level ~/.config/omarchy/bin wrapper; it was never on PATH.
  The launcher fix now lives in the hermes-desktop package (omarchy-pkgs).
- Revert omarchy-install-ai-hermes to the packaged /usr/bin/hermes-desktop.
- Migration now only links the recovery skill for existing agents and
  profiles, and never replaces a skill link the user already has.
- Skill docs: update the package instead of copying/editing launchers;
  remove the wrapper reference and the related skills that don't exist.
Mirror omarchy-provision-user's folders (~/.agents, ~/.claude, ~/.codex,
~/.pi/agent, ~/.gemini/config, ~/.hermes and Hermes profiles), only where
the folder exists, without replacing existing links or files, and before
any Hermes Desktop install check.
@NostrDanish NostrDanish changed the title Harden Hermes Desktop launcher for agent skew and weak NVIDIA GPUs Hermes Desktop: link recovery skill; move low-VRAM launcher fix to omarchy-pkgs Oct 15, 2026
@NostrDanish

Copy link
Copy Markdown
Author

Thanks for the thorough review, you were right on all four points. I've reworked this:

  1. PATH: the user-level ~/.config/omarchy/bin wrapper is gone, and omarchy-install-ai-hermes launches the packaged /usr/bin/hermes-desktop again.
  2. nvidia-smi: the low-VRAM GPU default now lives in the hermes-desktop package launcher, with || true, a numeric check and a 5s timeout, so a broken driver query can't stop the launch. Companion PR: hermes-desktop: soft-default software GPU on low-VRAM NVIDIA omarchy-pkgs#1155
  3. The no-argument omarchy-install-hermes-cli call is dropped along with the wrapper.
  4. Since the fix is in the package, fresh and later installs get it. The migration here now only links the recovery skill for agents that were set up before it shipped. It uses the same skill folders as omarchy-provision-user (plus Hermes profiles), only where they exist, never replaces an existing link or file, and doesn't depend on Hermes Desktop being installed.

The recovery skill docs now say to update the package rather than edit launchers, and the test covers the new behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants