ui(cli): reduce length of Ctrl+O hint (#20490)

This commit is contained in:
Jarrod Whelan
2026-02-26 16:57:38 -08:00
committed by GitHub
parent 049d48ef60
commit 085441352b
2 changed files with 7 additions and 3 deletions

View File

@@ -187,7 +187,9 @@ describe('ToastDisplay', () => {
constrainHeight: true,
});
await waitUntilReady();
expect(lastFrame()).toContain('Press Ctrl+O to show more lines');
expect(lastFrame()).toContain(
'Ctrl+O to show more lines of the last response',
);
});
it('renders collapse hint when showIsExpandableHint is true and constrainHeight is false', async () => {
@@ -196,6 +198,8 @@ describe('ToastDisplay', () => {
constrainHeight: false,
});
await waitUntilReady();
expect(lastFrame()).toContain('Press Ctrl+O to collapse lines');
expect(lastFrame()).toContain(
'Ctrl+O to collapse lines of the last response',
);
});
});

View File

@@ -78,7 +78,7 @@ export const ToastDisplay: React.FC = () => {
const action = uiState.constrainHeight ? 'show more' : 'collapse';
return (
<Text color={theme.text.accent}>
Press Ctrl+O to {action} lines for the most recent response
Ctrl+O to {action} lines of the last response
</Text>
);
}