mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Fix mistake reset logic
This commit is contained in:
@@ -1444,10 +1444,7 @@ ${this.customInstructions.trim()}
|
|||||||
"mistake_limit_reached",
|
"mistake_limit_reached",
|
||||||
`This may indicate a failure in his thought process or inability to use a tool properly, which can be alleviated with some user direction (e.g. "let's try breaking this large file down into smaller files").`
|
`This may indicate a failure in his thought process or inability to use a tool properly, which can be alleviated with some user direction (e.g. "let's try breaking this large file down into smaller files").`
|
||||||
)
|
)
|
||||||
if (response === "yesButtonTapped") {
|
if (response === "messageResponse") {
|
||||||
// proceed anyways
|
|
||||||
this.consecutiveMistakeCount = 0
|
|
||||||
} else {
|
|
||||||
userContent.push(
|
userContent.push(
|
||||||
...[
|
...[
|
||||||
{
|
{
|
||||||
@@ -1458,6 +1455,7 @@ ${this.customInstructions.trim()}
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
this.consecutiveMistakeCount = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.addToApiConversationHistory({ role: "user", content: userContent })
|
await this.addToApiConversationHistory({ role: "user", content: userContent })
|
||||||
|
|||||||
Reference in New Issue
Block a user