Sync upstream Gemini-CLI v0.8.2 (#838)

This commit is contained in:
tanzhenxin
2025-10-23 09:27:04 +08:00
committed by GitHub
parent 096fabb5d6
commit eb95c131be
644 changed files with 70389 additions and 23709 deletions

View File

@@ -9,7 +9,10 @@ import { useTimer } from './useTimer.js';
import { usePhraseCycler } from './usePhraseCycler.js';
import { useState, useEffect, useRef } from 'react'; // Added useRef
export const useLoadingIndicator = (streamingState: StreamingState) => {
export const useLoadingIndicator = (
streamingState: StreamingState,
customWittyPhrases?: string[],
) => {
const [timerResetKey, setTimerResetKey] = useState(0);
const isTimerActive = streamingState === StreamingState.Responding;
@@ -20,6 +23,7 @@ export const useLoadingIndicator = (streamingState: StreamingState) => {
const currentLoadingPhrase = usePhraseCycler(
isPhraseCyclingActive,
isWaiting,
customWittyPhrases,
);
const [retainedElapsedTime, setRetainedElapsedTime] = useState(0);