mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: consistent periodic interval spacing in suggest-compact, add 10 tests
- suggest-compact.js: count % 25 → (count - threshold) % 25 for consistent spacing regardless of threshold value - Update existing periodic interval test to match corrected behavior - 10 new tests: interval fix regression (non-25-divisible threshold, false suggestion prevention), corrupted counter file, 1M boundary, malformed JSON pass-through, non-TS extension pass-through, empty sessions dir, blank template skip
This commit is contained in:
parent
4ff4872bf3
commit
f4758ff8f0
2 changed files with 154 additions and 6 deletions
|
|
@ -66,8 +66,8 @@ async function main() {
|
|||
log(`[StrategicCompact] ${threshold} tool calls reached - consider /compact if transitioning phases`);
|
||||
}
|
||||
|
||||
// Suggest at regular intervals after threshold
|
||||
if (count > threshold && count % 25 === 0) {
|
||||
// Suggest at regular intervals after threshold (every 25 calls from threshold)
|
||||
if (count > threshold && (count - threshold) % 25 === 0) {
|
||||
log(`[StrategicCompact] ${count} tool calls - good checkpoint for /compact if context is stale`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue