mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-09 21:00:56 -07:00
fix(core): remove tmux alternate buffer warning (#24852)
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user