Repository navigation
Install Hermes for the default agent as the desktop app's self-updating runtime - #12844
Conversation
|
One conditional handover issue was reproduced at An existing mise shim still wins when setup precedes migrationWith an already-built Omarchy mise Hermes and the retirement migration still pending, Observed with real mise 2026.9.4, synthetic Hermes executables, and mocked package/upstream setup: Impact: Selecting Hermes again still launches the non-self-updating mise copy while the desktop uses the new checkout. This affects setup before migration, not fresh installations or successful migration-first updates. The shipped migration resolves it; the previous desktop-install reconciliation also removed the old environment immediately. Suggested change: Reuse the migration's ownership and removal checks during handover, preserving unowned environments. Alternatively, detect the remaining shadowing and explicitly direct the user to run Verified: The targeted checks confirm shared runtime setup, command-only repair without re-bootstrap, and migration ownership/retry safeguards. Seven shell-test files passed at each revision, with no skips. The command-resolution case above was reproduced separately using the actual installer, default-agent, agent, and migration scripts; moving the local command ahead of the shim was a successful negative control. Review informationTest scope: Mocked package/upstream installation, real temporary Git and mise, and synthetic Hermes commands. No real package installation, upstream update, authenticated chat, or desktop session was tested. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra initial inspection, independent Fable 5.1 and separate Astra reviews, followed by evidence reconciliation, a Fable follow-up, and a coordinator reproduction of the reported issue. |
…ng runtime Choosing Hermes as the default agent built it through mise: a pipx environment with no checkout, so `hermes update` had nothing to move, and the only Hermes that could update itself was the one Hermes Desktop set up. Both paths now run the same setup. omarchy-install-hermes-cli installs the hermes-desktop package and runs upstream's installer from it, pinned to the packaged release and started on main, exactly as Install > AI did; omarchy-install-ai-hermes is that plus opening the app. The terminal, the default agent and the app share one runtime, and it updates itself. --check answers whether --now has anything left to do, not merely whether a hermes runs: choosing Hermes from the menu asks first and opens a terminal only on a no, so a yes has to mean no minutes-long step would run where nobody can see it. With the app installed that means the runtime's own command, its completion marker and the seeded packaged app; a finished runtime whose command is gone, somebody else's, or its own but unable to run gets it back from upstream's path stage without bootstrapping again. Either way the command has to be the one PATH finds, because omarchy-agent runs bare `hermes` and Omarchy puts mise's shims ahead of ~/.local/bin; a command in the way is named rather than installed over. The modes are named outright because the app's launcher used to call this command with no arguments to reconcile a mise copy; a default of --now would turn every launch into an install. --check still refuses to run the retired wrapper, since running it built Hermes through mise, and a machine whose migration is pending can still have it on PATH. Provisioning no longer writes the wrapper, Remove Preinstalls no longer looks for it, and the wrapper, the environment it built and what proves them Omarchy's are known to the installer alone: --retire-mise is the migration's whole job, and --now runs the same removal once the runtime installer has saved the wrapper aside, so a user who chose Hermes before their migration ran is not left with mise's shim answering `hermes`. Only the wrapper proves the environment is Omarchy's, at its path or in that saved copy, so the environment goes first and the wrapper last, judged by mise neither having it installed nor still requesting it; a removal that leaves either behind, or a listing that cannot be read, mise missing included, stops with the commands to finish by hand and leaves the migration pending. The migration that once installed the wrapper is kept as a no-op for late updaters, and one whose default agent was Hermes is told to choose it again. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
27aaf56 to
7eb818e
Compare
|
Reproduced and fixed at 7eb818e. The gap was real: with a mise-built Hermes and the retirement migration still pending, Two changes. The installer now owns the retirement: Covered in Codex XHigh reviewed the revised head and found nothing further to change. Independence is not guaranteed, since codex runs on the machine that wrote this. Proof from the workers (screenshots in this gist, taken inside the guests): An existing quattro desktop install, updated to the branch, then the default agent launched. The Omarchy agent terminal is running Hermes Agent v0.21.0 from A template machine with quattro's cold mise wrapper, Hermes chosen as the default agent, then Install > AI. The desktop app opened from the native build seeded into that same runtime: Existing mise-built Hermes, Hermes chosen again before the migration (your case): before and afterBefore, with the migration pending: After Template machine with the cold wrapper: after choosing Hermes, and choosing it againSecond A Hermes the user installed with upstream's installer (no package), and then the app asked for by nameAn existing quattro desktop install, then the branch🤖 Generated by Fable 5.1 in Claude Code. Reviewed by Codex XHigh. |
… to ask Upstream's installer runs `npx playwright install chromium` for the browser tools, and npx asks before fetching a package it does not have. Over ssh, with no terminal, it goes ahead; in the floating terminal the menu opens for choosing Hermes it printed "Ok to proceed? (y)" and waited, so an install a user had every reason to walk away from sat there until someone typed y. The mise-built Hermes this replaces never asked anything. `--skip-setup` already answers the wizard the same way, and the app's own bootstrap never had a terminal to ask in. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The wait before clearing a stale shallow.lock looked for a git whose command line began with `git`, so one started as `/usr/bin/git`, which is what a caller that resolved it with `which` runs, was never seen: its lock, once a minute old, would have been cleared under it and a second fetch started against the same shallow file. The path is allowed only ahead of the name, at the start of the command line, so a process that merely names git in an argument, an editor opened on /usr/bin/git from inside the runtime say, is not waited for. Co-Authored-By: Codex XHigh <noreply@openai.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Whether the environment mise built is gone was read by searching the global listing for the prefix `"pipx:hermes-agent`, so a tool that merely starts the same way, `pipx:hermes-agent-tools` say, read as the retired one still requested. Removing the real one changed nothing, the recheck failed again, and the migration stayed pending on every update. The key is matched whole now, with or without its options. Co-Authored-By: Codex XHigh <noreply@openai.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Full end-to-end review of 7eb818e on three disposable Omarchy workers (linked clones of a quattro template from 2026-09-18, which carries the cold mise wrapper every machine has, with the branch dev-linked), plus a Codex XHigh second opinion on that head and on the fixes. Every screenshot and log referenced here is in this gist; its README says which file shows what. Verdict: working, and ready to merge with the three commits pushed below. Nothing found stands in the way; what was checked is listed so the maintainer can weigh it. omacom/omarchy-pkgs#587 still lands after this. One defect, found and fixed. Choosing Hermes from the menu opens a floating terminal, and in that terminal upstream's installer stopped at npx's "Need to install the following packages: playwright@1.63.0 / Ok to proceed? (y)" and waited: Flows exercised, each starting from the state a quattro machine is in today (the mise wrapper, built or not) with real mise to retire, real pacman and upstream's installer. Mise installs nothing here; with this change it is only ever asked to remove the old environment.
Security. Every sudo since each run started was read back from the journal: the only escalation in any run was Omarchy's own Codex XHigh reviewed the head ( Tests. Two residuals, low, left as they are: a Waiting on the maintainer. The bot does not merge here. 🤖 Generated by Fable 5.1 in Claude Code. Reviewed by Codex XHigh. |
|
Verified: The mise-shadowing finding in the earlier review is resolved at With an Omarchy-owned wrapper, a built mise environment and mise ahead of
An environment without Omarchy's ownership proof remains untouched. When its command shadows the runtime, Review informationTest scope: Real mise 2026.9.4 and local Git, synthetic Hermes commands, mocked package/upstream installation and services. The seven targeted shell-test files passed with 163 checks and no skips; the two reviewers also ran separate handover reproductions. Real package installation, upstream self-update, authenticated chat, desktop behavior and the author's worker security audit were not independently validated. This resolves the specific handover finding, not the entire PR. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra source inspection, fresh independent Fable 5.1 High and Astra Xhigh follow-up reviews, followed by coordinator reconciliation of both reports and their targeted evidence. |
Hermes is only ever installed through the app. Choosing it as the default agent used to stand aside for a hermes that worked but came from somewhere else, and to refuse one that predated seeded sessions; both left the machine on a Hermes that was not the app's, which is the one Omarchy prepares for in-app updates and hands the theme to. Now --check answers only for the app's own Hermes, and --now installs the app whatever answered to hermes before, saving the previous command aside as it always did for the app path. The desktop installer no longer adds the package itself, since the shared install does. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
One rule tightened at 73a2b91, on the maintainer's direction: Hermes is only ever installed through Hermes Desktop. Choosing it as the default agent installs the app (package, runtime, seeded build, theme hand-over, window left closed) and the agent runs that install's Codex XHigh reviewed the commit in three passes; the first two found that the refusal came after the command was replaced, then that a failed 🤖 Generated by Fable 5.1 in Claude Code. Reviewed by Codex XHigh. |
|
Verified by source inspection: At
The refusal checks above concern a ready runtime without a seeded app, not every repair path. Eligible installations still save existing commands before replacement. Choosing the default agent uses the shared setup without opening the desktop window. The previously resolved mise-shadowing finding remains resolved in the inspected source: ownership-gated retirement and the final PATH check remain in place. This does not repeat the earlier real-mise reproduction or establish whole-PR correctness. Review informationTest scope: Source review of the latest delta and directly affected installer paths. No new runtime test result is relied on here. Real package/upstream installation, self-update, authenticated chat and desktop behavior were not validated in this follow-up. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium inspection, fresh independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, followed by coordinator reconciliation of the reports, source and evidence limits. |
…untime is in The refusals that leave a self-installed Hermes alone came before the command was replaced only for a finished runtime. An unfinished one was still bootstrapped over a git status that could not be read, since a failed status read as a clean tree, and a half-built app beside it, or an edit the Linux runtime patch could not land on, was found only after the user's command had been saved aside and replaced and main switched. All three are asked first now, in both states, so a run that is going to stop leaves the launcher, the checkout and ~/.local/bin as they were. Co-Authored-By: Codex XHigh <noreply@openai.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Second end-to-end round, for the rule tightened at 73a2b91, on fresh disposable Omarchy workers cloned from a quattro template, so each starts in the state every Omarchy machine is in today, with the branch dev-linked. Codex XHigh gave a second opinion on the delta and on the fix below. Evidence is in the same gist under The problem this change tacklesHermes reaches an Omarchy machine two ways, Setup > Default Agent > Hermes and Install > AI > Hermes Desktop, and on quattro today they fight each other:
Today, on quattro
With this change, at f398909
The worker flows below that start from a mise-built Hermes start there because that is what real machines have on the day this lands, and cleaning it up is the migration's job. The new state, as the workers show it. Choosing Hermes from the menu on a machine in today's state ends with the agent terminal running Hermes from the app's runtime under What was exercised on the workersThe scenario the tightened rule is about. On worker C, with the app removed, Hermes was installed the way a user would do it themselves, with upstream's installer from the internet: Hermes Agent v0.21.4 at c0d7294, past the packaged release. From today's state to the new one, the three flows from the first round again on this head.
In every run the only sudo, read back from the journal, was Omarchy's own package install. The omarchy-pkgs#587 pairing. On worker B after the removal, the locally built One fix pushedf398909, from the second opinion, and it answers what llstrk's source inspection noted: the early refusals at 73a2b91 concerned a finished runtime only. The commit says a refusal leaves the user's Hermes untouched, and for a finished runtime it did, but the guard for an unfinished one still read a failed Known upstream issue: the first
|
Remove > AI refused whenever anything had Hermes's files open and told the user to close it and try again, and the thing open was Hermes: the agent in the terminal that choosing it as the default agent leaves running, the desktop app, a gateway. Those are the removal's to close. It now stops the gateway unit that upstream's `hermes gateway install` wrote, since that unit starts the runtime about to be deleted and would start it again the moment it was killed, then ends every process whose program lives in that runtime or in the package, and only then refuses over whatever is left, which is somebody else's: an editor on a skill, a shell sitting in ~/.hermes, a writer on the state database. Both are judged by the program, never by a later argument or by the home served, so an editor opened on a runtime file is the user's and a unit running a Hermes kept elsewhere is left alone whatever home it serves; for an interpreter the program is the script it runs, so a gateway started by hand as `python .../hermes gateway run` is found too. The refusal comes before anything is touched, so a run that stops leaves Hermes running as it was. A unit that will not stop still aborts the removal, as dropping the package would strand a live gateway on deleted code. Co-Authored-By: Codex XHigh <noreply@openai.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
With the venv active, a gateway started by hand is `python -m hermes_cli.main gateway run`: the interpreter is bare, the executable resolves outside the runtime, and no runtime path is on the command line, so the removal took it for a stranger and refused over the files it holds rather than closing it. Hermes's own package named with -m is the program. Co-Authored-By: Codex XHigh <noreply@openai.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Third round, for the change pushed at 14eb943 and 5630c6f: Remove > AI now closes Hermes itself instead of asking the user to. Exercised on two fresh disposable Omarchy workers (quattro template, branch dev-linked, the What was wrongRemove > AI refused whenever any process had a file under What removal does now
The regression cases in What the workers showedWorker F, the default-agent path. Hermes chosen from the menu installed in 7 minutes and left the TUI running inline; Worker G, the Install > AI path. Install > AI from the menu installed in 7 minutes and opened the app, seven Electron processes under the runtime's Second opinionCodex XHigh reviewed the change in three passes ( Waiting on the maintainer. The bot does not merge here. 🤖 Generated by Fable 5.1 in Claude Code. Reviewed by Codex XHigh. |
Install Hermes for the default agent as the desktop app's self-updating runtime (cherry picked from commit c3e67f5)
#12844 dropped the Hermes CLI wrapper from install/user/mise.sh; choosing Hermes as the default agent installs it.
















