From 93c872907b43a24eaf8ae83a72b84156dcfff2f1 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 10:52:38 +0800 Subject: [PATCH] adjust tool call error message --- server-rs/crates/api-server/src/editor_agent/reconcile.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server-rs/crates/api-server/src/editor_agent/reconcile.rs b/server-rs/crates/api-server/src/editor_agent/reconcile.rs index 4b48bd1c0..8351b2429 100644 --- a/server-rs/crates/api-server/src/editor_agent/reconcile.rs +++ b/server-rs/crates/api-server/src/editor_agent/reconcile.rs @@ -158,7 +158,11 @@ fn mark_job_failed(message: &mut EditorAgentMessage, error: String) { .expect("reconcile candidate contains a tool call"); tool_call.error = Some(error.clone()); tool_call.status = EditorAgentToolCallStatus::Failed; - message.text = format!("[tool_call:{}] output: {error}", tool_call.tool_name); + let tool_name = tool_call.tool_name.clone(); + let args = tool_call.args.to_string(); + message.text = format!( + "[tool_call:{tool_name}] args:{args} failed because: {error} if this is upstream/temp error, please retry it if user asked for", + ); } fn mark_fatal_result_reconcile_failed(message: &mut EditorAgentMessage, error: String) {