From 195e1e9eb20d6da8942e1f9796f0f15694c62dd9 Mon Sep 17 00:00:00 2001 From: Joseph Licata <54822374+usnavy13@users.noreply.github.com> Date: Wed, 3 Sep 2025 02:08:48 -0400 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20refactor:=20Enable=20File?= =?UTF-8?q?=20Search=20from=20Upload=20Option=20(#9425)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Chat/Input/Files/AttachFileMenu.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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: ,