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
@@ -187,7 +187,9 @@ describe('ToastDisplay', () => {
constrainHeight: true, constrainHeight: true,
}); });
await waitUntilReady(); 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 () => { it('renders collapse hint when showIsExpandableHint is true and constrainHeight is false', async () => {
@@ -196,6 +198,8 @@ describe('ToastDisplay', () => {
constrainHeight: false, constrainHeight: false,
}); });
await waitUntilReady(); await waitUntilReady();
expect(lastFrame()).toContain('Press Ctrl+O to collapse lines'); expect(lastFrame()).toContain(
'Ctrl+O to collapse lines of the last response',
);
}); });
}); });
@@ -78,7 +78,7 @@ export const ToastDisplay: React.FC = () => {
const action = uiState.constrainHeight ? 'show more' : 'collapse'; const action = uiState.constrainHeight ? 'show more' : 'collapse';
return ( return (
<Text color={theme.text.accent}> <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> </Text>
); );
} }