Files
oh-my-openagent/src/hooks/preemptive-compaction/constants.ts
YeonGyu-Kim 917979495a fix(preemptive-compaction): increase token threshold from 0.80 to 0.85
Raise the preemptive compaction trigger point from 80% to 85% to reduce false-positive compactions and allow longer session contexts before automatic compaction kicks in.

🤖 Generated with assistance of OhMyOpenCode
2025-12-20 13:35:22 +09:00

4 lines
131 B
TypeScript

export const DEFAULT_THRESHOLD = 0.85
export const MIN_TOKENS_FOR_COMPACTION = 50_000
export const COMPACTION_COOLDOWN_MS = 60_000