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 <task>/<feedback> gating and avoid post-condense refocus

This commit is contained in:
Hannes Rudolph 2025-11-11 13:18:14 -07:00
parent e709135b35
commit f53d8c2347
2 changed files with 6 additions and 6 deletions

View file

@ -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:` })

View file

@ -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)]