Skip to content

Commit 916875d

Browse files
committed
fix: separate tool repetition limit from consecutive mistake limit
The ToolRepetitionDetector was incorrectly using the consecutiveMistakeLimit, causing the 'Roo is having trouble' dialog to appear for tool repetitions. Tool repetition detection should remain at its default limit of 3, independent of the consecutive mistake limit setting.
1 parent 5e28a10 commit 916875d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/task/Task.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,7 @@ export class Task extends EventEmitter<ClineEvents> {
290290
})
291291
}
292292

293-
this.toolRepetitionDetector = new ToolRepetitionDetector(
294-
this.consecutiveMistakeLimit === Infinity ? Number.MAX_SAFE_INTEGER : this.consecutiveMistakeLimit,
295-
)
293+
this.toolRepetitionDetector = new ToolRepetitionDetector(3)
296294

297295
onCreated?.(this)
298296

0 commit comments

Comments
 (0)