fix(cli): resolve type error in LoadingIndicator and adjust mouse tests

This commit is contained in:
Keith Guerin
2026-03-01 14:40:04 -08:00
parent ac09d73c99
commit 1721b51f7a
2 changed files with 10 additions and 5 deletions

View File

@@ -3340,28 +3340,28 @@ describe('InputPrompt', () => {
name: 'first line, first char',
relX: 0,
relY: 0,
mouseCol: 8,
mouseCol: 4,
mouseRow: 2,
},
{
name: 'first line, middle char',
relX: 6,
relY: 0,
mouseCol: 14,
mouseCol: 10,
mouseRow: 2,
},
{
name: 'second line, first char',
relX: 0,
relY: 1,
mouseCol: 8,
mouseCol: 4,
mouseRow: 3,
},
{
name: 'second line, end char',
relX: 5,
relY: 1,
mouseCol: 13,
mouseCol: 9,
mouseRow: 3,
},
])(

View File

@@ -28,6 +28,7 @@ interface LoadingIndicatorProps {
thought?: ThoughtSummary | null;
thoughtLabel?: string;
showCancelAndTimer?: boolean;
forceRealStatusOnly?: boolean;
}
export const LoadingIndicator: React.FC<LoadingIndicatorProps> = ({
@@ -41,6 +42,7 @@ export const LoadingIndicator: React.FC<LoadingIndicatorProps> = ({
thought,
thoughtLabel,
showCancelAndTimer = true,
forceRealStatusOnly = false,
}) => {
const streamingState = useStreamingContext();
const { columns: terminalWidth } = useTerminalSize();
@@ -74,7 +76,10 @@ export const LoadingIndicator: React.FC<LoadingIndicatorProps> = ({
: null;
const wittyPhraseNode =
showWit && wittyPhrase && primaryText === GENERIC_WORKING_LABEL ? (
!forceRealStatusOnly &&
showWit &&
wittyPhrase &&
primaryText === GENERIC_WORKING_LABEL ? (
<Box marginLeft={1}>
<Text color={theme.text.secondary} italic>
{wittyPhrase}