From 92a10fc044d42b216317696a4e8e6f70d7cc7a7d Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 21 Jun 2026 02:38:14 +0300 Subject: fix: protect root agent restore sessions refs #712 --- src/integration/assets/kimi/herdr-agent-state.sh | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/integration/assets/kimi/herdr-agent-state.sh') diff --git a/src/integration/assets/kimi/herdr-agent-state.sh b/src/integration/assets/kimi/herdr-agent-state.sh index 2c8d8567..b5b6cc4b 100644 --- a/src/integration/assets/kimi/herdr-agent-state.sh +++ b/src/integration/assets/kimi/herdr-agent-state.sh @@ -3,7 +3,7 @@ # managed by herdr; reinstalling or updating the integration overwrites this file. # add custom hooks beside this file instead of editing it. # HERDR_INTEGRATION_ID=kimi -# HERDR_INTEGRATION_VERSION=3 +# HERDR_INTEGRATION_VERSION=4 set -eu @@ -13,7 +13,7 @@ trap 'rm -f "$hook_input_file"' EXIT HUP INT TERM cat >"$hook_input_file" 2>/dev/null || true case "$action" in - session|working|blocked|idle|release) ;; + session|working|blocked|idle) ;; *) exit 0 ;; esac @@ -54,18 +54,7 @@ agent_session_id = session_id if isinstance(session_id, str) and session_id else request_id = f"{source}:{int(time.time() * 1000)}:{random.randrange(1_000_000):06d}" report_seq = time.time_ns() -if action == "release": - request = { - "id": request_id, - "method": "pane.release_agent", - "params": { - "pane_id": pane_id, - "source": source, - "agent": agent, - "seq": report_seq, - }, - } -elif action == "session": +if action == "session": if not agent_session_id: raise SystemExit(0) request = { -- cgit v1.2.3