Skip to content

fix(hindsight): add missing hindsight-all dep for local_embedded mode (closes #7718) - #7745

Closed
ten-ltw wants to merge 1 commit into
NousResearch:mainfrom
ten-ltw:fix/hindsight-local-embedded-dependency
Closed

fix(hindsight): add missing hindsight-all dep for local_embedded mode (closes #7718)#7745
ten-ltw wants to merge 1 commit into
NousResearch:mainfrom
ten-ltw:fix/hindsight-local-embedded-dependency

Conversation

@ten-ltw

@ten-ltw ten-ltw commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #7718.

Root cause: local_embedded mode imports from hindsight.HindsightEmbedded (requires hindsight-all), but plugin.yaml only declared hindsight-client as a dependency. Users selecting local_embedded experienced a silent ModuleNotFoundError on every on_session_end hook.

Changes:

  • plugin.yaml: declares both hindsight-client>=0.4.22 (cloud/external) and hindsight-all>=0.5.0 (local_embedded)
  • plugins/memory/hindsight/init.py: initialize() now raises a clear RuntimeError with install command if hindsight-all is absent
  • tests/plugins/memory/test_hindsight_provider.py: 3 new tests for guard, legacy alias, and cloud mode non-regression

How to Test

# Verify 49/49 tests pass
python -m pytest tests/plugins/memory/test_hindsight_provider.py -v

Fixes #7718

…closes NousResearch#7718)

Root cause: local_embedded mode imports from hindsight.HindsightEmbedded
(which requires the hindsight-all package), but plugin.yaml only declared
hindsight-client as a dependency. Users selecting local_embedded experienced
a silent ModuleNotFoundError on every on_session_end hook — their long-term
memory was completely disabled with no visible signal.

Fix:
- plugin.yaml: declare both hindsight-client (cloud/external modes) and
  hindsight-all>=0.5.0 (local_embedded mode) as dependencies
- initialize(): add guard import that raises a clear RuntimeError with
  install command if hindsight-all is absent
- The legacy 'local' alias is also covered (silently remapped to
  local_embedded)

Co-authored-by: Ten Li
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]: Hindsight plugin local_embedded requires hindsight-all, but plugin.yaml only lists hindsight-client

1 participant