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) {