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

View File

@@ -435,6 +435,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
setIsProcessing,
setGeminiMdFileCount,
slashCommandActions,
isConfigInitialized,
);
const performMemoryRefresh = useCallback(async () => {

View File

@@ -59,6 +59,7 @@ export const useSlashCommandProcessor = (
setIsProcessing: (isProcessing: boolean) => void,
setGeminiMdFileCount: (count: number) => void,
actions: SlashCommandProcessorActions,
isConfigInitialized: boolean,
) => {
const session = useSessionStats();
const [commands, setCommands] = useState<readonly SlashCommand[]>([]);
@@ -255,7 +256,7 @@ export const useSlashCommandProcessor = (
return () => {
controller.abort();
};
}, [config, reloadTrigger]);
}, [config, reloadTrigger, isConfigInitialized]);
const handleSlashCommand = useCallback(
async (