From 114dcd0187efb19ef225fadd3f423bcd74022220 Mon Sep 17 00:00:00 2001 From: yeyan1996 <1996yeyan@gmail.com> Date: Fri, 8 Aug 2025 18:52:01 -0700 Subject: [PATCH] fux: add agent_id option to ChatInput onSubmit method --- frontend/src/components/thread/chat-input/chat-input.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/thread/chat-input/chat-input.tsx b/frontend/src/components/thread/chat-input/chat-input.tsx index c97fc359..92dce0f6 100644 --- a/frontend/src/components/thread/chat-input/chat-input.tsx +++ b/frontend/src/components/thread/chat-input/chat-input.tsx @@ -38,7 +38,11 @@ export interface ChatInputHandles { export interface ChatInputProps { onSubmit: ( message: string, - options?: { model_name?: string; enable_thinking?: boolean }, + options?: { + model_name?: string; + enable_thinking?: boolean; + agent_id?: string; + }, ) => void; placeholder?: string; loading?: boolean; @@ -286,6 +290,7 @@ export const ChatInput = forwardRef( posthog.capture("task_prompt_submitted", { message }); onSubmit(message, { + agent_id: selectedAgentId, model_name: baseModelName, enable_thinking: thinkingEnabled, });