From 1cb8b989d146da60ce7a6ad9ef24acbbeb1e6c06 Mon Sep 17 00:00:00 2001 From: jaberjaber23 Date: Sun, 15 Mar 2026 16:59:21 +0300 Subject: [PATCH] community fixes --- crates/openfang-runtime/src/agent_loop.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/openfang-runtime/src/agent_loop.rs b/crates/openfang-runtime/src/agent_loop.rs index 47343510..2a6f4dfe 100644 --- a/crates/openfang-runtime/src/agent_loop.rs +++ b/crates/openfang-runtime/src/agent_loop.rs @@ -68,6 +68,7 @@ fn append_tool_error_guidance(tool_result_blocks: &mut Vec) { if has_tool_error { tool_result_blocks.push(ContentBlock::Text { text: TOOL_ERROR_GUIDANCE.to_string(), + provider_metadata: None, }); } } @@ -2897,13 +2898,14 @@ mod tests { None, // hooks None, // context_window_tokens None, // process_manager + None, // user_content_blocks ) .await .expect("Loop should complete without error"); let guidance_seen = session.messages.iter().any(|msg| match &msg.content { MessageContent::Blocks(blocks) => blocks.iter().any(|block| { - matches!(block, ContentBlock::Text { text } if text == TOOL_ERROR_GUIDANCE) + matches!(block, ContentBlock::Text { text, .. } if text == TOOL_ERROR_GUIDANCE) }), _ => false, });