Skip to content

config not work(feature compact) #9349

Closed

Description

@DevSissi

Description

Image I have configured the compaction parameters in the config, but OpenCode still automatically triggers compaction when the context reaches around 80%.

Auto-compaction has never worked properly on my end. Once the automatic compaction is triggered, the conversation can no longer continue.

Plugins

oh my opencode

OpenCode version

1.1.25

Steps to reproduce

use claude model
talk unitl context limit to 80%
opencode will auto compact the session

Screenshot and/or share link

Image Image

Operating System

Win11

Terminal

Win Terminal

Activity

  1. github-actions commented on Jan 19, 2026

    @github-actions
    Contributor

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

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

  2. DevSissi commented on Jan 20, 2026

    @DevSissi
    Author

    Is there a way to fix it?

  3. juanibiapina commented on Jan 20, 2026

    @juanibiapina

    I have the same bug. Disabling compaction in the config doesn't disable it.

  4. cravenceiling commented on Jan 20, 2026

    @cravenceiling
    Contributor

    Mm... It might be an issue with oh-my-opencode? @juanibiapina are you also using OMO?

    There's a related issue: code-yeongyu/oh-my-openagent#555 (comment)

    ...
    The REAL problem: oh-my-opencode implements its own comprehensive DCP (Dynamic Context Pruning) and compaction system that conflicts with external opencode-elf and opencode-dcp plugins:

    Oh-my-opencode's built-in features (all enabled by default):

    preemptive-compaction - Proactive compaction at 85% context window
    anthropic-context-window-limit-recovery - Auto-compaction on token limits
    compaction-context-injector - Context preservation during compaction
    context-window-monitor - Real-time context usage monitoring
    Optional DCP via experimental.dcp_for_compaction
    ...

  5. lee-b commented on Jan 20, 2026

    @lee-b

    Mm... It might be an issue with oh-my-opencode? @juanibiapina are you also using OMO?

    There's a related issue: code-yeongyu/oh-my-opencode#555 (comment)

    ...
    The REAL problem: oh-my-opencode implements its own comprehensive DCP (Dynamic Context Pruning) and compaction system that conflicts with external opencode-elf and opencode-dcp plugins:
    Oh-my-opencode's built-in features (all enabled by default):
    preemptive-compaction - Proactive compaction at 85% context window
    anthropic-context-window-limit-recovery - Auto-compaction on token limits
    compaction-context-injector - Context preservation during compaction
    context-window-monitor - Real-time context usage monitoring
    Optional DCP via experimental.dcp_for_compaction
    ...

    No, seeing it here too, with none of those addons.

  6. juanibiapina commented on Jan 20, 2026

    @juanibiapina

    No I don't use that.

  7. cravenceiling commented on Jan 20, 2026

    @cravenceiling
    Contributor

    What config and model are you using? Does the output of opencode debug config contain "compaction": { "auto": false}?

  8. juanibiapina commented on Jan 20, 2026

    @juanibiapina

    Ok so now it worked. Sorry I don't know what I did. It's possible I was using a version that was open for a few days, before I set the config.

  9. rekram1-node commented on Jan 20, 2026

    @rekram1-node
    Contributor

    What provider is being used here because I havent seen this error before I suspect it being a plugin

  10. DevSissi commented on Jan 25, 2026

    @DevSissi
    Author

    i using the omo,but i also cant find the source of problem

  11. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions