Repository navigation
Harden Hermes wrapper ownership - #8539
Conversation
There was a problem hiding this comment.
Pull request overview
Hardens Hermes wrapper ownership for integration into #7469, preserving user-owned paths while managing only Omarchy-generated wrappers.
Changes:
- Uses an exact marker to identify Omarchy wrappers.
- Adds ownership-aware installation, removal, and migration behavior.
- Expands regression coverage across foreign path types.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
bin/omarchy-install-hermes-cli |
Adds marker-based ownership handling. |
bin/omarchy-remove-preinstalls |
Removes only Omarchy-owned Hermes wrappers. |
migrations/1787760281.sh |
Migrates existing users to the wrapper. |
test/shell.d/hermes-cli-test.sh |
Tests installer ownership cases. |
test/shell.d/hermes-cli-migration-test.sh |
Tests migration behavior and idempotence. |
test/shell.d/preinstalls-test.sh |
Tests ownership-aware preinstall removal. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d56c1ba972
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This contributes the installation hardening identified during review directly into the head branch of #7469. It is intended to be absorbed by #7469, not to compete with it against
quattro.Summary
~/.local/bin/hermespaths.preinstalls-removed, Hermes Desktop ownership, foreign paths, and idempotence.The Hermes packaging, Python pin, readiness probe, desktop handoff, and upstream installation strategy are unchanged.
Verification
--nowinstallation: Hermes Agent 0.19.0 on Python 3.13.15, completed in 13 seconds.--check, normal install,--now, and the migration.git diff --check: clean.