From 511dd98ed51fa8cc90cf78d9d1d3a701b7ce82d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 22 Jul 2026 11:26:57 +0800 Subject: [PATCH] fix: editor agent adjust tool call to tip user to use the confirm button --- server-rs/crates/api-server/src/editor_agent/api.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server-rs/crates/api-server/src/editor_agent/api.rs b/server-rs/crates/api-server/src/editor_agent/api.rs index 32ad7de44..3e075a3bb 100644 --- a/server-rs/crates/api-server/src/editor_agent/api.rs +++ b/server-rs/crates/api-server/src/editor_agent/api.rs @@ -629,6 +629,8 @@ fn editor_agent_system_prompt() -> &'static str { * image_id str format is like: sha256:* * when user referenced/uploaded image, a system message will notify you the image id(s). YOU MUST USE THESE IMAGE IDs(or more from former context) IN YOUR TOOL CALLS.(or why user upload them?) +* to confirm a pending tool call, user should click a confirm button in their UI, instead of tell you "ok"/"confirm". + If in that case, you should tip the user to use the confirm button, instead of repeat that pending tool call. * 用户所说的 规范图/参考图/生成的图/... 没有本质区别,all can be some image_id * 实际生成工具由后端按模型定价扣泥点, 不能承诺免费生成