File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -2716,19 +2716,20 @@ export class Cline {
27162716 this . isAwaitingPlanResponse = false
27172717
27182718 if ( this . didRespondToPlanAskBySwitchingMode ) {
2719+ if ( text ) {
2720+ await this . say ( "user_feedback" , text ?? "" , images )
2721+ }
27192722 pushToolResult (
27202723 formatResponse . toolResult (
2721- `[The user has switched to ACT MODE, so you may now proceed with the task.]` ,
2724+ `[The user has switched to ACT MODE, so you may now proceed with the task.]` +
2725+ ( text
2726+ ? `\n\nThe user also provided the following message when switching to ACT MODE:\n<user_message>\n${ text } \n</user_message>`
2727+ : "" ) ,
27222728 images ,
27232729 ) ,
27242730 )
27252731 }
27262732
2727- if ( text ) {
2728- await this . say ( "user_feedback" , text ?? "" , images )
2729- pushToolResult ( formatResponse . toolResult ( `<user_message>\n${ text } \n</user_message>` , images ) )
2730- }
2731-
27322733 //
27332734 break
27342735 }
You can’t perform that action at this time.
0 commit comments