From f53d8c2347172791ab1d18bf035936832726e628 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Tue, 11 Nov 2025 13:18:14 -0700 Subject: [PATCH] fix(condense-focus): remove redundant feedback blurb; emit raw user feedback only\n\n- Stop emitting any meta guidance after attempt_completion; push only user text/images\n- execute_command: drop "The user provided the following feedback:" prefix\n- Aligns with PR #8611 scope to remove / gating and avoid post-condense refocus --- src/core/tools/attemptCompletionTool.ts | 9 ++++----- src/core/tools/executeCommandTool.ts | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) 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)]