HenricHuntsman
HenricHuntsman
Improved by fixes in commit 9be7edfe62: 1. Early auto-compaction is fixed — compaction now triggers at the configured threshold, not ~27k tokens early (due to double-counting system prompt + tool...
This is the same root cause as #15068: `compactionAttempts` was not reset after successful compaction rounds, so long turns on 32K models with large system prompts eventually hit the cap...
Fixed by the compactionAttempts reset implemented in commit 9be7edfe62 on branch `fix/compaction-loop-bugs`: `compactionAttempts` is now reset to 0 after any model step that completes without error and without asking for...
The fixes from this v2-port are now implemented in commit 9be7edfe62 on branch `fix/compaction-loop-bugs`: - `overflow.ts`: `shouldCompact` now uses `max(reported, overhead) + tail` instead of `reported + tail + overhead`,...