wassname
|
ad9c550b41
|
feat: auto-compaction when DCP blocks exceed threshold
- Add session_compact handler: deactivate all DCP blocks when pi compacts
- Add context handler threshold: trigger ctx.compact() when DCP summary
blocks occupy >= configurable fraction of context tokens (default 50%)
- Add config.compact.autoCompactThreshold (0 = disabled, 0.5 = default)
- Blocks are deactivated immediately on trigger to prevent re-triggering
- Includes earlier fix: gap calculation scoped to requested range,
clearer error text for overlap messages
|
2026-04-16 13:23:28 +08:00 |
|