fix(cli): terminal detection for WezTerm/Ghostty/Warp/Konsole + Windo… - #1083
fix(cli): terminal detection for WezTerm/Ghostty/Warp/Konsole + Windo…#1083smarpitm wants to merge 8283 commits into
Conversation
Source: CodebuffAI/freebuff-private@ae678e28f07561302bfa239c66a857370ad7ea48
Source: CodebuffAI/freebuff-private@bb7b23214042fa4c6dd20f59db36f3dd42fb9dca
Source: CodebuffAI/freebuff-private@07934def6d6e3d4c1d7905418b4cfc3edbe58285
Source: CodebuffAI/freebuff-private@5d654f847ea86044856e58099ba5a2cf438fd0f1
Source: CodebuffAI/freebuff-private@8f119094a6d2d3aa77ca2f780998a18a5cd7ecdd
Source: CodebuffAI/freebuff-private@16f2dc69cb867992e3480c4f50fb159e8b8136bc
Source: CodebuffAI/freebuff-private@ab5ece12e7e8b771b00e1c3a4cfe359710209cae
Source: CodebuffAI/freebuff-private@148f17d9ab3eae98309013e1cfc30972c153256e
Source: CodebuffAI/freebuff-private@35bf465f3ad33d344d57da6e6077f797130156d7
Source: CodebuffAI/freebuff-private@9eeae32930e6e3120eedaaea5a5a631d8d696d4e
Source: CodebuffAI/freebuff-private@ee8c1dd46063e461ebca3930ad8815bb5d5c30ad
Source: CodebuffAI/freebuff-private@81a77957254e6a4d1cec0e9fd24341f0e2fc8ebd
Source: CodebuffAI/freebuff-private@284971ae7d932a6b1c8b1c72cbe165435de565ec
Source: CodebuffAI/freebuff-private@daf5ad7309b095d2867dc26951546624b8a058e3
Source: CodebuffAI/freebuff-private@dbaecc7e17553537593e8c42a5fd6178d50db5a6
Source: CodebuffAI/freebuff-private@62c0ac112799fb05639aaada4928961d4b268cc8
Source: CodebuffAI/freebuff-private@614867a0bd0aac22b3c5b34da375a67a338cd4cc
Source: CodebuffAI/freebuff-private@3c8a963e5c58f525ab7f0f6e9084c1a7a98fedde
Source: CodebuffAI/freebuff-private@50e4b1e1ddd12aec3d5ee45e3d48dac7736f9c41
Source: CodebuffAI/freebuff-private@6deeb29d19ac267f25c197cc2a324727d276d29d
Source: CodebuffAI/freebuff-private@82ed1b54d62fe71cd70115787fa28fee770b749f
Source: CodebuffAI/freebuff-private@1f77e080d0381e11b329c94570a6758c69826eeb
Source: CodebuffAI/freebuff-private@6c1fcffe162ba1cd054b216fc3cb7b5f3aa7ba88
Source: CodebuffAI/freebuff-private@5d8ab176d970f0c89dce66503710602872d86768
Source: CodebuffAI/freebuff-private@f9e712a4d96d9f08727d2800f8ffaee526f99004
Source: CodebuffAI/freebuff-private@338f0f868f0ad60bd84a211ba9a3a5e09ebc4ef5
Source: CodebuffAI/freebuff-private@c6a78a50b301e3988b16af58e8ee8ba51fc0ac27
Source: CodebuffAI/freebuff-private@b54b4f08ecedb91d55d47379508529631b3aca76
Source: CodebuffAI/freebuff-private@d1cc46ee010d23fe062932e3b4d704e41a32220f
Source: CodebuffAI/freebuff-private@aaae0b994d53713900bd8a8a52facd37028d26e6
Source: CodebuffAI/freebuff-private@bcbb9ac69b787f16396ba5df07cb8312a805435d
Source: CodebuffAI/freebuff-private@26c37b9b020dc12ba578eee49690c7350925b46b
Source: CodebuffAI/freebuff-private@f9d32db327669d492a1193136f5f82cb172d9f46
Source: CodebuffAI/freebuff-private@d5a3841bf467bcd578becc1ac19dd80ca492eb8f
Source: CodebuffAI/freebuff-private@0472902b22ba0dd6e11ef6302f42d8ec3b8fd95e
Source: CodebuffAI/freebuff-private@2cd42c41956ffd2348b6aa6c145e117661c5359e
Source: CodebuffAI/freebuff-private@103c0c539cb939b88bd1c2f9ac335c75dd200533
Source: CodebuffAI/freebuff-private@174f08883a9ac980c5d5b557ed0c91c432eb6f57
Source: CodebuffAI/freebuff-private@362051dff88023be83d982febdb21ef9948a0048
Source: CodebuffAI/freebuff-private@0a56a521aa88c0f8d76372a593c8713cbcb8b4c6
Source: CodebuffAI/freebuff-private@799bed2e28ee2abf0202665abbcd463e6dc06506
Source: CodebuffAI/freebuff-private@0a3dfde55f700db4d71675e8129470807c77439e
Source: CodebuffAI/freebuff-private@affb2a9c530053afec9c51ae5b52428f4966baf6
Source: CodebuffAI/freebuff-private@bb8295301522c473174a73096c4ba63c056756a7
Source: CodebuffAI/freebuff-private@eb9d766a6908447862e7e2c686339ebc2e2f6963
Source: CodebuffAI/freebuff-private@6d780e0cd0e5a57e27d7fadfc3fd6dd8e5da5bfd
Source: CodebuffAI/freebuff-private@b93edb5cfc350a194c923383f88c90e427f9600e
Source: CodebuffAI/freebuff-private@e0d5eaa97559796e61fe332c82bbc14564846821
Source: CodebuffAI/freebuff-private@d7f0b697967c9b3543c15999545129f8ecd0be8d
Source: CodebuffAI/freebuff-private@345b09eb3896ad3372f96c24762f9cc9ec3845dc
Source: CodebuffAI/freebuff-private@979501f275f9b763d279fb7843ad0ff55c44f110
Source: CodebuffAI/freebuff-private@066daa275ba06781aafe8fd8720070c85c7fc9f7
Source: CodebuffAI/freebuff-private@6d262d2ac86cfc99bc12cd1c0d7db83d39f6c3a6
…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 Co-Authored-By: Codebuff <noreply@codebuff.com>
|
Good work here — several of these are genuine, well-reasoned bug fixes rather than cosmetic churn:
My main critique is scope: this bundles three fairly independent changes (protocol chunking fix, terminal detection, Windows shell fallback) into one PR. Splitting the clipboard/pwsh piece out with its own test would make it easier to port and verify in isolation. The Overall the core protocol fixes are worth taking; the Windows fallback piece would benefit from a test before landing. |
|
Apologies — this PR was auto-closed by GitHub when we force-pushed a history rewrite of this repository (repository maintenance; every commit SHA changed). That was not a judgment on this PR, and GitHub does not allow us to reopen it because the commits it was based on no longer exist in the new history. If you'd like to continue with this change: rebase your branch onto the new Sorry for the churn, and thanks for contributing. |
…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