From 085441352bed3b8a5f00a2484b1cb9b75cacb426 Mon Sep 17 00:00:00 2001 From: Jarrod Whelan <150866123+jwhelangoog@users.noreply.github.com> Date: Thu, 26 Feb 2026 16:57:38 -0800 Subject: [PATCH] ui(cli): reduce length of Ctrl+O hint (#20490) --- packages/cli/src/ui/components/ToastDisplay.test.tsx | 8 ++++++-- packages/cli/src/ui/components/ToastDisplay.tsx | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/ui/components/ToastDisplay.test.tsx b/packages/cli/src/ui/components/ToastDisplay.test.tsx index f2ef9a287b..668f91c8d9 100644 --- a/packages/cli/src/ui/components/ToastDisplay.test.tsx +++ b/packages/cli/src/ui/components/ToastDisplay.test.tsx @@ -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', + ); }); }); diff --git a/packages/cli/src/ui/components/ToastDisplay.tsx b/packages/cli/src/ui/components/ToastDisplay.tsx index e383201219..6fcef1667c 100644 --- a/packages/cli/src/ui/components/ToastDisplay.tsx +++ b/packages/cli/src/ui/components/ToastDisplay.tsx @@ -78,7 +78,7 @@ export const ToastDisplay: React.FC = () => { const action = uiState.constrainHeight ? 'show more' : 'collapse'; return ( - Press Ctrl+O to {action} lines for the most recent response + Ctrl+O to {action} lines of the last response ); }