mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
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:
parent
e709135b35
commit
f53d8c2347
2 changed files with 6 additions and 6 deletions
|
|
@ -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:` })
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue