mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
fix: use actual confidence threshold
This commit is contained in:
@@ -259,7 +259,7 @@ Your diff here
|
|||||||
const contextStr = prepareSearchString(hunk.changes)
|
const contextStr = prepareSearchString(hunk.changes)
|
||||||
const { index: matchPosition, confidence, strategy } = findBestMatch(contextStr, result, 0, this.confidenceThreshold)
|
const { index: matchPosition, confidence, strategy } = findBestMatch(contextStr, result, 0, this.confidenceThreshold)
|
||||||
|
|
||||||
if (confidence < 1.1) {
|
if (confidence < this.confidenceThreshold) {
|
||||||
console.log('Full hunk application failed, trying sub-hunks strategy')
|
console.log('Full hunk application failed, trying sub-hunks strategy')
|
||||||
// Try splitting the hunk into smaller hunks
|
// Try splitting the hunk into smaller hunks
|
||||||
const subHunks = this.splitHunk(hunk)
|
const subHunks = this.splitHunk(hunk)
|
||||||
|
|||||||
Reference in New Issue
Block a user