fix(cli): copy uses OSC52 only in SSH/WSL (#16554)

Signed-off-by: assagman <ahmetsercansagman@gmail.com>
This commit is contained in:
Sercan Sagman
2026-01-14 01:55:28 +03:00
committed by GitHub
parent d66ec38f82
commit c7c409c68f
3 changed files with 23 additions and 5 deletions

View File

@@ -113,9 +113,7 @@ const isWSL = (): boolean =>
const isDumbTerm = (): boolean => (process.env['TERM'] ?? '') === 'dumb';
const shouldUseOsc52 = (tty: TtyTarget): boolean =>
Boolean(tty) &&
!isDumbTerm() &&
(isSSH() || inTmux() || inScreen() || isWSL());
Boolean(tty) && !isDumbTerm() && (isSSH() || isWSL());
const safeUtf8Truncate = (buf: Buffer, maxBytes: number): Buffer => {
if (buf.length <= maxBytes) return buf;