mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: reset user response flag on new ask messages to fix auto-approval (#5508)
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
parent
0e0da80f88
commit
58cacc3cf0
2 changed files with 7 additions and 0 deletions
5
.changeset/ninety-birds-appear.md
Normal file
5
.changeset/ninety-birds-appear.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Fix bug where auto-approval was intermittently failing
|
||||
|
|
@ -240,6 +240,8 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
if (lastMessage) {
|
||||
switch (lastMessage.type) {
|
||||
case "ask":
|
||||
// Reset user response flag when a new ask arrives to allow auto-approval
|
||||
userRespondedRef.current = false
|
||||
const isPartial = lastMessage.partial === true
|
||||
switch (lastMessage.ask) {
|
||||
case "api_req_failed":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue