diff --git a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx b/client/src/components/Chat/Input/Files/AttachFileMenu.tsx index 9c7891310c..466b7fddb0 100644 --- a/client/src/components/Chat/Input/Files/AttachFileMenu.tsx +++ b/client/src/components/Chat/Input/Files/AttachFileMenu.tsx @@ -91,6 +91,10 @@ const AttachFileMenu = ({ disabled, conversationId, endpointFileConfig }: Attach label: localize('com_ui_upload_file_search'), onClick: () => { setToolResource(EToolResources.file_search); + setEphemeralAgent((prev) => ({ + ...prev, + [EToolResources.file_search]: true, + })); onAction(); }, icon: ,