hermes - 💡(How to fix) Fix Version mismatch: hermes_cli/__init__.py gets reverted during upgrade conflict resolution

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

After an upgrade to v0.15.1:

Code Example

cd ~/.hermes/hermes-agent && diff <(grep "^version" pyproject.toml | head -1) <(grep "__version__" hermes_cli/__init__.py)
RAW_BUFFERClick to expand / collapse

Problem

During git conflict resolution (e.g. git reset --hard or manual merge), hermes_cli/__init__.py can get reverted to an older version while pyproject.toml stays current, causing a silent version mismatch.

Real-world example

After an upgrade to v0.15.1:

FileVersion
pyproject.toml0.15.1 ✅
hermes_cli/__init__.py0.14.0 ❌

The release commit e71a2bd11 correctly updated both files, but a subsequent git conflict resolution reverted __init__.py to 0.14.0. The mismatch was invisible until manually checked.

Impact

  • hermes --version reports wrong version
  • Any version-gated logic may behave incorrectly
  • User confidence in upgrade process is undermined

Suggested fixes

  1. hermes doctor — add a check that pyproject.toml version matches hermes_cli/__init__.py.__version__
  2. hermes update — post-upgrade verification step to ensure both files are consistent
  3. hermes config check — include version consistency check
  4. Upgrade script — after git pull/reset, verify __init__.py matches pyproject.toml and auto-fix if not

Detection command

cd ~/.hermes/hermes-agent && diff <(grep "^version" pyproject.toml | head -1) <(grep "__version__" hermes_cli/__init__.py)

Environment

  • Hermes Agent v0.15.1 (pyproject.toml) / v0.14.0 (init.py at time of discovery)
  • OS: Linux aarch64
  • Install method: git clone + uv pip install

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Version mismatch: hermes_cli/__init__.py gets reverted during upgrade conflict resolution