Skip to content

fix: clarify compaction summary output target#766

Merged
kermanx merged 1 commit into
mainfrom
xtr/compaction-final-answer-instruction
Jun 15, 2026
Merged

fix: clarify compaction summary output target#766
kermanx merged 1 commit into
mainfrom
xtr/compaction-final-answer-instruction

Conversation

@kermanx

@kermanx kermanx commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue.

Problem

The compaction instruction template did not explicitly say that the required summary belongs in the final answer rather than thinking, which made the output target ambiguous.

What changed

Added a final instruction comment requiring the summary to match the template in the final answer, not in thinking. Added a patch changeset for the agent-core and CLI packages because the internal instruction change is bundled into the CLI.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • No tests were added because this is an instruction-only markdown change; ran git diff --check.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b2e140f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@moonshot-ai/agent-core Patch
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 15, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@b2e140f
npx https://pkg.pr.new/@moonshot-ai/kimi-code@b2e140f

commit: b2e140f

@kermanx kermanx merged commit 9cef896 into main Jun 15, 2026
8 of 9 checks passed
@kermanx kermanx deleted the xtr/compaction-final-answer-instruction branch June 15, 2026 04:06
@github-actions github-actions Bot mentioned this pull request Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant