hermes-currenttime-hint/plugin.yaml
Shihfu Juan c0fad617de
fix: remove on_session_end hook — fires every turn, breaks injection counting
Hermes' on_session_end plugin hook fires at the end of every
run_conversation call (turn_finalizer.py:490), not at true session end.
This caused per-session state to be deleted every turn, making the
sentinel trigger always fire — injecting on every user message.

Remove the `_on_session_end` callback and its registration. State cleanup
is handled by the existing lazy TTL (24h) + LRU cap (1024 sessions) in
`_evict_if_needed()`.
2026-07-10 20:25:57 +08:00

6 lines
No EOL
374 B
YAML

name: hermes-currenttime-hint
version: "0.1.0"
description: "Appends an ISO-8601 current-time hint to every Nth user message (default N=5) or after 30 minutes since the last injection, whichever comes first. Injects a single-line <current-time>...</current-time> tag into the user message tail via the pre_llm_call hook."
author: "Shihfu Juan / Kuri"
hooks:
- pre_llm_call