Skip to content

fix(cli): terminal detection for WezTerm/Ghostty/Warp/Konsole + Windo… - #1083

Closed
smarpitm wants to merge 8283 commits into
CodebuffAI:mainfrom
smarpitm:fix/terminal-detection-and-pwsh-fallback
Closed

smarpitm wants to merge 8283 commits into
CodebuffAI:mainfrom
smarpitm:fix/terminal-detection-and-pwsh-fallback

Conversation

@smarpitm

Copy link
Copy Markdown

…ws pwsh fallback

Add kitty graphics protocol detection for WezTerm, Ghostty, Warp, and Konsole terminals (case-insensitive TERM_PROGRAM matching + KONSOLE_VERSION).

Fix Windows clipboard image paste failing silently when powershell.exe is missing by falling back to pwsh (PowerShell 7). Normalize stdout/stderr to strings so callers don't handle the string | Buffer union.

Also includes spec-compliant kitty chunking (m=0 terminator on last chunk, control data only on first chunk), iTerm2 size param fix (decoded bytes not base64 length), and image pipeline integrity tests.

Split from a912ea6 — the getKittyFormat() format ID fix is deferred to a follow-up PR.

🤖 Generated with Codebuff

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:triaged Classified by the community triage bot pr:port-candidate Worth porting into the private source tree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants