diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-30 00:49:43 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-30 00:51:01 +0300 |
| commit | 6b9b092228a6fa0c06451233dec0e90e8a6740b0 (patch) | |
| tree | 9f0d2fdb2ef7a981bedf16121c40f49e10621d35 /src/integration/assets/opencode/herdr-agent-state.js | |
| parent | 6d4c04fa509cd8f1a13907e260ca69179ca301c4 (diff) | |
fix: preserve opencode working state
refs #351
Diffstat (limited to 'src/integration/assets/opencode/herdr-agent-state.js')
| -rw-r--r-- | src/integration/assets/opencode/herdr-agent-state.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/integration/assets/opencode/herdr-agent-state.js b/src/integration/assets/opencode/herdr-agent-state.js index 17eb5ad9..ed0958fd 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=2 +// HERDR_INTEGRATION_VERSION=3 import net from "node:net"; @@ -111,9 +111,8 @@ export const HerdrAgentStatePlugin = async () => { break; case "session.created": case "session.updated": - if (sessionID) { - await reportState("idle", sessionID); - } + // session.created and session.updated are metadata events; lifecycle + // state comes from session.status and the deprecated session.idle. break; case "session.status": { const status = |
