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

This commit is contained in:
Hannes Rudolph 2025-11-11 12:51:43 -07:00
parent b899f29557
commit e709135b35

View file

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