fix(core): remove tmux alternate buffer warning (#24852)

This commit is contained in:
Jack Wotherspoon
2026-04-07 17:01:14 -04:00
committed by GitHub
parent 06fcdc231c
commit 9637fb3990
2 changed files with 0 additions and 22 deletions

View File

@@ -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');

View File

@@ -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',