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/opencode/herdr-agent-state.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/integration/assets/opencode') diff --git a/src/integration/assets/opencode/herdr-agent-state.js b/src/integration/assets/opencode/herdr-agent-state.js index 1e9fff51..6836227b 100644 --- a/src/integration/assets/opencode/herdr-agent-state.js +++ b/src/integration/assets/opencode/herdr-agent-state.js @@ -2,7 +2,7 @@ // managed by herdr; reinstalling or updating the integration overwrites this file. // add custom hooks/plugins beside this file instead of editing it. // HERDR_INTEGRATION_ID=opencode -// HERDR_INTEGRATION_VERSION=5 +// HERDR_INTEGRATION_VERSION=6 import net from "node:net"; @@ -96,10 +96,6 @@ function reportState(state, sessionID) { return request("pane.report_agent", params); } -function releaseAgent() { - return request("pane.release_agent", {}); -} - export const HerdrAgentStatePlugin = async () => { if ( process.env.HERDR_ENV !== "1" || @@ -149,7 +145,6 @@ export const HerdrAgentStatePlugin = async () => { await reportState("idle", sessionID); break; case "session.deleted": - await releaseAgent(); break; default: break; -- cgit v1.2.3