mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 15:10:59 -07:00
fix(cli): resolve type error in LoadingIndicator and adjust mouse tests
This commit is contained in:
@@ -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,
|
||||
},
|
||||
])(
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user