From 9637fb39903a276fa46b589d71664409c3653148 Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Tue, 7 Apr 2026 17:01:14 -0400 Subject: [PATCH] fix(core): remove tmux alternate buffer warning (#24852) --- packages/core/src/utils/compatibility.test.ts | 13 ------------- packages/core/src/utils/compatibility.ts | 9 --------- 2 files changed, 22 deletions(-) diff --git a/packages/core/src/utils/compatibility.test.ts b/packages/core/src/utils/compatibility.test.ts index c94cbee3a6..28fa26453c 100644 --- a/packages/core/src/utils/compatibility.test.ts +++ b/packages/core/src/utils/compatibility.test.ts @@ -289,19 +289,6 @@ describe('compatibility', () => { ); }); - it('should return tmux warning when detected and in alternate buffer', () => { - vi.stubEnv('TMUX', '/tmp/tmux-1001/default,1,0'); - - const warnings = getCompatibilityWarnings({ isAlternateBuffer: true }); - expect(warnings).toContainEqual( - expect.objectContaining({ - id: 'tmux-alternate-buffer', - message: expect.stringContaining('tmux detected'), - priority: WarningPriority.High, - }), - ); - }); - it('should return low-color tmux warning when detected', () => { vi.stubEnv('TERM', 'screen'); vi.stubEnv('TMUX', '1'); diff --git a/packages/core/src/utils/compatibility.ts b/packages/core/src/utils/compatibility.ts index 4b126bd4eb..8a997b42cf 100644 --- a/packages/core/src/utils/compatibility.ts +++ b/packages/core/src/utils/compatibility.ts @@ -145,15 +145,6 @@ export function getCompatibilityWarnings(options?: { }); } - if (isTmux() && options?.isAlternateBuffer) { - warnings.push({ - id: 'tmux-alternate-buffer', - message: - 'Warning: tmux detected — alternate buffer mode may cause unexpected scrollback loss and flickering. If you experience issues, disable it in /settings → "Use Alternate Screen Buffer".\n Tip: Use Ctrl-b [ to access tmux copy mode for scrolling history.', - priority: WarningPriority.High, - }); - } - if (isLowColorTmux()) { warnings.push({ id: 'low-color-tmux',