Skip to content

Commit cca4346

Browse files
authored
dont log tool call result errors as error level (warpdotdev#9495)
1 parent 157f358 commit cca4346

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/ai/blocklist/controller.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,9 +2802,8 @@ fn input_for_query(
28022802
}
28032803
}
28042804

2805-
/// Validates that tool call results have corresponding tool calls in the task context.
2806-
/// Logs an error if a tool call result is found without a corresponding tool call,
2807-
/// or if a tool call result is in a different task than the tool call use.
2805+
/// Validates that tool call results have corresponding tool calls in the task context, otherwise
2806+
/// logs a warning.
28082807
fn validate_tool_call_results<'a>(
28092808
inputs: impl Iterator<Item = &'a AIAgentInput>,
28102809
tasks: &[Task],
@@ -2831,8 +2830,9 @@ fn validate_tool_call_results<'a>(
28312830
.unwrap_or("None");
28322831

28332832
if !tool_call_to_task_map.contains_key(&action_id_str) {
2834-
log::error!(
2835-
"Found tool call result with ID '{action_id_str}' but no corresponding tool call in task context. Server conversation ID: '{server_conversation_id}'"
2833+
log::warn!(
2834+
"Found tool call result with ID '{action_id_str}' but no corresponding tool \
2835+
call in task context. Server conversation ID: '{server_conversation_id}'"
28362836
);
28372837
}
28382838
}

0 commit comments

Comments
 (0)