Unable to rewind to last message before compaction #7619

Open
opened 2026-02-16 18:07:44 -05:00 by yindo · 1 comment
Owner

Originally created by @skerit on GitHub (Jan 26, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I forgot to set the OPENCODE_DISABLE_AUTOCOMPACT=1 environment variable, and during a session OpenCode started to compact.

I managed to interrupt it, but now I'm unable to go back to before this compaction.

When I do /timeline, all I'm able to go back to is my last previous message.

Why isn't the auto-compaction also an entry in this?

Plugins

No response

OpenCode version

1.1.34

Steps to reproduce

  1. Have a session reach the 85% limit
  2. Once it autocompacts, interrupt it
  3. Try to restart Opencode with the proper env variable & --continue
  4. It'll still be in the "Compaction" message, unable to go back

Screenshot and/or share link

No response

Operating System

Linux

Terminal

Wezterm

Originally created by @skerit on GitHub (Jan 26, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I forgot to set the `OPENCODE_DISABLE_AUTOCOMPACT=1` environment variable, and during a session OpenCode started to compact. I managed to interrupt it, but now I'm unable to go back to _before_ this compaction. When I do `/timeline`, all I'm able to go back to is my last previous message. Why isn't the auto-compaction also an entry in this? ### Plugins _No response_ ### OpenCode version 1.1.34 ### Steps to reproduce 1. Have a session reach the 85% limit 2. Once it autocompacts, interrupt it 3. Try to restart Opencode with the proper env variable & `--continue` 4. It'll still be in the "Compaction" message, unable to go back ### Screenshot and/or share link _No response_ ### Operating System Linux ### Terminal Wezterm
yindo added the bug label 2026-02-16 18:07:44 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 26, 2026):

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

  • #10650: GitHub Copilot GPT-5 throwing 'invalid_request_body' on requests after compaction
  • #10634: Compaction overflow check doesn't account for large tool outputs until the next step, causing context overflow
  • #10385: Compaction bug - prompt token limit
  • #10496: The /compact command does not work
  • #8349: Model selection is 'lost' on continuation and Agent selection is 'lost' on compaction
  • #5934: Session Todo-list is forgotten after compaction
  • #6535: Auto-compaction causes the subagent to lose its original context, possibly the system prompt as well
  • #8394: [BUG] Compactation Fails Agent forgets everything
  • #6068: [BUG]: Auto compaction not triggering reliably with Anthropic models

There are also several related issues around timeline/rewind functionality (#7794, #3071) and compaction configuration (#3325).

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

@github-actions[bot] commented on GitHub (Jan 26, 2026): This issue might be a duplicate of existing issues. Please check: - #10650: GitHub Copilot GPT-5 throwing 'invalid_request_body' on requests after compaction - #10634: Compaction overflow check doesn't account for large tool outputs until the next step, causing context overflow - #10385: Compaction bug - prompt token limit - #10496: The /compact command does not work - #8349: Model selection is 'lost' on continuation and Agent selection is 'lost' on compaction - #5934: Session Todo-list is forgotten after compaction - #6535: Auto-compaction causes the subagent to lose its original context, possibly the system prompt as well - #8394: [BUG] Compactation Fails Agent forgets everything - #6068: [BUG]: Auto compaction not triggering reliably with Anthropic models There are also several related issues around timeline/rewind functionality (#7794, #3071) and compaction configuration (#3325). Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7619