From c5113a75a0ca16444f38c46c05d5bfdbb7e036f5 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Tue, 20 Jan 2026 14:45:27 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20Add=20`hasAgentAccess`=20?= =?UTF-8?q?to=20dependencies=20in=20`useNewConvo`=20hook=20(#11427)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated the dependency array in the useNewConvo hook to include hasAgentAccess for improved state management and functionality. --- client/src/hooks/useNewConvo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/hooks/useNewConvo.ts b/client/src/hooks/useNewConvo.ts index fd2e20e0ee..c468ab30a2 100644 --- a/client/src/hooks/useNewConvo.ts +++ b/client/src/hooks/useNewConvo.ts @@ -249,7 +249,7 @@ const useNewConvo = (index = 0) => { state: disableFocus ? {} : { focusChat: true }, }); }, - [endpointsConfig, defaultPreset, assistantsListMap, modelsQuery.data], + [endpointsConfig, defaultPreset, assistantsListMap, modelsQuery.data, hasAgentAccess], ); const newConversation = useCallback(