Skip to content

Offer an existing-gateway installation for Hermes Desktop - #15578

Draft
joshymcd wants to merge 1 commit into
omacom:quattrofrom
joshymcd:hermes-desktop-remote-install
Draft

joshymcd wants to merge 1 commit into
omacom:quattrofrom
joshymcd:hermes-desktop-remote-install

Conversation

@joshymcd

Copy link
Copy Markdown

Summary

Offer a choice when installing Hermes Desktop from Install > AI:

  • Set up Hermes on this computer — preserve the current local runtime, CLI handover and theme setup.
  • Connect to existing Hermes — install the desktop package and open upstream's existing connection onboarding, without provisioning a host runtime or gateway.

Add omarchy install ai hermes --local and --remote for explicit/noninteractive selection. Cancelling the interactive choice installs nothing. Noninteractive callers without a mode get guidance rather than an implicit runtime installation.

Motivation

A user may already run Hermes in Docker or on another machine and only want a native desktop client. Today omarchy-install-ai-hermes unconditionally runs omarchy-install-hermes-cli --now before opening Desktop, so a second, host-side runtime is installed even when the user intends to connect to the existing gateway.

Upstream already supports Connect to existing Hermes on first launch. Omarchy does not need to manage URLs, tokens, or the connection registry itself. This is distinct from #11000, which detects existing local desktop installations and intentionally leaves installation behavior unchanged.

Implementation and boundaries

  • Keep the default terminal-agent path unchanged: selecting Hermes as the default coding agent still provisions a local runtime.
  • The remote choice only installs hermes-desktop and opens its normal launcher. It does not replace CLI wrappers, retire a mise install, start a theme waiter, or stop/delete an existing runtime or service.
  • Document remote connection setup, later opting into a local install, and removal behavior. Remote gateways retain their own theme and lifetime.
  • Add the English picker strings; translations follow the repository's normal sync workflow.
  • No migration, Docker changes, upstream Hermes changes, or companion package changes are proposed.

The current hermes-desktop package is built from Hermes v2026.9.7, which already includes the first-run remote startup boundary: a saved remote, or applying the first-run remote form, returns before ensureLocalRuntime. The package launcher already falls back to /opt/hermes-desktop/Hermes when no local runtime exists; the added companion-checkout test executes that launcher with only the Electron binary and namespace probe replaced by fixtures.

This is an installation choice, not a remote-only security policy. Existing local installations are preserved, and choosing local setup/profiles in Desktop can still provision or start a local agent. On an already configured Desktop, users select the existing gateway through Settings > Gateways rather than first-run onboarding. No remote credentials are copied into Omarchy configuration.

Validation

Passed locally against scratch homes and mocked package/service/app commands:

  • bash test/shell.d/hermes-desktop-remote-test.sh — explicit and interactive local/remote modes, cancellation, invalid/noninteractive input, setup failures, preservation of an existing runtime/CLI/unit, and the actual companion package launcher's no-runtime path.
  • bash test/shell.d/hermes-desktop-install-test.sh — existing local installation coverage plus remote-only → local conversion using the full installer fixtures.
  • bash test/shell.d/hermes-cli-test.sh
  • bash test/shell.d/hermes-theme-test.sh
  • bash test/shell.d/hermes-remove-test.sh
  • bash test/shell.d/default-agent-test.sh
  • ./test/cli
  • I18N_STRUCTURAL=1 bash test/shell.d/i18n-test.sh
  • python3 scripts/i18n-sync.py extract-scan --check
  • Bash syntax checks and git diff --check.

Before ready for review

  • Visually verify the real picker and complete first-run Desktop connection to an existing authenticated Docker gateway in a disposable Omarchy VM.
  • Relaunch Desktop and verify it restores the remote connection without creating a local runtime/gateway; test connection failure without falling back into local installation.
  • Verify the local installation choice and removal of a client-only installation in the VM.

Kept as a draft pending that graphical/end-to-end verification. No live Omarchy installation or Docker service was changed during development. The full aggregate test suite has not been run.

Implementation assisted by OpenAI GPT-6.1 Sol via OpenCode.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant