opencode-ghost 1.3.6 → 1.3.7

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
@@ -5,6 +5,12 @@ 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.7] - 2026-10-10
9
+
10
+ ### Fixed
11
+
12
+ - **tui:** Center diagnostics and constrain scrollable dialog height
13
+
8
14
  ## [1.3.6] - 2026-10-10
9
15
 
10
16
  ### Fixed
@@ -283,6 +289,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
283
289
  - Options for `model`, `acceptKeys`, `maxChars`, `idleDelayMs`,
284
290
  `recentMessages` and `system`.
285
291
 
292
+ [1.3.7]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.3.6...v1.3.7
286
293
  [1.3.6]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.3.5...v1.3.6
287
294
  [1.3.5]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.3.4...v1.3.5
288
295
  [1.3.4]: https://github.com/ozandogrultan/opencode-ghost/compare/v1.3.3...v1.3.4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-ghost",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Stateless inline next-prompt ghosts for the empty OpenCode V2 composer, accepted with Tab or Right.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/tui.tsx CHANGED
@@ -1,6 +1,7 @@
1
1
  /** @jsxImportSource @opentui/solid */
2
2
  import { Plugin } from "@opencode/plugin/tui"
3
3
  import { TextareaRenderable, InputRenderable, type BoxRenderable, type Renderable } from "@opentui/core"
4
+ import { useTerminalDimensions } from "@opentui/solid"
4
5
  import { createEffect, createMemo, createRoot, createSignal, on, onCleanup } from "solid-js"
5
6
  import { composerAction, composerBlocker, isEmptyComposer, keyName, locateComposerEditor, observeComposerInput, removesOnly, type ComposerLookup } from "./composer"
6
7
  import { createDiagnostics, errorDetail, formatDiagnostic, formatDiagnostics, modelLabel, type DiagnosticEntry, type StageTimings } from "./diagnostics"
@@ -323,10 +324,22 @@ export default Plugin.define({
323
324
  `mode ${context.keymap.mode.current()}`,
324
325
  `color rgba(${[color.r, color.g, color.b, color.a].map((value) => value.toFixed(2)).join(", ")})`,
325
326
  ].join("\n")
326
- void context.ui.dialog.alert({
327
- title: "Ghost — diagnostics",
328
- message: `${summary}\n\nNow\n${live}\n\nDisplay changes\n${displayLog.list().length ? formatDiagnostics(displayLog.list()) : "None recorded yet."}\n\nGenerations\n${formatDiagnostics(diagnostics.list())}`,
329
- })
327
+ const message = `${summary}\n\nNow\n${live}\n\nDisplay changes\n${displayLog.list().length ? formatDiagnostics(displayLog.list()) : "None recorded yet."}\n\nGenerations\n${formatDiagnostics(diagnostics.list())}`
328
+ context.ui.dialog.set({ size: "large", centered: true })
329
+ context.ui.dialog.show(() => {
330
+ const dimensions = useTerminalDimensions()
331
+ return (
332
+ <box id="ghost-diagnostics" width="100%" paddingX={2} paddingY={1} gap={1}>
333
+ <box flexDirection="row" justifyContent="space-between" flexShrink={0}>
334
+ <text fg={context.theme.text.base}><b>Ghost — diagnostics</b></text>
335
+ <text fg={context.theme.text.muted}>esc</text>
336
+ </box>
337
+ <scrollbox id="ghost-diagnostics-scroll" height={Math.max(1, Math.min(28, dimensions().height - 8))} flexShrink={0} focused scrollX={false} scrollY>
338
+ <text id="ghost-diagnostics-body" fg={context.theme.text.base} wrapMode="word" content={message} />
339
+ </scrollbox>
340
+ </box>
341
+ )
342
+ })
330
343
  return
331
344
  }
332
345
  if (command.type === "invalid") {