From ccb2e031dd869f0f9939d66ed7ef0dde3c9c90fe Mon Sep 17 00:00:00 2001 From: Dustin Healy Date: Mon, 18 Aug 2025 06:34:24 -0700 Subject: [PATCH] fix: add logic so filepicker for a google agent has proper filetype filtering --- client/src/components/Chat/Input/Files/AttachFileMenu.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx b/client/src/components/Chat/Input/Files/AttachFileMenu.tsx index 89259fadf7..33d01887e1 100644 --- a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx +++ b/client/src/components/Chat/Input/Files/AttachFileMenu.tsx @@ -110,7 +110,11 @@ const AttachFileMenu = ({ label: localize('com_ui_upload_provider'), onClick: () => { setToolResource(EToolResources.direct_attach); - onAction(endpoint === EModelEndpoint.google ? 'google_multimodal' : 'multimodal'); + onAction( + (agent?.provider ?? endpoint) === EModelEndpoint.google + ? 'google_multimodal' + : 'multimodal', + ); }, icon: , });