aboutsummaryrefslogtreecommitdiff
path: root/src/integration/assets/opencode
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-27 18:06:20 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-27 18:06:20 +0300
commitb56eeb991eb1246acec7fe8f57e0e3aaa0fd5a82 (patch)
tree887aec9b806c9a3b3cf45d1b1c138bd7a0515648 /src/integration/assets/opencode
parentd205725449a33947cd57fddc1a749e753aa55767 (diff)
fix: release opencode integration on dispose
refs #314
Diffstat (limited to 'src/integration/assets/opencode')
-rw-r--r--src/integration/assets/opencode/herdr-agent-state.js5
1 files changed, 4 insertions, 1 deletions
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 ?? {};