mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Fix mistake reset logic
This commit is contained in:
parent
1484628fcf
commit
8222808871
1 changed files with 2 additions and 4 deletions
|
|
@ -1444,10 +1444,7 @@ ${this.customInstructions.trim()}
|
|||
"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").`
|
||||
)
|
||||
if (response === "yesButtonTapped") {
|
||||
// proceed anyways
|
||||
this.consecutiveMistakeCount = 0
|
||||
} else {
|
||||
if (response === "messageResponse") {
|
||||
userContent.push(
|
||||
...[
|
||||
{
|
||||
|
|
@ -1458,6 +1455,7 @@ ${this.customInstructions.trim()}
|
|||
]
|
||||
)
|
||||
}
|
||||
this.consecutiveMistakeCount = 0
|
||||
}
|
||||
|
||||
await this.addToApiConversationHistory({ role: "user", content: userContent })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue