From e356949d3fb600abd1a993949300a6c3e0008621 Mon Sep 17 00:00:00 2001 From: Bryan Morgan Date: Tue, 24 Jun 2025 18:48:55 -0400 Subject: [JUNE 25] Permanent failover to Flash model for OAuth users after persistent 429 errors (#1376) Co-authored-by: Scott Densmore --- packages/cli/src/ui/hooks/slashCommandProcessor.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/cli/src/ui/hooks') 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, -- cgit v1.2.3