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

This commit is contained in:
Matt Rubens 2025-11-26 00:08:00 -05:00 committed by GitHub
parent 0fe55b9403
commit 71e761e21b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,