diff options
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index b9d3c0da..f76580b7 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -171,7 +171,7 @@ export const useSlashCommandProcessor = ( [addMessage], ); - const savedChatTags = async function () { + const savedChatTags = useCallback(async () => { const geminiDir = config?.getProjectTempDir(); if (!geminiDir) { return []; @@ -186,7 +186,7 @@ export const useSlashCommandProcessor = ( } catch (_err) { return []; } - }; + }, [config]); const slashCommands: SlashCommand[] = useMemo(() => { const commands: SlashCommand[] = [ @@ -992,6 +992,7 @@ Add any other context about the problem here. addMemoryAction, addMessage, toggleCorgiMode, + savedChatTags, config, showToolDescriptions, session, |
