From 33faedc1b19c5b34a866cb904b8461e92443a58f Mon Sep 17 00:00:00 2001 From: goulustis Date: Thu, 12 Mar 2026 11:36:11 +0800 Subject: [PATCH] enable comma in tool list --- frontend/src/App.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 63eb08a..7950b47 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -36,6 +36,7 @@ type EditableAgent = { pipelineId: string; promptSetId?: string; toolKeys: string[]; + toolKeysInput: string; prompts: Record; apiKey: string; llmName: string; @@ -459,6 +460,7 @@ function toEditable( pipelineId: config.pipeline_id, promptSetId: config.prompt_set_id, toolKeys: config.tool_keys || [], + toolKeysInput: (config.tool_keys || []).join(", "), prompts: config.prompt_dict || {}, apiKey: config.api_key || DEFAULT_API_KEY, llmName: DEFAULT_LLM_NAME, @@ -750,6 +752,7 @@ export default function App() { graphId, prompts: { ...defaults.prompt_dict }, toolKeys: defaults.tool_keys || [], + toolKeysInput: (defaults.tool_keys || []).join(", "), actBackend: graphId === "deepagent" ? prev.actBackend || DEFAULT_DEEPAGENT_ACT_BACKEND @@ -1366,8 +1369,12 @@ export default function App() {