Fix MCP prompt slash commands not appearing. (#8290)

This commit is contained in:
Tommaso Sciortino
2025-09-11 12:59:38 -07:00
committed by GitHub
parent 0308267071
commit ad21c10988
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, setIsProcessing,
setGeminiMdFileCount, setGeminiMdFileCount,
slashCommandActions, slashCommandActions,
isConfigInitialized,
); );
const performMemoryRefresh = useCallback(async () => { const performMemoryRefresh = useCallback(async () => {

View File

@@ -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 (