From 0573cdb93856eb5c1aca799d128fb63f813d7cab Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Tue, 25 Nov 2025 23:53:45 -0500 Subject: [PATCH] Make single file read only apply to xml tools --- src/core/assistant-message/presentAssistantMessage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/assistant-message/presentAssistantMessage.ts b/src/core/assistant-message/presentAssistantMessage.ts index e24f0e7843..7bccb056e0 100644 --- a/src/core/assistant-message/presentAssistantMessage.ts +++ b/src/core/assistant-message/presentAssistantMessage.ts @@ -808,8 +808,9 @@ export async function presentAssistantMessage(cline: Task) { break case "read_file": // Check if this model should use the simplified single-file read tool + // Only use simplified tool for XML protocol - native protocol works with standard tool const modelId = cline.api.getModel().id - if (shouldUseSingleFileRead(modelId)) { + if (shouldUseSingleFileRead(modelId) && toolProtocol !== TOOL_PROTOCOL.NATIVE) { await simpleReadFileTool( cline, block,