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
Session automatically compacted, destroying the entire working context #2945
Is this a normal behavior? The agent basically forgotten everything about the session.
It's a hassle to refresh the agent on the task at hand, let alone make it remember about every key detail about the session.
I just don't think compacting the session in the middle of build mode is ideal as well. It can cause the agent to go haywire since it starts to assume outrageous things.
Content hidden behind prompt #2736: Remove auto-compact (or at least don't default to having it on) - Discusses how auto-compact makes the agent forget critically important context
Enhance theme documentation with links #2707: Context summarization loses current working directory and project location - Shows how compaction causes loss of important context like working directory
Activity
github-actions commentedon Oct 3, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
arsham commentedon Oct 3, 2025
You can
/undothe compaction. I know it is not ideal but you get back to the previous state.fkukuck commentedon Oct 3, 2025
How can we set OPENCODE_DISABLE_AUTOCOMPACT in the
opencode.json?rekram1-node commentedon Oct 3, 2025
@fkukuck you just need to export
OPENCODE_DISABLE_AUTOCOMPACTfkukuck commentedon Oct 10, 2025
I've opened a PR to set this setting easier
#3078
amaxcz commentedon Jun 29, 2026
temporary! has changed model and got a problems: