fix: add logic so filepicker for a google agent has proper filetype filtering

This commit is contained in:
Dustin Healy 2025-08-18 06:34:24 -07:00
parent d3bfc810ff
commit ccb2e031dd

View file

@ -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: <FileImageIcon className="icon-md" />,
});