From b56eeb991eb1246acec7fe8f57e0e3aaa0fd5a82 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 27 May 2026 18:06:20 +0300 Subject: fix: release opencode integration on dispose refs #314 --- src/integration/assets/opencode/herdr-agent-state.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 a6660f09..17eb5ad9 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=3 +// HERDR_INTEGRATION_VERSION=2 import net from "node:net"; @@ -81,6 +81,9 @@ export const HerdrAgentStatePlugin = async () => { } return { + dispose: async () => { + await reportState("release"); + }, event: async ({ event }) => { const type = event?.type; const properties = event?.properties ?? {}; -- cgit v1.2.3