You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: compaction.reserved config is ignored for models without explicit 'input' limit #13980
The problem is that many models (like claude-opus-4.6) do not have an explicit input limit defined in their model definition (only context and output). In this case, the code takes the else branch:
This calculation completely ignores the reserved variable (which respects config.compaction.reserved). As a result, users cannot tune the compaction threshold to avoid context overflow crashes.
Expected Behavior
The reserved buffer (e.g. 60000 tokens) should be subtracted from the total context in the else branch as well.
Activity
fix: apply reserved to compaction overflow threshold even when limit.…
fix: compaction bugs anomalyco#13946 (exit after compact) and anomaly…
fix: apply reserved to compaction overflow threshold even when limit.…
fix: compaction bugs anomalyco#13946 (exit after compact) and anomaly…
fix: compaction bugs anomalyco#13946 (exit after compact) and anomaly…
github-actions commentedon Apr 19, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.