Skip to content

fix: keep Honcho recall out of the cached system prefix#1201

Merged
teknium1 merged 1 commit intomainfrom
fix/honcho-cache-stability
Mar 14, 2026
Merged

fix: keep Honcho recall out of the cached system prefix#1201
teknium1 merged 1 commit intomainfrom
fix/honcho-cache-stability

Conversation

@teknium1
Copy link
Contributor

@teknium1 teknium1 commented Mar 13, 2026

Summary

  • keep later-turn Honcho recall out of the system prompt so the stable cache prefix does not churn
  • attach later-turn Honcho recall to the current-turn user message at API-call time only
  • add regression tests for the helper and continuing-session behavior

Test plan

  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/test_run_agent.py -n0 -q
  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/ -n0 -q
    • current main still has 4 unrelated failures in tests/test_managed_server_tool_support.py and tests/test_quick_commands.py
    • this branch only changes run_agent.py and tests/test_run_agent.py

Attach later-turn Honcho recall to the current-turn user message at API
call time instead of appending it to the system prompt. This preserves the
stable system-prefix cache while keeping Honcho continuity context
available for the turn.

Also adds regression coverage for the injection helper and for continuing
sessions so Honcho recall stays out of the system prompt.
@teknium1 teknium1 merged commit 938e887 into main Mar 14, 2026
1 check failed
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.

1 participant