🔧 fix: Add hasAgentAccess to dependencies in useNewConvo hook (#11427)

* Updated the dependency array in the useNewConvo hook to include hasAgentAccess for improved state management and functionality.
This commit is contained in:
Danny Avila 2026-01-20 14:45:27 -05:00 committed by GitHub
parent f09eec8462
commit c5113a75a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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