Description
Auto-compaction often fails with "Compaction produced no summary" when using a models with tooling. I can only reproduce when the conversation ends on a tool result.
The summary request still includes the session's tools. The model then writes its summary in reasoning_content, makes a tool call, and returns empty content. OpenCode only reads content, so the summary is lost.
Plugins
None
OpenCode version
v2.0.22
Steps to reproduce
- Configure a provider pointing at llama.cpp using a Qwen3-based model. Use the
reasoning_content config.
- Start a session that runs many tool calls in a row (e.g. Playwright MCP) until it reaches the compaction threshold.
- Auto-compaction fires while the last message is a tool result.
- You get Compaction produced no summary.
Screenshot and/or share link
No response
Operating System
Arch Linux 7.2.2
Terminal
Gnome Terminal
Description
Auto-compaction often fails with "Compaction produced no summary" when using a models with tooling. I can only reproduce when the conversation ends on a tool result.
The summary request still includes the session's tools. The model then writes its summary in reasoning_content, makes a tool call, and returns empty content. OpenCode only reads content, so the summary is lost.
Plugins
None
OpenCode version
v2.0.22
Steps to reproduce
reasoning_contentconfig.Screenshot and/or share link
No response
Operating System
Arch Linux 7.2.2
Terminal
Gnome Terminal