Repository navigation
Open Hermes Desktop on runtimes with the new install layout - #758
ryanrhughes merged 4 commits into
Conversation
|
The The parsed interpreter also isn't enough on its own: the bare tool Python lacks the dependency env ( Filed by Claude Opus 5.5 via Claude Code. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
d7b3852 to
01c653a
Compare
|
Thanks — both points were right. I replaced the per-line shim parser with the CLI's The regression now uses a real multi-line shim plus a dependency available only in the committed environment. It failed on the previous commit with |
|
Thanks @manuaudio. I reviewed this at 01c653a together with Codex XHigh as a second opinion. The approach is right: Two things stop it landing as it is:
Codex XHigh also flagged a race: the launcher picks a generation and runs it without upstream's lease, so an update collecting that generation in between could fail the launch. I'm not acting on it. It needs a concurrent I'll push both fixes to this branch with a regression test for the second. Then I'll check it end to end on fresh Omarchy workers on quattro: install Hermes through Omarchy, reproduce the loop with 🤖 Generated by Opus 5.5 in T3 Code. Reviewed by Codex XHigh. |
Master's omacom#858 already published 2026.9.7-4 with the old launcher, so a -4 carrying this one is never offered to anyone who has it: the release builder answers "already up to date" and builds nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The launcher asked PM for the committed environment only when venv/bin/python was absent, so a runtime on the new layout that still had one read the current checkout's settings with it. The workaround in omacom/omarchy#13975 leaves exactly that: venv/bin/python linked to one generation, which after the next update is the superseded one until it is collected. When the current code needs something that environment lacks, _desktop_launch_options returns its defaults and desktop.* settings are silently ignored. The committed environment is now asked for whenever the .hermes/bin/hermes shim is there, and venv/bin/python is used only when that gives nothing. Co-Authored-By: Codex XHigh <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
I pushed three commits to this branch and ran it end to end. At 6c00028 it does what it says in every runtime state I could produce.
Built on a worker with End to end, on fresh Omarchy workers on quattro, I installed Hermes through Omarchy with
Codex XHigh reviewed 6c00028 as a second round and found nothing. The run above confirmed its round-1 point that an update keeps Two lines of the description are now out of date: This now waits on a maintainer. For a pull request from an outside author, the 🤖 Generated by Opus 5.5 in T3 Code. Reviewed by Codex XHigh. |
|
I updated the description to match the merged head: |
Fixes omacom/omarchy#13975.
Current Hermes runtimes no longer keep a
venv/inside~/.hermes/hermes-agent. On Hermesmain,hermes_cli/_launchers.pypublishes the CLI as.hermes/bin/hermes, while the committed dependency environment lives underinstalls/<sha>/environments/<hash>/venv.The desktop launcher only recognized
$runtime/venv/bin/hermesand$runtime/venv/bin/python. After an update to the current layout it therefore fell back to the packaged app withHERMES_DESKTOP_IGNORE_EXISTING=1, and the app looped through first-launch bootstrap as reported in the linked issue.hermes-desktop.shnow:.hermes/bin/hermesas the current CLI, withvenv/bin/hermesretained for older runtimes--print-runtime-commandboundary for its store interpreterpm.environments.committed_venv(runtime), then loads desktop settings with the committed environment's Python and dependenciesvenv/bin/pythonfor older runtimes or when the committed environment lookup returns nothingpkgrelis bumped to 5 because2026.9.7-4was already published from #858 with the old launcher.Testing
runtime-test.pynow models the current layout with a real multi-line shell shim, a separate store interpreter, and a dependency available only from the committed environment. It verifies that the runtime app opens withoutIGNORE_EXISTINGand thatdesktop.disable_gpureaches the launcher.Before the implementation, that regression failed with
gpu: None: the per-line parser could not parse the multi-line shim and the bare store interpreter could not load runtime dependencies. With this change:runtime-test.pypasses against the pinned2026.9.7source (2237be3).bash -n pkgbuilds/hermes-desktop/hermes-desktop.shpasses.shellcheck -S warning pkgbuilds/hermes-desktop/hermes-desktop.shpasses.python3 -m py_compile pkgbuilds/hermes-desktop/runtime-test.pypasses.git diff --checkpasses.I have not run this against a live runtime on the new layout. My local install still uses the older layout, which remains covered by the existing test cases.