Propagate tool errors to code mode (#15075)

Clean up error flow to push the FunctionCallError all the way up to
dispatcher and allow code mode to surface as exception.
This commit is contained in:
pakrym-oai
2026-03-18 13:57:55 -07:00
committed by GitHub
parent 392347d436
commit 88e5382fc4
10 changed files with 153 additions and 138 deletions
+4 -3
View File
@@ -1607,8 +1607,8 @@ impl JsReplManager {
let tracker = Arc::clone(&exec.tracker);
match router
.dispatch_tool_call(
session.clone(),
.dispatch_tool_call_with_code_mode_result(
session,
turn,
tracker,
call,
@@ -1616,7 +1616,8 @@ impl JsReplManager {
)
.await
{
Ok(response) => {
Ok(result) => {
let response = result.into_response();
let summary = Self::summarize_tool_call_response(&response);
match serde_json::to_value(response) {
Ok(value) => {