Skip to content

[Bug]: Compression triggers below minCompressionThreshold (system-level override bypasses configured threshold) #548

Open

Description

@YoungJurry

Description

The DCP plugin triggers compression even when the current context usage is well below the configured minCompressionThreshold.

Observed behavior:

  • DCP version: 3.1.9
  • minCompressionThreshold configured to 15%
  • Context usage was only ~4% (40.2K tokens)
  • Despite being well below the 15% threshold, compression still triggered

Steps to Reproduce

  1. Configure DCP with minCompressionThreshold of 15%
  2. Run a session until context reaches ~4% usage
  3. Observe that compression triggers anyway, ignoring the configured threshold

Expected Behavior

Compression should NOT trigger automatically when the current context usage percentage is below minCompressionThreshold. The threshold should be respected as a hard minimum.

Root Cause

The minCompressionThreshold check in DCP's compression logic is not correctly guarding against automatic compression when the current usage is below the configured percentage. The threshold comparison may be using the wrong value or evaluating incorrectly.

Related

Activity

  1. YoungJurry commented on May 24, 2026

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions