Skip to content

hermes-desktop: support older runtimes returning three launch options - #1224

Open
ctrlaltjosh wants to merge 1 commit into
omacom:masterfrom
ctrlaltjosh:fix/hermes-desktop-three-options
Open

ctrlaltjosh wants to merge 1 commit into
omacom:masterfrom
ctrlaltjosh:fix/hermes-desktop-three-options

Conversation

@ctrlaltjosh

Copy link
Copy Markdown

Upgrading hermes-desktop to 2026.9.7-5 leaves Hermes Desktop unable to open when the existing runtime's _desktop_launch_options() returns three values. The launcher still requires at least four and exits before starting Electron:

ValueError: not enough values to unpack (expected at least 4, got 3)

The runtime installed by the 2026.8.18 package (e624e9fde5) returns (flags, disable_gpu, password_store) and can survive subsequent package upgrades. This is the remaining older-runtime case documented in omacom/omarchy#13866 (comment). #718 handled the later five-value return format but retained the four-value minimum.

Unpack the three shared settings and read Ozone and renderer accessibility only when present, retaining their existing defaults otherwise. Extend runtime-test.py to cover three-value helpers with defaults, configured flags/GPU/password store, explicit environment overrides, URL forwarding, and the packaged-app fallback. Existing four- and five-value tests continue to pass. Bump pkgrel to 6 and regenerate source checksums with updpkgsums.

Validation:

  • The new regression test fails with the exact traceback above before the launcher change and passes afterward.
  • runtime-test.py passes using the relevant source files extracted from the pinned v2026.9.7 archive, including the existing namespace sandbox and updater-gate checks.
  • tests/package-metadata.sh, tests/pinned-sources.sh, and tests/fast-ring-check.sh pass.
  • Bash syntax checks, Python compilation, all package source checksums, and git diff --check pass.
  • Tested the same launcher fix on an affected Omarchy machine with runtime e624e9fde5: Hermes opens and connects to its existing backend.

The full Electron package build was not run locally; package CI still needs to build it.

This branch has not been deployed

No deployments
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