Fix Opencode early compaction by defining full context parameters

GoodTip7897 · reddit · 2026-08-21

Users reported Opencode triggering compaction too early (at 30k tokens remaining). The author shared a fix, explaining the issue stems from leaving input, context, and output blank in the compaction object. They must be set to the model's full context window. A full opencode. config for Qwen 3.8 27B was provided.

Original post →

More from coding & agent

coding & agent channel →