test(compression): behavioral + config wiring coverage for threshold_tokens
Follow-up for salvaged #24279: - cli-config.yaml.example: document compression.threshold_tokens (commented-out, default null = disabled) - contributors/emails: map maly.dan@gmail.com -> DanielMaly - tests: should_compress() fires at the absolute cap below the pct threshold (first-fires-wins); DEFAULT_CONFIG ships None and 0/None are behavior-neutral incl. across update_model(); the small-context pct floor is unaffected by the cap and re-derives correctly on model switch
This commit is contained in:
@@ -424,6 +424,15 @@ compression:
|
||||
# "claude-sonnet": 0.35
|
||||
# "gpt-5": 0.30
|
||||
|
||||
# Optional absolute token cap for the compression trigger (default: null = disabled).
|
||||
# When set, compression fires at the LOWER of the ratio-based threshold and this
|
||||
# absolute token count — first-fires-wins. It never fires later than this count
|
||||
# regardless of which model is active (useful when switching between models with
|
||||
# very different context windows). Clamped to the model's context length at
|
||||
# apply-time, so a cap above the window is a no-op (ratio-based threshold wins).
|
||||
# Survives model switches and fallback activations.
|
||||
# threshold_tokens: 200000
|
||||
|
||||
# Existing Codex gpt-5.5 behavior: raise Hermes' compaction trigger to 85%
|
||||
# for the ChatGPT Codex OAuth route. Set false to opt back down to threshold.
|
||||
codex_gpt55_autoraise: true
|
||||
|
||||
Reference in New Issue
Block a user