Skip to content

fix(core): disable tool selection in compaction summaries - #53266

Open
Dante-dan wants to merge 1 commit into
anomalyco:devfrom
Dante-dan:compaction-tool-choice
Open

Dante-dan wants to merge 1 commit into
anomalyco:devfrom
Dante-dan:compaction-tool-choice

Conversation

@Dante-dan

Copy link
Copy Markdown

Issue for this PR

Closes #53242

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Compaction asks for a text summary, but its request still allows tool selection. Set tool choice to none for summary requests and their reminder retry so a tool-capable model cannot answer with a tool call instead. Keep tool definitions and history intact for provider serialization; native compaction is unchanged.

How did you verify your code works?

The three existing core compaction, native-compaction and transport test files pass (20 tests), as does the core typecheck and git diff --check. The reporter’s Arch Linux llama.cpp/Qwen3 setup was not exercised locally.

Screenshots / recordings

Not applicable.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:32

This branch has not been deployed

No deployments
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.

Compaction produced no summary when the conversation ends on a tool result

1 participant