mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 23:21:27 -07:00
Fix MCP prompt slash commands not appearing. (#8290)
This commit is contained in:
committed by
GitHub
parent
0308267071
commit
ad21c10988
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user