Skip to content

Commit 0573cdb

Browse files
committed
Make single file read only apply to xml tools
1 parent 099ea6d commit 0573cdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/assistant-message/presentAssistantMessage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,9 @@ export async function presentAssistantMessage(cline: Task) {
808808
break
809809
case "read_file":
810810
// Check if this model should use the simplified single-file read tool
811+
// Only use simplified tool for XML protocol - native protocol works with standard tool
811812
const modelId = cline.api.getModel().id
812-
if (shouldUseSingleFileRead(modelId)) {
813+
if (shouldUseSingleFileRead(modelId) && toolProtocol !== TOOL_PROTOCOL.NATIVE) {
813814
await simpleReadFileTool(
814815
cline,
815816
block,

0 commit comments

Comments
 (0)