@@ -9,6 +9,7 @@ import OpenAI from "openai"
99import delay from "delay"
1010import pWaitFor from "p-wait-for"
1111import { serializeError } from "serialize-error"
12+ import { Package } from "../../shared/package"
1213
1314import {
1415 type TaskLike ,
@@ -2514,7 +2515,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
25142515 // we need to remove that message before retrying to avoid having two consecutive
25152516 // user messages (which would cause tool_result validation errors).
25162517 const toolProtocol = vscode . workspace
2517- . getConfiguration ( "roo-cline" )
2518+ . getConfiguration ( Package . name )
25182519 . get < ToolProtocol > ( "toolProtocol" , "xml" )
25192520 const isNativeProtocol = toolProtocol === TOOL_PROTOCOL . NATIVE
25202521
@@ -2695,12 +2696,13 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
26952696 {
26962697 maxConcurrentFileReads : maxConcurrentFileReads ?? 5 ,
26972698 todoListEnabled : apiConfiguration ?. todoListEnabled ?? true ,
2698- useAgentRules : vscode . workspace . getConfiguration ( "roo-cline" ) . get < boolean > ( "useAgentRules" ) ?? true ,
2699+ useAgentRules :
2700+ vscode . workspace . getConfiguration ( Package . name ) . get < boolean > ( "useAgentRules" ) ?? true ,
26992701 newTaskRequireTodos : vscode . workspace
2700- . getConfiguration ( "roo-cline" )
2702+ . getConfiguration ( Package . name )
27012703 . get < boolean > ( "newTaskRequireTodos" , false ) ,
27022704 toolProtocol : vscode . workspace
2703- . getConfiguration ( "roo-cline" )
2705+ . getConfiguration ( Package . name )
27042706 . get < ToolProtocol > ( "toolProtocol" , "xml" ) ,
27052707 } ,
27062708 undefined , // todoList
@@ -2935,7 +2937,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
29352937 // Determine if we should include native tools based on:
29362938 // 1. Tool protocol is set to NATIVE
29372939 // 2. Model supports native tools
2938- const toolProtocol = vscode . workspace . getConfiguration ( "roo-cline" ) . get < ToolProtocol > ( "toolProtocol" , "xml" )
2940+ const toolProtocol = vscode . workspace . getConfiguration ( Package . name ) . get < ToolProtocol > ( "toolProtocol" , "xml" )
29392941 const modelInfo = this . api . getModel ( ) . info
29402942 const shouldIncludeTools = toolProtocol === TOOL_PROTOCOL . NATIVE && ( modelInfo . supportsNativeTools ?? false )
29412943
0 commit comments