fix(patch): cherry-pick ad21c10 to release/v0.5.3 (#8719)

Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
gemini-cli[bot]
2025-09-18 17:58:17 +00:00
committed by GitHub
parent a47015017b
commit f3cb841e1a
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -435,6 +435,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
setIsProcessing, setIsProcessing,
setGeminiMdFileCount, setGeminiMdFileCount,
slashCommandActions, slashCommandActions,
isConfigInitialized,
); );
const performMemoryRefresh = useCallback(async () => { const performMemoryRefresh = useCallback(async () => {
@@ -59,6 +59,7 @@ export const useSlashCommandProcessor = (
setIsProcessing: (isProcessing: boolean) => void, setIsProcessing: (isProcessing: boolean) => void,
setGeminiMdFileCount: (count: number) => void, setGeminiMdFileCount: (count: number) => void,
actions: SlashCommandProcessorActions, actions: SlashCommandProcessorActions,
isConfigInitialized: boolean,
) => { ) => {
const session = useSessionStats(); const session = useSessionStats();
const [commands, setCommands] = useState<readonly SlashCommand[]>([]); const [commands, setCommands] = useState<readonly SlashCommand[]>([]);
@@ -255,7 +256,7 @@ export const useSlashCommandProcessor = (
return () => { return () => {
controller.abort(); controller.abort();
}; };
}, [config, reloadTrigger]); }, [config, reloadTrigger, isConfigInitialized]);
const handleSlashCommand = useCallback( const handleSlashCommand = useCallback(
async ( async (