You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consterrorMessage=`MCP tool [${mcpBlock.name}] was not executed because a tool has already been used in this message. Only one tool may be used per message.`
131
135
@@ -193,7 +197,10 @@ export async function presentAssistantMessage(cline: Task) {
193
197
}
194
198
195
199
hasToolResult=true
196
-
cline.didAlreadyUseTool=true
200
+
// Only set didAlreadyUseTool when parallel tool calling is disabled
// Ignore any content after a tool has already been used.
436
446
// For native tool calling, we must send a tool_result for every tool_use to avoid API errors
437
447
consterrorMessage=`Tool [${block.name}] was not executed because a tool has already been used in this message. Only one tool may be used per message. You must assess the first tool's result before proceeding to use the next tool.`
@@ -530,7 +540,10 @@ export async function presentAssistantMessage(cline: Task) {
530
540
}
531
541
532
542
hasToolResult=true
533
-
cline.didAlreadyUseTool=true
543
+
// Only set didAlreadyUseTool when parallel tool calling is disabled
Copy file name to clipboardExpand all lines: src/core/prompts/tools/native-tools/new_task.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
importtypeOpenAIfrom"openai"
2
2
3
-
constNEW_TASK_DESCRIPTION=`This will let you create a new task instance in the chosen mode using your provided message and initial todo list (if required).`
3
+
constNEW_TASK_DESCRIPTION=`Create a new task instance in the chosen mode using your provided message and initial todo list (if required).
4
+
5
+
CRITICAL: This tool MUST be called alone. Do NOT call this tool alongside other tools in the same message turn. If you need to gather information before delegating, use other tools in a separate turn first, then call new_task by itself in the next turn.`
4
6
5
7
constMODE_PARAMETER_DESCRIPTION=`Slug of the mode to begin the new task in (e.g., code, debug, architect)`
0 commit comments