Repository navigation
Conversation
spencerbull
left a comment
There was a problem hiding this comment.
Changes requested on 09eb1a2b3dad1d2ff89c6bf9678a85f0b95d6563, reviewed against quattro at 8ea51516390320f8e768808b230098e67bdaa82c.
This still addresses a real standalone-install problem after #10613 and #10846. The conditional launcher hide needs to handle removal, and the new installed-state guard needs to match the installation it describes.
-
P2 — Removing packaged Hermes exposes a broken launcher. At
shell/services/hidden-entries.sh:98, hidinghermesonly while the package is installed makes the upstream entry visible after removal. The existing remover deletes the native runtime and its owned CLI wrappers but leaves~/.local/share/applications/hermes.desktop. Running the actual remover and hidden-entry scanner in a disposable worker confirmed that removal succeeds, the entry survives, its Exec target is gone, and this PR exposes the entry where the base hides it. Please handle the launcher whose target is removed while preserving working standalone entries, and add coverage for install/update → removal → launcher refresh. -
P2 — The menu guard can inspect the wrong Hermes installation. At
default/omarchy/omarchy-menu.jsonc:246, the new check hardcodes~/.hermes, whereas the installer respectsHERMES_HOMEand normalizes profile paths to their shared root. With a complete old default tree and an empty selected custom home, the generated guard disables Install even though the selected installation is absent. Conversely, complete standalone custom-home and profile-home installations remain undetected. Please use the same home normalization as the installer and cover both directions. The false-positive is introduced here; the custom-install false-negative is an existing target scenario this change leaves unresolved. -
P2 — Incomplete standalone installations are reported as installed. The same guard accepts a bootstrap marker and an executable without checking the required runtime and desktop files. The generated guard still disabled Install with the venv missing,
resources/app.asarmissing, orresources/install-stamp.jsonmissing. Please align the inexpensive file checks with the installer's completeness requirements and add incomplete-install cases, so a broken installation does not suppress the Install action. Avoid adding long launch/version probes to every menu open.
Please also correct the description's claim that a stale standalone marker leaves Remove reachable: remove.ai.hermes remains package-only. Widening removal is not implied by standalone detection; upstream's ordinary installer writes the same bootstrap marker, so that marker alone does not establish Omarchy ownership.
The existing #10613 behavior that prevents duplicate launchers after native updates should remain intact for packaged installs. #10846 fixes the relocated Python stamp helper and the menu icon and does not supersede this PR.
GPT-6 in Codex/T3 Code reviewed the change, with a second GPT-6 reviewer at xhigh. The second reviewer identified the removal regression and wrong-home false-positive, and the primary reviewer independently verified the source and reproduced both; it also identified the incomplete-install coverage gap. The second review was instructed not to consult the primary transcript, but read-scope isolation was not enforced. The PR combined cleanly with current quattro; 315 focused CLI, launcher, menu, guard, installer, and remover checks passed in a disposable credential-free worker. Separate probes reproduced the cases above. The full shell suite and rendered GUI installation/update/removal flow were not run.
This is an automated Omabot review posted on behalf of @spencerbull.
🤖 Generated by GPT-6 in Codex/T3 Code. Reviewed by GPT-6 at xhigh.
- hidden-entries.sh resolves the hermes entry's Exec target (quoted or bare, arguments stripped per the desktop-entry spec) and keeps it hidden when the target no longer exists: the remover tears down the runtime but leaves the launcher entry behind. - New hidden helper omarchy-hermes-desktop-present mirrors the installer's home resolution and reads every file its readiness checks read, so the Install row dims only for a complete standalone install. - Menu guard delegates to it; fixture Exec paths and test ordering fixed.
1e5f2fe to
6d598f0
Compare
|
Thanks for the review — all three P2s confirmed against source and addressed, pushed on top of the rebased 8ea5151. P2-1 (removal exposes a dead launcher): P2-2 (guard inspects the wrong home): the inline guard is gone. A new hidden helper, P2-3 (incomplete installs read as installed): the helper reads all eight files the installer's readiness checks read — bootstrap marker, venv Description: corrected — Remove stays package-only, and the body now says so explicitly (a bootstrap marker is written by upstream's ordinary installer too, so it alone establishes nothing about ownership). Rebased onto 8ea5151 (no conflicts with #10846's installer changes — it touches |
The default-home case built its runtime at <home>/hermes-agent while the helper reads <home>/.hermes/hermes-agent, so it failed on a clean machine and passed only where a developer's own HERMES_HOME pointed at a complete install. It now builds under .hermes and empties HERMES_HOME so nothing outside the fixture can answer for it. The profile case said it parked a runtime under the profile directory but built an unused tree beside it; it parks one there now, so a helper that stopped flattening is caught by that case. The HERMES_HOME case gets its own tree instead of borrowing the default home's. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…and is gone The launcher re-reads its hidden entries only when a .desktop file changes. Removing the package changes one, and that rescan runs while the runtime and its wrapper still exist, so the upstream entry is judged live; the teardown that follows deletes its command without touching any .desktop file, and nothing rescans. On a runtime of realistic size the last rescan lands more than a second before the teardown finishes, and the launcher keeps offering a Hermes that launches nothing until some unrelated entry changes. Deleting the entry from the remover, when the command its Exec names no longer exists, is itself the change that triggers the rescan, and an entry that still launches something is left alone. The scan's own dead-target rule stays for a runtime deleted by hand, and its comments now say so. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A desktop entry may name its command without a path, and the launcher resolves that on PATH. Testing it with -e answered against the working directory instead, so a hand-written entry naming a working command read as dead: the scan would hide it, and the remover, which deletes an entry whose command is gone, would delete it. Both now look a bare name up on PATH and check a path where it points. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
A desktop entry's Exec may be relative, resolved by the launcher against the entry's own Path=. Neither the scan nor the remover reads Path=, so checking such a command with -e answered against their own working directory: the scan hid the entry and the remover deleted it. A relative command is now taken as live by both, and only an absolute path or a bare name is judged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
The remover and the hidden-entries scan call omarchy-cmd-present, and the tests running them put only their stub directory ahead of PATH, so the helper came from an installed Omarchy and was missing on a bare checkout, where the cases naming a command on PATH failed. The checkout's bin/ now follows the stubs on PATH, as docs/testing.md says tests must never depend on an installed Omarchy. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
|
Re-reviewed at What moved since the last round. P2-2 and P2-3 are fixed as described: the helper mirrors the installer's
Left as caveats, not changed. The helper skips the installer's Description. The paragraph saying the remover leaves the runtime's launcher entry behind and that the scan returns the launcher to its pre-install state no longer describes the branch: the remover deletes the entry, and the scan covers a runtime deleted by hand. Checked, on a disposable worker built from the Omarchy ISO with the shell serving this branch. Second opinion. Codex at xhigh reviewed three heads, the bound set for this review. On Waiting on the maintainer. This is an automated Omabot review posted on behalf of @spencerbull. 🤖 Generated by Claude Fable 5.1 in Claude Code. Reviewed by Codex XHigh. |
Verified section refreshed to describe the branch as it stands: |
A desktop entry's Exec may carry the spec's string escapes, \s for a space among them, which the launcher decodes before it runs the command. Neither the scan nor the remover decodes them, so a valid entry whose path holds one was checked at a path that does not exist: the scan hid it and the remover deleted it. A command carrying an escape is now taken as live by both, like a relative one, since what cannot be read cannot be judged dead. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: Codex XHigh <noreply@openai.com>
|
Re-reviewed at What moved. No code since the last round until this commit; the description's removal paragraph and Verified section now describe the branch, and the three caveats were answered. The base gained six commits, two on files this branch touches (
The three caveats, checked against the source. The skipped Checked, on a disposable worker built from the Omarchy ISO with the shell serving the branch merged onto Second opinion. Codex at xhigh reviewed Waiting on the maintainer. This is an automated Omabot review posted on behalf of @spencerbull. 🤖 Generated by Claude Fable 5.1 in Claude Code. Reviewed by Codex XHigh. |
|
Checked out
Focused suites on this tree: This is the right seam. Do not open a second detector PR. GitHub still shows CHANGES_REQUESTED from the 10 Sep review; the later rounds look resolved. Waiting on maintainer is correct. |
|
Re-reviewed at Two P2 gaps remain in the stale-launcher path:
The earlier wrong-home and incomplete-install findings are fixed. Default-path launcher cleanup is fixed, but the two cases above mean that prior stale-launcher finding is not fully closed. The skipped A fresh disposable-worker run was attempted for this exact integration, but the configured worker template snapshot is currently unavailable, so no new suite result is claimed. The same PR head previously passed GPT-5.6 Sol at xhigh supplied the two findings in a second-opinion pass; I verified both against this exact head, current Omarchy source, and Hermes v2026.9.7 source. Read-scope isolation from the primary transcript was requested but not enforced. Verdict: NEEDS AUTHOR. This is still the right seam and directly addresses #11628 once the cleanup path handles these two states. Waiting on the author. This is an automated Omabot review posted on behalf of @spencerbull. 🤖 Generated by GPT-5.6 Sol in Codex/T3 Code. Reviewed by GPT-5.6 Sol at xhigh. |
Two states left a stale Hermes launcher visible or undeletable: The runtime writes its entry under the XDG data home, wherever that is; a custom XDG_DATA_HOME left $HOME/.local/share alone to delete, and left the scan blind to an entry the launcher still saw. Both now resolve the directory the way omarchy-remove-launcher-entry already does. The desktop-entry escapes the launcher decodes before running the command were also decoded by neither, so an entry such as Exec="/home/u/Hermes\\sDesktop/bin/hermes" was judged at a path that does not exist -- hidden by the scan, preserved by the remover, whatever lived at the decoded path. Both now decode the command first and judge that; an escape the decoder does not know is left to the launcher, like a relative command.
|
Both findings are fixed in Custom Escaped Suites on The two standing caveats are unchanged from your last round: the skipped |
|
Re-reviewed The previous custom- P2 — quoted executable paths are decoded only once. The decoder in hidden-entries.sh:115–129, duplicated in omarchy-remove-ai-hermes:75–88, implements the general string-escape layer but omits the quoted-command layer. For example, this valid desktop-file value targets an executable whose directory contains a literal dollar sign: Exec="/tmp/Hermes\\$Desktop/hermes" desktopGLib resolves that executable to I verified the expected decoding with the installed GLib key-file and argument parsers using synthetic strings only; nothing was launched and no contributor code was executed. This matches the desktop-entry specification and GLib's launch parsing. Omarchy's actual launch path is Checks completed: clean merge tree with current Not run: CLI/shell suites, graphical acceptance, real Hermes CLI/Desktop installation and launch, lifecycle/removal tests, and screenshot capture. Omabot's configured dedicated SSH keys are missing in this environment, and its Proxmox connection fails host-key verification. No worker was created. No screenshots or E2E success are claimed, and no fix was pushed without worker verification. The separate bootstrap-marker issue #12206 / PR #12487 should also be distinguished during the eventual install run; this PR directly addresses #11628. GPT-6 in Codex/T3 Code performed the primary review. GPT-5.6 Sol at xhigh supplied the second opinion and the escape-layer finding, which I checked against source, the specification, and the trusted GLib parser probe. Read-scope isolation from the primary transcript was requested but not enforced. Waiting on test-environment access to reproduce the full desktop flow, verify a small fix, and attach actual screenshot evidence. This review does not establish readiness to merge. 🤖 Generated by GPT-6 in Codex/T3 Code. Reviewed by GPT-5.6 Sol at xhigh. |
|
P2 fixed and branch updated to current quattro. Quoted-token decode (the remaining P2)The decoder in
New tests cover live and dead targets in both Upstream merge (why the branch showed conflicts)Merged
Tests
Still blocked on the workerNo E2E/graphical acceptance, no real install/launch, no removal lifecycle run, no screenshots — Omabot's SSH keys and Proxmox host-key verification are still unavailable. Requesting a worker run for those. Bootstrap-marker issue #12206 / PR #12487 remains separate from this PR (#11628). |
hidden-entries-test.sh was an add/add conflict: upstream rebuilt the suite around a scratch HOME, XDG_DATA_DIRS, LC_ALL=C and an exact-output assertion over 14 fixtures (nested IDs, user overrides, OnlyShowIn/ NotShowIn, a Desktop Action section, unusual filenames, a literal ven[dor]* dir, nix-profile), all scanned with the desktop filter arg; our side had kept Hermes coverage: package-present hides the upstream launcher, dead Exec targets (absolute, quoted, escaped \s, quoted-token $) hide it too, and the entry is read from XDG_DATA_HOME wherever it points. The resolved suite keeps both: upstream's exact-output scan runs first, before any Hermes fixture exists so nothing pollutes its set, then the Hermes cases reuse the upstream harness conventions (entry() helper, exported scratch HOME, filter arg on every scan) with our stubbed omarchy-pkg-present still prepended to PATH. The scan inherits a caller's XDG_DATA_HOME, which would steal the user-applications dir from under the fixtures, so the suite unsets it up front.
|
Branch merged to current quattro — mergeable again.
No product code changed in the merge — the auto-merged hunks in Focused suites on The quoted-token finding stands addressed as of |
[Medium impact] The PR appears safe to merge, with the earlier non-blocking escaped-quote issue still outstanding. Findings
SummaryThe PR recognizes complete standalone Hermes Desktop installs and keeps their launcher visible without the package.
Reviews (2) · Last reviewed commit: "Describe the Exec decoders as they now b..." · Reviewed by Greptile |
| if [[ $target == \"*\"* ]]; then | ||
| target=${target#\"} | ||
| target=${target%%\"*} |
There was a problem hiding this comment.
Escaped quotes hide working Hermes
If the executable path contains a literal double quote, the quoted Exec parser stops at the escaped quote rather than the closing quote. The shortened path fails the check, so a working standalone Hermes entry stays hidden. Decode the string first, then read the command with escape-aware quote handling. Add a test for an escaped quote inside the executable path.
Both function headers still said an escape is never read and the entry is taken as live, which stopped being true once the decoders learned the string and quoted-token escapes: the scan now hides the ID for an escape it cannot decode, while the remover keeps the entry. The merge from quattro also left a stray one-line copy of the hermes_holders comment above its first call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed at Reproduced on an Omarchy worker. I set up a standalone Hermes with no
Pushed Proportionality. Fixing the two bugs takes three things:
The two copies of the two-layer Exec decoder (about 55 lines each in
None of these is likely for an entry Hermes writes itself. Still, it is roughly 120 lines to maintain for cases nobody has reported. I'd suggest dropping the decoder in favour of the narrower remover match. Whether to take it as it stands is the maintainer's call. Related: #13858 hides the renamed Second opinion: Codex at medium effort reviewed the head before the comment-only commit. It agreed that the decoder and the dead-target logic are more than the bug needs (its independence is not guaranteed). It found the escaped-quote case and the |
|
Closing as stale. For the record: every finding in this thread was addressed and mutation-tested. The final review (omarchybot, |
Install > AI > Hermes offers to install Hermes Desktop on machines where it is already installed, and the launcher hides the one entry that works. Both answer only
omarchy-pkg-present hermes-desktop, but the desktop app can be on the machine without the package: the upstream runtime's own installer writes ahermes.desktoplauncher and a complete install under~/.hermesbefore Omarchy ever asks. That is everyone who set Hermes up before Omarchy shipped Hermes support, and everyone who installed it from upstream since. For them the menu keeps offering a redundant package install — clicking it adds the package alongside the working runtime and changes nothing about the menu's picture of the machine — and since 9fb73b0, the statichermesline inlauncher.hideshides their only working launcher entry, so search cannot open an app that is there and running. On the incomplete standalone installs the old offer is worse than redundant: a runtime without its built app fails the installer's own integrity checks and dead-ends in "The Hermes runtime has moved beyond the packaged desktop release".The hide moves with ownership instead of being static.
hidden-entries.shalready produces the launcher's hidden list at runtime, so it now emitshermesonly while thehermes-desktoppackage is present — exactly the condition the packaged takeover assumes — and the static line leaveslauncher.hides. A packaged install hides the upstream entry as before; a standalone install keeps it, because it is the only launcher the app has. The remover finishes what removal starts: it deletes the runtime's launcher entry once the command its Exec names is gone — and since the launcher re-reads hidden entries only when a .desktop file changes, that deletion is itself the event that refreshes the list. For a runtime deleted by hand rather than through Remove, the scan resolves the entry's Exec target — quoted or bare, arguments stripped per the desktop-entry spec, the spec's string escapes (\s,\n,\t,\r,\\) decoded first, a bare name looked up on PATH — and keeps it hidden when the target no longer exists; an escape the decoder does not know hides the ID while leaving the entry alone. Both the scan and the remover read the entry where the runtime wrote it, under${XDG_DATA_HOME:-$HOME/.local/share}/applications, the same resolutionomarchy-remove-launcher-entryalready uses. A working standalone entry always resolves and stays visible.The Install row learns the same second answer through a new hidden helper,
omarchy-hermes-desktop-present. Putting the check in a command rather than inline guard text keeps one definition of "a standalone install is complete": the helper mirrors the installer's home resolution —HERMES_HOMEwins, a path under aprofilesdirectory flattens to the shared root above it — and then reads the same files the installer's own readiness checks read, the bootstrap marker, the venv commands, and the native app's binary, app.asar and install stamp. File tests only: the guard batch runs per menu open, and no probe ever launches Hermes. The row dims (✓) only when a complete install is there; an incomplete one keeps the Install action active. The installer itself is left alone on purpose: with the guard fixed, a working install is dimmed before it can be clicked, and teaching the installer to adopt foreign runtimes would be a different conversation than detecting them. Removal stays package-only: a bootstrap marker is written by upstream's ordinary installer too, so it does not establish Omarchy ownership, and widening removal is a separate question.Verified
test/shell.d/hermes-desktop-present-test.sh(new): the helper against throwaway homes — a complete default-home install recognized; aprofiles/ptahhome normalized to the shared root before checking (and a runtime parked under the profile directory itself rejected);HERMES_HOMEhonored; an install missing each of the six required files not reported present; nothing at all answers false. 5 ok.test/shell.d/hidden-entries-test.sh(new):hermeshidden with the package present; visible without it when the Exec target exists; hidden again when the target is gone; a quoted Exec (Exec="<home>/.local/bin/hermes" desktop) resolves the quoted binary; a bare Exec command is resolved on PATH; a relative Exec is left to the launcher; an escaped Exec (Hermes\sDesktop) resolves to its decoded target and is judged dead once that target is gone; an escape the decoder does not know hides the ID while leaving the entry on disk; a deadhermes.desktopunder a customXDG_DATA_HOMEis scanned and hidden. 11 ok.test/shell.d/hermes-remove-test.sh(new cases): removal deletes the launcher entry whose Exec target is gone — itself the .desktop change that triggers the launcher's rescan; an entry that still launches something survives; a bare Exec command on PATH survives; a relative Exec survives unread; an escaped Exec is decoded before judging, so a decoded target that is gone gets the entry deleted while an escape the remover cannot decode keeps it; the entry under a customXDG_DATA_HOMEis deleted just like the default-path one. 28 ok.guardScriptbatch wrapper across four states: standalone install without the package (dimmed ✓), clean machine (active), packaged install (dimmed ✓), incomplete standalone install (active).bash -nclean on the generated script../test/cli: green. Focused Hermes/menu suites (hermes-desktop-install,hermes-cli,hermes-remove,hermes-cli-migration,app-search,menu,menu-guards): green on the rebase onto 8ea5151.Fixes #11628