Merge pull request #1723 from NousResearch/fix/compression-attempts-persist

fix(core): compression_attempts resets each iteration — allows unlimited compressions
This commit is contained in:
Teknium 2026-03-17 04:13:54 -07:00 committed by GitHub
commit 72bcec0ce5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4884,6 +4884,7 @@ class AIAgent:
codex_ack_continuations = 0 codex_ack_continuations = 0
length_continue_retries = 0 length_continue_retries = 0
truncated_response_prefix = "" truncated_response_prefix = ""
compression_attempts = 0
# Clear any stale interrupt state at start # Clear any stale interrupt state at start
self.clear_interrupt() self.clear_interrupt()
@ -5029,7 +5030,6 @@ class AIAgent:
api_start_time = time.time() api_start_time = time.time()
retry_count = 0 retry_count = 0
max_retries = 3 max_retries = 3
compression_attempts = 0
max_compression_attempts = 3 max_compression_attempts = 3
codex_auth_retry_attempted = False codex_auth_retry_attempted = False
anthropic_auth_retry_attempted = False anthropic_auth_retry_attempted = False