Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/cli/src/ui/utils/synchronizedOutput.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ function createStdout(write: NodeJS.WriteStream['write']): NodeJS.WriteStream {
describe('terminalSupportsSynchronizedOutput', () => {
it.each([
[{ TERM_PROGRAM: 'WezTerm' }, true],
[{ TERM_PROGRAM: 'WarpTerminal' }, true],
[{ TERM_PROGRAM: 'ghostty' }, true],
[{ TERM_PROGRAM: 'iTerm.app' }, true],
[{ TERM_PROGRAM: 'WarpTerminal' }, true],
[{ TERM: 'xterm-kitty' }, true],
[{ KITTY_WINDOW_ID: '1' }, true],
[{ TERM_PROGRAM: 'Apple_Terminal' }, false],
Expand Down
11 changes: 10 additions & 1 deletion packages/cli/src/ui/utils/synchronizedOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,16 @@ export function terminalSupportsSynchronizedOutput(
}

const termProgram = env['TERM_PROGRAM'];
if (termProgram === 'WezTerm' || termProgram === 'iTerm.app') {
// Warp's DECRQM 2026 probe answers status 2 (recognized, reset), so
// synchronized updates are available there; without them Warp renders the
// erase-then-rewrite pattern as flicker (issue #8557). Ghostty implements
// synchronized output natively.
if (
termProgram === 'WezTerm' ||
termProgram === 'iTerm.app' ||
termProgram === 'WarpTerminal' ||
termProgram === 'ghostty'
) {
return true;
}

Expand Down
Loading