Description
When using Opus 4.7 through Copilot (have not tested through other vendors), opencode after a recent update will consistently trigger compaction twice. If i use e.g. GPT 5.5, then swap, it the token usage might suddenly jump from 100K to above 200K, then it does a double compaction. This behaviour was not present just a few days ago. Seems like a bug with how tokens get counted
Plugins
None
OpenCode version
1.14.40
Steps to reproduce
- Use Opus 4.7 and go until compaction triggers
- See it compact twice right after each other before continueing
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
When using Opus 4.7 through Copilot (have not tested through other vendors), opencode after a recent update will consistently trigger compaction twice. If i use e.g. GPT 5.5, then swap, it the token usage might suddenly jump from 100K to above 200K, then it does a double compaction. This behaviour was not present just a few days ago. Seems like a bug with how tokens get counted
Plugins
None
OpenCode version
1.14.40
Steps to reproduce
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response