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.
More from coding & agent
- Vibe Coding a Data Pipeline Is Easy; Running It at Billions of Rows Is Not — Zachly · 2026-10-16
- How Claude Code Review works at GA: admin setup, auto reviews on every new PR — ClaudeDevs · 2026-10-16
- Anthropic offers eligible Claude Enterprise orgs at least $10,000 in Code Review credits — ClaudeDevs · 2026-10-16
- Anthropic makes Code Review generally available for Claude Team and Enterprise plans — ClaudeDevs · 2026-10-16
- Supabase CLI v2.119.0 Drops Docker, Gives Each Coding Agent Its Own Local Project — dshukertjr · 2026-10-16
- Musk amplifies user claim that Grok's computer use is fast enough to skip a Codex subscription — elonmusk · 2026-10-16