@sayknow-cli/tui 0.5.11 → 0.5.14

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,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.5.14] - 2026-09-16
6
+
7
+ ## [0.5.12] - 2026-09-15
8
+ ### Fixed
9
+
10
+ - Under tmux, a successful sixel DA1 no longer turns INLINE transcript images back on. Ghostty answers that query with ";4" even though it never paints sixel, so tool screenshots were smuggled through DCS passthrough onto the outer image plane and stacked over the chat. The probe now enables overlay sixel only; inline sixel stays off unless tmux itself owns `terminal-features=sixel`.
11
+
12
+
5
13
  ## [0.5.11] - 2026-09-10
6
14
 
7
15
  ### Added
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@sayknow-cli/tui",
4
- "version": "0.5.11",
4
+ "version": "0.5.14",
5
5
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
6
6
  "homepage": "https://sayknow-cli.com",
7
7
  "author": "jaybeyond",
@@ -38,8 +38,8 @@
38
38
  "fmt": "biome format --write ."
39
39
  },
40
40
  "dependencies": {
41
- "@sayknow-cli/natives": "0.5.11",
42
- "@sayknow-cli/utils": "0.5.11",
41
+ "@sayknow-cli/natives": "0.5.14",
42
+ "@sayknow-cli/utils": "0.5.14",
43
43
  "lru-cache": "11.3.6",
44
44
  "marked": "^18.0.3"
45
45
  },
package/src/tui.ts CHANGED
@@ -25,6 +25,7 @@ import {
25
25
  setTerminalImageProtocol,
26
26
  setTmuxOverlayImageProtocol,
27
27
  TERMINAL,
28
+ tmuxOwnsSixel,
28
29
  wrapTmuxPassthrough,
29
30
  } from "./terminal-capabilities";
30
31
  import {
@@ -1687,9 +1688,25 @@ export class TUI extends Container {
1687
1688
 
1688
1689
  #finishSixelProbe(supported: boolean): void {
1689
1690
  this.#clearSixelProbeState();
1690
- if (!supported || TERMINAL.imageProtocol) return;
1691
+ if (!supported || TERMINAL.imageProtocol || getTmuxOverlayImageProtocol()) return;
1691
1692
 
1692
- setTerminalImageProtocol(ImageProtocol.Sixel);
1693
+ // Under tmux a successful outer-terminal DA1 proves the *client* can draw
1694
+ // sixel, not that tmux can place or erase an INLINE raster. Enabling
1695
+ // TERMINAL.imageProtocol here re-opens the stacked-transcript bug: Ghostty
1696
+ // answers DA1 with ";4" even though it never paints sixel, so every tool
1697
+ // screenshot is smuggled through passthrough onto the outer image plane
1698
+ // and survives the next repaint. Overlay art (the pet) carries its own
1699
+ // coordinates and is the only safe user of that evidence. Inline sixel
1700
+ // stays off unless tmux itself owns the protocol.
1701
+ if (isUnderTmux()) {
1702
+ if (tmuxOwnsSixel()) {
1703
+ setTerminalImageProtocol(ImageProtocol.Sixel);
1704
+ } else {
1705
+ setTmuxOverlayImageProtocol(ImageProtocol.Sixel);
1706
+ }
1707
+ } else {
1708
+ setTerminalImageProtocol(ImageProtocol.Sixel);
1709
+ }
1693
1710
  this.#queryCellSize();
1694
1711
  this.invalidate();
1695
1712
  this.requestRender(true);