diff --git a/crates/agent2/src/tools/read_file_tool.rs b/crates/agent2/src/tools/read_file_tool.rs index 5a5505c119..e771c26eca 100644 --- a/crates/agent2/src/tools/read_file_tool.rs +++ b/crates/agent2/src/tools/read_file_tool.rs @@ -247,7 +247,7 @@ impl AgentTool for ReadFileTool { if let Ok(LanguageModelToolResultContent::Text(text)) = &result { let markdown = MarkdownCodeBlock { tag: &input.path, - text: &*text, + text, } .to_string(); event_stream.update_fields(ToolCallUpdateFields {