mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fix sending message when toggling plan/act mode
This commit is contained in:
parent
3873908efb
commit
796eac558c
1 changed files with 7 additions and 3 deletions
|
|
@ -2716,9 +2716,6 @@ export class Cline {
|
|||
this.isAwaitingPlanResponse = false
|
||||
|
||||
if (this.didRespondToPlanAskBySwitchingMode) {
|
||||
if (text) {
|
||||
await this.say("user_feedback", text ?? "", images)
|
||||
}
|
||||
pushToolResult(
|
||||
formatResponse.toolResult(
|
||||
`[The user has switched to ACT MODE, so you may now proceed with the task.]` +
|
||||
|
|
@ -2728,6 +2725,13 @@ export class Cline {
|
|||
images,
|
||||
),
|
||||
)
|
||||
} else {
|
||||
// if we didn't switch to ACT MODE, then we can just send the user_feedback message
|
||||
pushToolResult(formatResponse.toolResult(`<user_message>\n${text}\n</user_message>`, images))
|
||||
}
|
||||
|
||||
if (text || images) {
|
||||
await this.say("user_feedback", text ?? "", images)
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue