mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Make single file read only apply to xml tools (#9600)
This commit is contained in:
parent
0fe55b9403
commit
71e761e21b
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue