From a3e5b564f7e64128ee429be88d918174bba3a9e6 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Mon, 9 Feb 2026 13:44:39 -0800 Subject: [PATCH] fix(cli): correct 'esc to cancel' position and restore duration display (#18534) --- packages/cli/src/ui/components/Composer.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/cli/src/ui/components/Composer.tsx b/packages/cli/src/ui/components/Composer.tsx index ee074c1c77..2b515fa675 100644 --- a/packages/cli/src/ui/components/Composer.tsx +++ b/packages/cli/src/ui/components/Composer.tsx @@ -5,7 +5,7 @@ */ import { useState } from 'react'; -import { Box, Text, useIsScreenReaderEnabled } from 'ink'; +import { Box, useIsScreenReaderEnabled } from 'ink'; import { LoadingIndicator } from './LoadingIndicator.js'; import { StatusDisplay } from './StatusDisplay.js'; import { ApprovalModeIndicator } from './ApprovalModeIndicator.js'; @@ -30,7 +30,6 @@ import { useAlternateBuffer } from '../hooks/useAlternateBuffer.js'; import { StreamingState, ToolCallStatus } from '../types.js'; import { ConfigInitDisplay } from '../components/ConfigInitDisplay.js'; import { TodoTray } from './messages/Todo.js'; -import { theme } from '../semantic-colors.js'; export const Composer = ({ isFocused = true }: { isFocused?: boolean }) => { const config = useConfig(); @@ -69,9 +68,6 @@ export const Composer = ({ isFocused = true }: { isFocused?: boolean }) => { !hasPendingActionRequired; const showApprovalIndicator = !uiState.shellModeActive; const showRawMarkdownIndicator = !uiState.renderMarkdown; - const showEscToCancelHint = - showLoadingIndicator && - uiState.streamingState !== StreamingState.WaitingForConfirmation; return ( { - {showEscToCancelHint && ( - - esc to cancel - - )} { : uiState.currentLoadingPhrase } elapsedTime={uiState.elapsedTime} - showCancelAndTimer={false} /> )}