{"version":"2.1.193","anchor":"autocompact-thrashing-detection","canonical_anchor":"autocompact-thrashing-detection","heading":"Autocompact Thrashing Detection","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.193\/e\/autocompact-thrashing-detection","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.193","markdown":"### Autocompact Thrashing Detection\n\n**What**\n\nThe autocompact circuit breaker now uses a fixed threshold of 3 consecutive rapid refills (rather than a configurable parameter embedded in the message), and the error message is now more actionable.\n\n**Details**\n\n- New message: \"Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row. A file being read or a tool output is likely too large for the context window. Try reading in smaller chunks, or use \/clear to start fresh.\"\n- Previous message was split across multiple string fragments; it's now a single constant.\n\n**Evidence**\n\nNew constant (search for `\"Autocompact is thrashing: the context refilled to the limit within 3 turns\"`)"}