Skip to content

Commit 83a2800

Browse files
committed
Fix plan/act response prompt
1 parent 66d5a32 commit 83a2800

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/core/Cline.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)