diff --git a/src/core/tools/attemptCompletionTool.ts b/src/core/tools/attemptCompletionTool.ts index 47a6f2cb15..1a99e24dc6 100644 --- a/src/core/tools/attemptCompletionTool.ts +++ b/src/core/tools/attemptCompletionTool.ts @@ -123,11 +123,10 @@ export async function attemptCompletionTool( await cline.say("user_feedback", text ?? "", images) const toolResults: (Anthropic.TextBlockParam | Anthropic.ImageBlockParam)[] = [] - const feedbackSuffix = text && text.trim().length > 0 ? `\n${text}` : "" - toolResults.push({ - type: "text", - text: `User feedback received. Continue from the current context—do not re-answer the original request. Apply the feedback and proceed to the next step, then attempt completion again.${feedbackSuffix}`, - }) + // Push only the raw feedback content (no repetitive blurb) + if (text && text.trim().length > 0) { + toolResults.push({ type: "text", text }) + } toolResults.push(...formatResponse.imageBlocks(images)) cline.userMessageContent.push({ type: "text", text: `${toolDescription()} Result:` }) diff --git a/src/core/tools/executeCommandTool.ts b/src/core/tools/executeCommandTool.ts index 59908d22bf..d82dbac7ad 100644 --- a/src/core/tools/executeCommandTool.ts +++ b/src/core/tools/executeCommandTool.ts @@ -316,7 +316,8 @@ export async function executeCommand( result.length > 0 ? `Here's the output so far:\n${result}\n` : "\n", ] if (text && text.trim().length > 0) { - parts.push(`The user provided the following feedback:\n${text}`) + // Append feedback verbatim without prefacing blurb + parts.push(text) } return [true, formatResponse.toolResult(parts.join("\n"), images)]