Choosing Hermes under Setup > Default Agent built it through mise:
omarchy-install-hermes-cliwrote a wrapper that ranmise usefor a pipx environment with a pinned interpreter. That copy could not update itself.hermes updatefast-forwards a git checkout, and a pipx environment has none, so the only Hermes that stayed current was the one Install > AI > Hermes Desktop set up under~/.hermeswith upstream's installer, and a machine that chose Hermes from the agent menu never got that one unless the app was installed too.Both paths now run the same setup.
omarchy-install-hermes-cli --nowinstalls thehermes-desktoppackage and runs upstream's installer from it, pinned to the packaged release and started onmainwith its history, exactly as the desktop installer did;omarchy-install-ai-hermesis that plus opening the app. The terminalhermes, the default agent and the app share one runtime, and it updates itself. Choosing Hermes as the agent installs the app without opening its window, and hands Hermes the Omarchy skin the same way the app install does; the default agent is that install'shermescommand.Hermes is only ever installed through the app.
--checkanswers whether the app's own Hermes is in and nothing is left for--nowto do, not merely whether ahermesruns: the package, the command upstream's installer wrote, the runtime's completion marker and the seeded packaged app, because the app only runs against a runtime it prepared and the terminal has to be on the same one. Choosing Hermes from the menu asks first and opens a floating terminal only on a no, so a yes has to mean no minutes-long step would run where nobody can watch it. Ahermesthat came from anywhere else is not the app's:--nowinstalls the app over it, saving the previous command aside as the app path always has, and a self-installed runtime that has moved past the packaged release stops with the same build-only guidance the app path always gave. A finished runtime whose command is gone, the retired wrapper, somebody else's, or its own but unable to run gets its command back from upstream's path stage without bootstrapping again, with whatever held the name saved aside as before. Either way the command has to be the onePATHfinds:omarchy-agentruns barehermes, and Omarchy puts mise's shims ahead of~/.local/bin, so ahermesin the way is named rather than installed over, and--checksays no until it is gone; a caller whosePATHfinds nohermesat all, like the theme unit, is not in anyone's way. Removing the app closes Hermes first rather than asking the user to: the gateway unit upstream's installer wrote, then every process whose program lives in the runtime or the package, the agent in its terminal and the app included; only something that is not Hermes still holding its files, an editor on a skill or a shell sitting in~/.hermes, stops the removal, and it does so before anything is touched.Setting
mainup for the updater no longer refuses a runtime whosemainis neither the packaged release nororigin/main. On a disposable Omarchy VM that refusal fired on every fresh bootstrap, because upstream's installer leaves a shallow clone whosemainis the tip at clone time whileorigin/mainmoves during the same run, so the guard inherited from the desktop installer read upstream's own churn as local commits. Whatevermainpointed at is now kept as a branch namedmain-before-omarchy-<time>andmainstarts at the release, which keeps a user's own commits reachable without blocking anyone. Both modes are named outright. The app's launcher in omarchy-pkgs used to call this command with no arguments to reconcile a mise copy, and a default of--nowwould have turned every launch of the app into an install. That call goes in omacom/omarchy-pkgs#587, and until that package ships the old launcher's call exits with usage and is discarded.Existing installs: provisioning no longer writes the wrapper, Remove Preinstalls no longer looks for it, and the wrapper, the mise environment it built and what proves them Omarchy's are known to the installer alone. Its
--retire-miseis the migration's whole job, and--nowruns the same removal once the runtime installer has saved the wrapper aside, so a user who chose Hermes before their migration ran, whose mise shim would otherwise keep answeringhermesahead of the new runtime, ends up on the runtime either way. Only the wrapper proves the environment is Omarchy's, at its path or in that saved copy, so a mise Hermes without either is left alone, and once the environment is gone the copies go too, so a finished handover does not keep reading as unfinished and an environment the user builds later is not mistaken for the old one. The environment goes before the wrapper does, judged by mise neither having it installed nor still requesting it in the global config, wheremise upwould build it again; a listing that cannot be read, because mise is broken or not there to read it, is not an answer. A removal that leaves either behind keeps the wrapper, prints the commands to finish by hand, and leaves the migration pending. A user whose default agent was Hermes is told to choose it again, which is what installs the runtime. The migration that once installed the wrapper stays as a no-op so late updaters still run in order.Exercised on disposable Omarchy workers built from the template (quattro as of 2026-09-18, which provisions the cold mise wrapper on every machine), with the branch dev-linked and the
hermes-desktoppackage the workers' channel serves (2026.8.31-3):hermesonPATHresolving to~/.local/bin/hermeswith--checkyes; a second--nowreturned in one second; the default agent opened a terminal running Hermes Agent v0.21.0 from the runtime; Install > AI then only opened the app; removal dropped the package and runtime and kept the data.~/.local/bin. In both orders the outcome was the same: the mise environment and shim gone,hermesresolving to the runtime's command,--checkyes, the migration a no-op once the handover had run, and the agent launching from the runtime. The fresh-bootstrap refusal onmainand the staleshallow.lockwere both found by these runs and are fixed above.--nowstood aside from it; under the rule that landed afterwards it installs the app instead, and with that runtime already past the packaged release both paths stop with the pre-existing "runhermes desktop --build-only" guidance, as the app path always did. The mise shim left beside it was named rather than removed, since upstream's installer had overwritten Omarchy's wrapper and with it the only proof the environment was Omarchy's.--checkyes, the migration a no-op,--nowa no-op in under a second, and the agent launching Hermes v0.21.0 from the app's runtime.Two things seen on the workers are not this change's:
omarchy-migrateon the template stops at an unrelated newer migration whose package is not on that channel, so the retirement migration was run directly; and on one worker the Electron app dumped core with SIGTRAP at the moment a screenshot was taken, alongside ahyprland-dialogcrash; relaunched on the same worker and left alone, it ran for two minutes without another core, so that is the VM's software rendering meeting a screen capture, not the install.The history fetch that gives
mainits first fast-forward also copes with what those runs left behind: Hermes fetchesoriginwhile printing its version, the readiness probe's 15 second budget can kill it mid-fetch, and git then refuses every later fetch over theshallow.lockit left. A live git of the user's working in the runtime is waited for, up to a minute; only a lock nobody holds and nothing has touched for a minute is cleared; and the fetch gets three tries, since the worker network dropped names more than once.Codex XHigh reviewed the change in eighteen passes, and each earlier pass changed it:
--checkand--nowdisagreed on an app whose runtime was unfinished, the migration removed a mise environment on package presence alone and removed its own proof of ownership before the environment, a finished runtime with a missing or broken command could never be repaired, the fast path accepted a command that was not the runtime's, a wrapper replaced before its migration ran lost the proof, a mise listing that failed read as empty, a machine without mise counted the environment as gone, the test for that case was not hermetic, a saved wrapper stayed proof after the environment was gone,--checkfrom a service without~/.local/binon itsPATHcalled a finished install unready, and a linked backup directory counted as proof. All are fixed above. Its point thatmise uninstall --allalso removes an install a project-local config requests was not taken: those are the commands the desktop takeover always ran, and an install kept for a project keeps its shim ahead of~/.local/bin, which is exactly what the default agent must not run. Its point that the ownership check is a plain-string match on the runtime path was not taken: that is the same heuristic the remove and theme scripts have always used, and a wrapper that names the runtime while running something else is the user's own arrangement. Its first-pass point that the probe vets~/.local/bin/hermeswhile the agent runs whateverPATHfinds was wrongly set aside, and a reviewer on this pull request reproduced the consequence with a real mise; thePATHagreement and the retirement during--nowabove are the fix. Independence is not guaranteed: codex runs on the same machine and can read the session that wrote this.🤖 Generated by Fable 5.1 in Claude Code. Reviewed by Codex XHigh.