opencode-goal-plugin 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.8.1 — 2026-08-07
6
+
7
+ - Fix goal auto-continue stalling after session compaction: a continuation
8
+ claim for a pre-compaction source turn could match the still-visible tail
9
+ assistant message after compaction and suppress the post-compaction
10
+ continuation until the user nudged the goal. The claim is now invalidated on
11
+ `session.compacted`, so the loop resumes on the next idle. Contributed by
12
+ [@harryzhou2000](https://github.com/harryzhou2000) in
13
+ [#58](https://github.com/willytop8/OpenCode-goal-plugin/pull/58).
14
+ - Update the bundled `zod` dependency from 4.1.8 to 4.4.3.
15
+
5
16
  ## 0.8.0 — 2026-08-06
6
17
 
7
18
  Both new options in this release were contributed by
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-goal-plugin",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Durable, guarded goal workflows for OpenCode.",
5
5
  "type": "module",
6
6
  "main": "./src/goal-plugin.js",
@@ -72,9 +72,9 @@
72
72
  "name": "willytop8"
73
73
  },
74
74
  "devDependencies": {
75
- "typescript": "5.9.3"
75
+ "typescript": "7.0.2"
76
76
  },
77
77
  "dependencies": {
78
- "zod": "4.1.8"
78
+ "zod": "4.4.3"
79
79
  }
80
80
  }
@@ -5331,6 +5331,12 @@ async function createGoalPlugin({ client, directory } = {}, pluginOptions = {})
5331
5331
  if (!goal) return
5332
5332
  goal.messageIDs = new Set()
5333
5333
  goal.totalTokens = 0
5334
+ // Compaction rewrites the context: a continuation claim for a
5335
+ // pre-compaction source turn must not suppress the post-compaction
5336
+ // continuation (the recent tail can still end on the same assistant
5337
+ // message, which would otherwise stall the goal loop until the user
5338
+ // nudges it).
5339
+ goal.continuationClaim = null
5334
5340
  await persist(sessionID)
5335
5341
  return
5336
5342
  }