How can I stop compression of my sessions? #2533

Closed
opened 2026-02-16 17:36:07 -05:00 by yindo · 3 comments
Owner

Originally created by @wreed4 on GitHub (Nov 3, 2025).

Question

The way my company has our AI providers set up, compression fails and immediately loses all context of my session. I'm not sure why, I'd be happy to help debug if instructed how. But as a short fix I'd really like to just disable conpression. it used to not be a problem because compression was always optional, but recently, it has become automatic and far more frequent. this is making opencode significantly less usable for me. any guidance would be very helpful. I can't find anything on the docs page in the config file.

Originally created by @wreed4 on GitHub (Nov 3, 2025). ### Question The way my company has our AI providers set up, compression fails and immediately loses all context of my session. I'm not sure why, I'd be happy to help debug if instructed how. But as a short fix I'd really like to just disable conpression. it used to not be a problem because compression was always optional, but recently, it has become automatic and far more frequent. this is making opencode significantly less usable for me. any guidance would be very helpful. I can't find anything on the docs page in the config file.
yindo closed this issue 2026-02-16 17:36:07 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3325: [FEATURE]: disable auto-compact option - This was a closed feature request asking for the same thing: ability to disable auto-compaction
  • #2945: Session automatically compacted, destroying the entire working context - Reports similar issues with auto-compaction causing loss of context/session state

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 3, 2025): This issue might be a duplicate of existing issues. Please check: - #3325: [FEATURE]: disable auto-compact option - This was a closed feature request asking for the same thing: ability to disable auto-compaction - #2945: Session automatically compacted, destroying the entire working context - Reports similar issues with auto-compaction causing loss of context/session state Feel free to ignore if none of these address your specific case.
Author
Owner

@wreed4 commented on GitHub (Nov 3, 2025):

Image
@wreed4 commented on GitHub (Nov 3, 2025): <img width="874" height="300" alt="Image" src="https://github.com/user-attachments/assets/8bf7ad4f-dc76-4dc6-93ed-721cbe45d717" />
Author
Owner

@wreed4 commented on GitHub (Nov 3, 2025):

ope.. thanks github bot. I did search for it, but didn't find it. thanks!

@wreed4 commented on GitHub (Nov 3, 2025): ope.. thanks github bot. I did search for it, but didn't find it. thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2533