From e709135b3506000b869d964f615b27e8b59e1a9b Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Tue, 11 Nov 2025 12:51:43 -0700 Subject: [PATCH] fix(condense-focus): rewrite post-completion feedback cue to avoid refocusing on initial task\n\n- Replace generic cue with directive to continue from current context and not re-answer original request\n- Supports PR #8611 goal to remove XML gating and prevent focus drift after condense --- src/core/tools/attemptCompletionTool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tools/attemptCompletionTool.ts b/src/core/tools/attemptCompletionTool.ts index 9657e555a4..47a6f2cb15 100644 --- a/src/core/tools/attemptCompletionTool.ts +++ b/src/core/tools/attemptCompletionTool.ts @@ -126,7 +126,7 @@ export async function attemptCompletionTool( const feedbackSuffix = text && text.trim().length > 0 ? `\n${text}` : "" toolResults.push({ type: "text", - text: `The user has provided feedback on the results. Consider their input to continue the task, and then attempt completion again.${feedbackSuffix}`, + 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}`, }) toolResults.push(...formatResponse.imageBlocks(images))