You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] /compact command does not compress - context increases instead #17557
The /compact command does not actually compress the context. Instead, the context token count increases after running /compact, indicating the command either fails silently or does nothing at all.
Evidence
Before /compact:
Context: 50,241 tokens (25%)
After /compact:
Context: 51,405 tokens (25%)
Change: +1,164 tokens (context INCREASED)
No visual feedback was shown in the TUI during compaction (no "compacting" status), and no compression actually occurred.
Related Issues
This appears to be related to or a more severe version of:
After further investigation, I want to clarify the distinction between two separate compression mechanisms:
Feature
Source
Status
compress tool
DCP Plugin (@tarquinen/opencode-dcp)
✅ Works correctly
/compact command
OpenCode Core
❌ Broken
Key Findings:
The compress tool I have access to comes from the Dynamic Context Pruning (DCP) plugin, evidenced by:
System tags named <dcp-message-id> and <dcp-system-reminder>
The plugin @tarquinen/opencode-dcp is installed
The DCP plugin's compress tool works correctly - I successfully used it to compress earlier conversation ranges (confirmed by compressed block count increasing)
OpenCode's built-in /compact command is the broken one - it shows no TUI feedback and doesn't actually compress the context
This means:
Users with the DCP plugin have a working agent-side compression mechanism
Users without the DCP plugin have NO working compression at all
The native /compact command needs to be fixed in OpenCode core
Recommendation:
The OpenCode team should investigate why the native /compact command doesn't trigger actual compression, while the DCP plugin's compress tool works as expected.
I'm encountering the same issue. I was also using the latest version of OpenCode v1.2.27 , use opencode-web the context compact command isn't responding , I've tried using GLM-5 and GPT-5.4 Nothing is working.
Activity
guyinwonder168 commentedon Mar 15, 2026
Update: DCP Plugin vs OpenCode Core Distinction
After further investigation, I want to clarify the distinction between two separate compression mechanisms:
compresstool@tarquinen/opencode-dcp)/compactcommandKey Findings:
The
compresstool I have access to comes from the Dynamic Context Pruning (DCP) plugin, evidenced by:<dcp-message-id>and<dcp-system-reminder>@tarquinen/opencode-dcpis installedThe DCP plugin's
compresstool works correctly - I successfully used it to compress earlier conversation ranges (confirmed by compressed block count increasing)OpenCode's built-in
/compactcommand is the broken one - it shows no TUI feedback and doesn't actually compress the contextThis means:
/compactcommand needs to be fixed in OpenCode coreRecommendation:
The OpenCode team should investigate why the native
/compactcommand doesn't trigger actual compression, while the DCP plugin'scompresstool works as expected.lumlase commentedon Mar 19, 2026
I'm encountering the same issue. I was also using the latest version of OpenCode v1.2.27 , use opencode-web the context
compactcommand isn't responding , I've tried using GLM-5 and GPT-5.4 Nothing is working.clousky2020 commentedon May 14, 2026
The issue still exists in version 1.14.50 and has not been fixed.
4riful commentedon May 18, 2026
i am using @tarquinen/opencode-dcp plugin its working fine for me thanks mate @guyinwonder168
privettoli commentedon Jun 25, 2026
Faced this with 1.17.10.
sanketblin-stone commentedon Jul 19, 2026
facing the same issue with opecode desktop app
github-actions commentedon Sep 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.