diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-21 02:38:14 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-21 02:42:39 +0300 |
| commit | 92a10fc044d42b216317696a4e8e6f70d7cc7a7d (patch) | |
| tree | a45fb881c85e66ff8641fa84bb2a1bf0ead584ed /src/integration/assets/hermes | |
| parent | 73b137a4ae75cb1465e8d4ddfc293ff7366d8133 (diff) | |
fix: protect root agent restore sessions
refs #712
Diffstat (limited to 'src/integration/assets/hermes')
| -rw-r--r-- | src/integration/assets/hermes/__init__.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/integration/assets/hermes/__init__.py b/src/integration/assets/hermes/__init__.py index 6bb0fe8a..e6f6971d 100644 --- a/src/integration/assets/hermes/__init__.py +++ b/src/integration/assets/hermes/__init__.py @@ -1,7 +1,7 @@ """Hermes plugin installed by Herdr to report agent lifecycle state.""" # HERDR_INTEGRATION_ID=hermes -# HERDR_INTEGRATION_VERSION=2 +# HERDR_INTEGRATION_VERSION=3 from __future__ import annotations @@ -71,10 +71,6 @@ def _report(state: str, **kwargs) -> None: _send("pane.report_agent", params) -def _release() -> None: - _send("pane.release_agent", {}) - - def _working(**kwargs) -> None: _report("working", **kwargs) @@ -87,11 +83,6 @@ def _idle(**kwargs) -> None: _report("idle", **kwargs) -def _finalize(**kwargs) -> None: - del kwargs - _release() - - def register(ctx): ctx.register_hook("on_session_start", _idle) ctx.register_hook("pre_llm_call", _working) @@ -102,4 +93,3 @@ def register(ctx): ctx.register_hook("post_approval_response", _working) ctx.register_hook("post_llm_call", _idle) ctx.register_hook("on_session_end", _idle) - ctx.register_hook("on_session_finalize", _finalize) |
