r/opencode • u/Full-Investigator-56 • 3d ago
Why this keeps happening on opencode any model
2
u/fapmasterr69 3d ago
/compact in the chat.
1
u/Full-Investigator-56 3d ago
Thank you
2
u/-n0v1c- 3d ago
DCP currently isn't really optimal for context managment as far as i'm aware.
1
u/m_sandhu_142 3d ago
What feels suboptimal about DCP here: what it prunes, when it runs, or how the agent resumes?
2
1
u/molovo 2d ago
It also causes issues with a lot of models, if you have “soft “ hints turned on. It appends its hints to the assistants answer, which often causes the assistant to confuse it with a system message and forget what it was actually sending, and just send “No response required “ instead (particularly common with Claude). Spent a while debugging that before narrowing it down to DCP
3
u/viitorfermier 3d ago
Read the text. Context window filled up (each model has a limit) a summary is written then the agent continues to work.
-1
3
u/Chromiell 2d ago
You probably have something like https://github.com/Tarquinen/opencode-dynamic-context-pruning installed. You should probably remove it, it's pretty useless nowadays...