From af2f55c29fb3a4b1810532c366f83cb1bf034b29 Mon Sep 17 00:00:00 2001 From: helloandyzhang <972997077@qq.com> Date: Tue, 26 May 2026 18:21:17 +0800 Subject: [PATCH] fix(frontend): apply default context template when switching to quick-answer mode Start new agents with an empty context_template so mode-switch logic can populate the system default instead of keeping the smart-reasoning placeholder. Co-authored-by: Cursor --- frontend/src/views/agent/AgentEditorModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/agent/AgentEditorModal.vue b/frontend/src/views/agent/AgentEditorModal.vue index e8358aa7..cd55ddb0 100644 --- a/frontend/src/views/agent/AgentEditorModal.vue +++ b/frontend/src/views/agent/AgentEditorModal.vue @@ -1666,7 +1666,7 @@ const defaultFormData = { // 基础设置 agent_mode: 'smart-reasoning' as 'quick-answer' | 'smart-reasoning', system_prompt: '', - context_template: '{{query}}', + context_template: '', // 模型设置 model_id: '', rerank_model_id: '',