Skip to content

fix(hindsight): add missing get_hermes_home import#6098

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-f400edfe
Apr 8, 2026
Merged

fix(hindsight): add missing get_hermes_home import#6098
teknium1 merged 1 commit into
mainfrom
hermes/hermes-f400edfe

Conversation

@teknium1

@teknium1 teknium1 commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Salvage of #6093 by @Archerouyang.

Problem

get_hermes_home was only imported inside _load_config(), but _start_daemon() (called in local mode) also references it at line 295, causing NameError at runtime.

Fix

Move the import to module level so it's available everywhere in the file. Remove the now-redundant import from _load_config().

Fixes #5993

Import hermes_constants.get_hermes_home at module level so it is
available in _start_daemon() when local mode starts the embedded
daemon. Previously the import was only inside _load_config(), causing
NameError when _start_daemon() referenced get_hermes_home().

Fixes #5993

Co-Authored-By: 史官 <historian@slock.team>
Archerouyang pushed a commit to Archerouyang/hermes-agent that referenced this pull request Apr 8, 2026
…ct CAMOFOX_PROFILE_DIR docs

- Add missing import for get_hermes_home in hindsight plugin
- Remove incorrect CAMOFOX_PROFILE_DIR documentation (not a real Camofox env var)

Fixes NousResearch#6098, NousResearch#6087
@teknium1 teknium1 merged commit 55ac056 into main Apr 8, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ~/.hermes/hermes-agent/plugins/memory/hindsight/-init-.py

1 participant