From b271da3ca8a21612216e589f93269f1f14738ebc Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 23 Jan 2026 22:09:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(context):=20=20=E4=BF=AE=E5=A4=8D=20deep=5F?= =?UTF-8?q?agent=20=E7=9A=84=20Prompt=20=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E8=A7=A3=E6=9E=90=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agents/deep_agent/context.py | 3 ++- web/src/components/AgentConfigSidebar.vue | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/agents/deep_agent/context.py b/src/agents/deep_agent/context.py index 34e957cf..b496dfcb 100644 --- a/src/agents/deep_agent/context.py +++ b/src/agents/deep_agent/context.py @@ -99,10 +99,11 @@ class DeepContext(BaseContext): """ # 深度分析专用的系统提示词 - system_prompt: str = field( + system_prompt: Annotated[str, {"__template_metadata__": {"kind": "prompt"}}] = field( default=DEEP_PROMPT, metadata={"name": "系统提示词", "description": "Deep智能体的角色和行为指导"}, ) + subagents_model: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field( default="siliconflow/deepseek-ai/DeepSeek-V3.2", metadata={ diff --git a/web/src/components/AgentConfigSidebar.vue b/web/src/components/AgentConfigSidebar.vue index 1ed13cea..2ae7fbe6 100644 --- a/web/src/components/AgentConfigSidebar.vue +++ b/web/src/components/AgentConfigSidebar.vue @@ -879,7 +879,8 @@ const confirmDeleteConfig = async () => { resize: vertical; background: var(--gray-50); border: 1px solid var(--gray-200); - padding: 8px 12px; + padding: 6px 10px; + font-size: 12px; &:focus { outline: none; @@ -911,8 +912,9 @@ const confirmDeleteConfig = async () => { word-break: break-word; line-height: 1.5; color: var(--gray-900); - font-size: 14px; - // min-height: 100px; + font-size: 12px; + max-height: 500px; + overflow: scroll; &.is-placeholder { color: var(--gray-400);