opencode-quill 0.3.3 → 0.3.4

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
@@ -4,6 +4,12 @@ All notable changes are documented in this file using
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.3.4] - 2026-10-21
8
+
9
+ ### Fixed
10
+
11
+ - Preserve learning exclusions across sync and restart
12
+
7
13
  ## [0.3.3] - 2026-10-21
8
14
 
9
15
  ### Fixed
@@ -97,6 +103,7 @@ All notable changes are documented in this file using
97
103
  - `/quill` command and command palette action to toggle autocomplete.
98
104
  - Local installer script, full test suite, CI workflows, and release tooling.
99
105
 
106
+ [0.3.4]: https://github.com/ozandogrultan/opencode-quill/compare/v0.3.3...v0.3.4
100
107
  [0.3.3]: https://github.com/ozandogrultan/opencode-quill/compare/v0.3.2...v0.3.3
101
108
  [0.3.2]: https://github.com/ozandogrultan/opencode-quill/compare/v0.3.1...v0.3.2
102
109
  [0.3.1]: https://github.com/ozandogrultan/opencode-quill/compare/v0.3.0...v0.3.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-quill",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "OpenCode prompt autocomplete: local n-gram word and next-word prediction shown as inline ghost text in the TUI composer, accepted with Tab.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/tui.tsx CHANGED
@@ -80,13 +80,14 @@ export default Plugin.define({
80
80
  try {
81
81
  await context.data.session.message.sync(sessionID)
82
82
  if (disposed || !settings.enabled) return
83
+ if (context.data.session.list().find((session) => session.id === sessionID)?.parentID) return
83
84
  if (version !== resetVersion) continue
84
85
  const candidates = context.data.session.message.list(sessionID)
85
86
  .filter((message) => message.type === "user")
86
87
  .slice(-200)
87
88
  .map((message) => ({ id: `${sessionID}:${message.id}`, text: message.text, created: message.time?.created }))
88
89
  const promptsFor = (clearedAt: number | undefined) => candidates
89
- .filter((prompt) => clearedAt === undefined || prompt.created === undefined || prompt.created >= clearedAt)
90
+ .filter((prompt) => clearedAt === undefined || (prompt.created !== undefined && prompt.created >= clearedAt))
90
91
  .map(({ id, text }) => ({ id, text }))
91
92
  const snapshot = unwrap(learning.snapshot)
92
93
  const seen = new Set(snapshot.seen)
@@ -96,6 +97,7 @@ export default Plugin.define({
96
97
  if (model.observe(prompts)) {
97
98
  await setLearning((draft) => {
98
99
  if (disposed || !settings.enabled || version !== resetVersion) return
100
+ if (context.data.session.list().find((session) => session.id === sessionID)?.parentID) return
99
101
  const latest = new PersonalModel(unwrap(draft.snapshot))
100
102
  if (latest.observe(promptsFor(latest.clearedAt))) draft.snapshot = latest.snapshot()
101
103
  })