Skip to content

[FEATURE]: Cancel auto compaction #19435

Closed

Description

@Kangaroux

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Usecase: I'm using Qwen3.5:27B locally, it's very slow and compaction can take 10+ minutes.

I hit the context limit and opencode started auto compacting. I interrupted it, increased the context limit in llamacpp, and then sent it new instructions. However, it insisted on compacting, even after forking.

As a workaround I switched to a faster model just to run the compaction, then back to 27B to continue working.

Interrupting the auto compaction should prevent it from running again. Otherwise it quickly goes from being convenient to inconvenient.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 27, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 27, 2026
  3. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

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

    If your request is specifically about "interrupt should permanently suppress the next compaction attempt," it may be distinct enough to stand on its own. Otherwise, consider whether one of the above captures your need.

  4. CruelAddict commented on Mar 29, 2026

    @CruelAddict

    Yes please. It's not just auto compaction. I've accidentally hit ctrl+x c and it was also irreversible :(

  5. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. Kangaroux commented on Jun 9, 2026

    @Kangaroux
    Author

    This looks to be fixed. You can interrupt compacting and then undo, which now undoes the compacting step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions