adjust tool call error message
Project CI / Repository checks (pull_request) Failing after 20s
Project CI / Frontend tests (pull_request) Failing after 20s
Project CI / Backend tests (pull_request) Failing after 20s
Project CI / Native shell tests (pull_request) Failing after 20s

This commit is contained in:
2026-07-22 10:52:38 +08:00
parent 6b496a4daa
commit 93c872907b
@@ -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) {