Skip to content

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

@smithyyang

Description

@smithyyang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions