mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Interrupt stream if user provides feedback
This commit is contained in:
@@ -1754,6 +1754,13 @@ export class ClaudeDev {
|
|||||||
await abortStream("user_cancelled")
|
await abortStream("user_cancelled")
|
||||||
break // aborts the stream
|
break // aborts the stream
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.didRejectTool) {
|
||||||
|
// userContent has a tool rejection, so interrupt the assistant's response to present the user's feedback
|
||||||
|
assistantMessage += "\n\n[Response interrupted by user feedback]"
|
||||||
|
this.userMessageContentReady = true
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.abortTask() // if the stream failed, there's various states the task could be in (i.e. could have streamed some tools the user may have executed), so we just resort to replicating a cancel task
|
this.abortTask() // if the stream failed, there's various states the task could be in (i.e. could have streamed some tools the user may have executed), so we just resort to replicating a cancel task
|
||||||
|
|||||||
Reference in New Issue
Block a user