{"version":"2.1.285","anchor":"compactbeforenextturn-rejects-context-management-compaction","canonical_anchor":"compactbeforenextturn-rejects-context-management-compaction","heading":"compactBeforeNextTurn can't be used alongside a compaction edit","tier":"notice","area":"Compaction","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285\/e\/compactbeforenextturn-rejects-context-management-compaction","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285","markdown":"### `compactBeforeNextTurn` can't be used alongside a compaction edit\n\nAn error now stops compactBeforeNextTurn from being used while context_management has a compaction edit\n\n**Unclear.** This check may come from the bundled Anthropic SDK rather than from Claude Code itself.\n\n**What**\n\nCompaction shrinks earlier conversation to free room. Using `compactBeforeNextTurn` while `context_management` contains a compaction edit now raises an error saying it can't be used while `context_management` has a compaction edit.\n\n**Why**\n\nIf you build on the SDK, you get a clear error instead of two compaction settings clashing.\n\n- Area: Compaction\n- Names: `compactBeforeNextTurn`, `context_management`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}