{"version":"2.1.288","anchor":"code-element-no-longer-rejects-non-diff-source-compaction-r","canonical_anchor":"code-element-no-longer-rejects-non-diff-source-compaction-r","heading":"Code elements accept non-diff content, and compaction gets more fallback reasons","tier":"internal","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.288\/e\/code-element-no-longer-rejects-non-diff-source-compaction-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.288","markdown":"### Code elements accept non-diff content, and compaction gets more fallback reasons\n\nThe Code display element no longer requires its content to be a diff, and compaction gains five more specific reasons for falling back\n\n**Unclear.** What the added compaction reasons are used for is not stated.\n\n**What**\n\nThis covers two separate changes:\n\n- **Code element:** this element, which shows code in the interface, no longer rejects content that is not a unified diff. A unified diff is the standard format for showing changes between files. The element now only checks that its wrap setting is \"wrap\" or \"truncate-end\".\n\n- **Compaction reasons:** compaction is how Claude Code shortens a long conversation by summarising older messages. The list of reasons it can record gains five: covered messages changed, a kept message is missing, a reply was not seen, saved rows could not be read, and the result would not fit.\n\n**Why**\n\nCompaction now records more specific reasons when it falls back.\n\n- Area: Compaction\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}