storymode-cli 1.3.1 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.mjs +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storymode-cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Play AI-animated pixel art characters in your terminal",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.mjs CHANGED
@@ -199,8 +199,12 @@ export async function run(args) {
199
199
  const reactive = !flags['no-reactive'];
200
200
 
201
201
  // Auto-detect graphics protocol for HD rendering
202
+ // iTerm2 inside tmux can't clear previous inline images (no equivalent of
203
+ // Kitty's a=d,d=a — \x1b[2J is intercepted by tmux, not forwarded to iTerm2).
204
+ // So HD only works for: Kitty/Ghostty (any context) or iTerm2 (direct, no tmux).
202
205
  const renderMode = detectGraphicsProtocol();
203
- const useHd = !!renderMode.protocol; // auto-detect only
206
+ const useHd = renderMode.protocol === 'kitty'
207
+ || (renderMode.protocol === 'iterm2' && !renderMode.inTmux);
204
208
  const paneWidth = useHd && size === 'full' ? 80 : size === 'full' ? 62 : size === 'tiny' ? 14 : 22;
205
209
 
206
210
  // If we're already the companion pane (spawned by tmux split), play inline