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
Copy file name to clipboardExpand all lines: src/core/assistant-message/presentAssistantMessage.ts
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -715,17 +715,6 @@ export async function presentAssistantMessage(cline: Task) {
715
715
})
716
716
break
717
717
case"attempt_completion": {
718
-
// Prevent attempt_completion if any tool failed in the current assistant message (turn).
719
-
// This only applies to tools called within the same message, not across different turns.
720
-
// For example, this blocks: read_file (fails) + attempt_completion in same message
721
-
// But allows: read_file (fails) → user message → attempt_completion in next turn
722
-
if(cline.didToolFailInCurrentTurn){
723
-
consterrorMsg=`Cannot execute attempt_completion because a previous tool call failed in this turn. Please address the tool failure before attempting completion.`
0 commit comments