opencode-ghost 1.3.0 → 1.3.2
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 +14 -0
- package/README.md +6 -8
- package/package.json +1 -1
- package/src/composer.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.3.2] - 2026-10-09
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **tui:** Drop the composer sibling check
|
|
13
|
+
|
|
14
|
+
## [1.3.1] - 2026-10-09
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **tui:** Accept the host composer's textarea plus metadata row as eligible
|
|
19
|
+
|
|
8
20
|
## [1.3.0] - 2026-10-09
|
|
9
21
|
|
|
10
22
|
### Added
|
|
@@ -246,6 +258,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
246
258
|
- Options for `model`, `acceptKeys`, `maxChars`, `idleDelayMs`,
|
|
247
259
|
`recentMessages` and `system`.
|
|
248
260
|
|
|
261
|
+
[1.3.2]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.3.1...v1.3.2
|
|
262
|
+
[1.3.1]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.3.0...v1.3.1
|
|
249
263
|
[1.3.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.2.0...v1.3.0
|
|
250
264
|
[1.2.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.1.0...v1.2.0
|
|
251
265
|
[1.1.0]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.0.7...v1.1.0
|
package/README.md
CHANGED
|
@@ -161,8 +161,7 @@ are logged but not toasted). The history is not written to disk.
|
|
|
161
161
|
When a generation is `ok` but nothing is visible, `/suggest log` also shows the
|
|
162
162
|
live display state and a bounded history of display changes. Each `shown` or
|
|
163
163
|
`hidden` entry names the reason the placeholder is not applied: no
|
|
164
|
-
`prompt.footer` marker, an unidentified or ambiguous editor,
|
|
165
|
-
the composer, a non-normal prompt or keymap mode, a draft, selection, extmarks,
|
|
164
|
+
`prompt.footer` marker, an unidentified or ambiguous editor, a non-normal prompt or keymap mode, a draft, selection, extmarks,
|
|
166
165
|
a busy or hidden session, or the host overriding the placeholder. The live
|
|
167
166
|
section also reports focus, keymap mode and the placeholder colour. With
|
|
168
167
|
`/suggest debug` on, each change is toasted.
|
|
@@ -174,13 +173,12 @@ section also reports focus, keymap mode and the placeholder colour. With
|
|
|
174
173
|
composer, not a completion after typed text.
|
|
175
174
|
- **Focus safety.** Modal/form and shell editors are never acceptance targets.
|
|
176
175
|
Non-base keymap modes, autocomplete capture, renderer/editor selections and
|
|
177
|
-
composer extmarks suppress the ghost. The
|
|
178
|
-
|
|
179
|
-
previews and failed-preview boxes, suppresses display and acceptance.
|
|
176
|
+
composer extmarks suppress the ghost. The layout around the textarea is not
|
|
177
|
+
inspected, so it works across host layouts.
|
|
180
178
|
- **Attachment visibility.** V2 does not expose draft attachments to plugins.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
Attachments without an extmark (image previews, non-image files) cannot be
|
|
180
|
+
detected, so a ghost may appear in those drafts. Disable suggestions with
|
|
181
|
+
`/suggest` when using such attachments.
|
|
184
182
|
- **Renderer integration.** Composer discovery depends on the host renderer
|
|
185
183
|
hierarchy and its composer identity guard. Placeholder synchronization uses
|
|
186
184
|
OpenTUI's public pre-render callback; host renderer changes need re-verification.
|
package/package.json
CHANGED
package/src/composer.ts
CHANGED
|
@@ -39,10 +39,6 @@ export function isEmptyComposer(editor: TextareaRenderable | undefined, focused:
|
|
|
39
39
|
export function composerBlocker(editor: TextareaRenderable | undefined, mode: string, normal: boolean, selected: boolean): string | undefined {
|
|
40
40
|
if (!editor) return "no composer editor"
|
|
41
41
|
if (!editor.parent || editor.parent.isDestroyed) return "editor detached"
|
|
42
|
-
const siblings = editor.parent.getChildren().filter((node) =>
|
|
43
|
-
!node.id.startsWith("slot-layout-"),
|
|
44
|
-
)
|
|
45
|
-
if (siblings.length !== 1 || siblings[0] !== editor) return `composer has ${siblings.length} sibling nodes (${siblings.map((node) => node.id || "?").join(", ")})`
|
|
46
42
|
if (!normal) return "prompt not in normal mode"
|
|
47
43
|
if (mode !== "base") return `keymap mode is ${mode}`
|
|
48
44
|
if (selected) return "renderer has a selection"
|