diff --git a/agent/context_compressor.py b/agent/context_compressor.py index 2c87309ae..5cbb133d7 100644 --- a/agent/context_compressor.py +++ b/agent/context_compressor.py @@ -1207,6 +1207,7 @@ The user has requested that this compaction PRIORITISE preserving all informatio # after compress() returns to decide whether to surface a warning. self._last_summary_dropped_count = 0 self._last_summary_fallback_used = False + self._last_summary_error = None n_messages = len(messages) # Only need head + 3 tail messages minimum (token budget decides the real tail size) _min_for_compress = self.protect_first_n + 3 + 1