Explorar el Código

Make single file read only apply to xml tools (#9600)

Matt Rubens hace 2 meses
padre
commit
71e761e21b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/core/assistant-message/presentAssistantMessage.ts

+ 2 - 1
src/core/assistant-message/presentAssistantMessage.ts

@@ -808,8 +808,9 @@ export async function presentAssistantMessage(cline: Task) {
 					break
 					break
 				case "read_file":
 				case "read_file":
 					// Check if this model should use the simplified single-file read tool
 					// 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
 					const modelId = cline.api.getModel().id
-					if (shouldUseSingleFileRead(modelId)) {
+					if (shouldUseSingleFileRead(modelId) && toolProtocol !== TOOL_PROTOCOL.NATIVE) {
 						await simpleReadFileTool(
 						await simpleReadFileTool(
 							cline,
 							cline,
 							block,
 							block,