{"version":"2.1.224","anchor":"compact-summaries-are-flagged-as-synthetic-in-sdk-output","canonical_anchor":"compact-summaries-are-flagged-as-synthetic-in-sdk-output","heading":"Compact summaries are flagged as synthetic in SDK output","tier":"use","area":"SDK Output","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.224\/e\/compact-summaries-are-flagged-as-synthetic-in-sdk-output","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.224","markdown":"### Compact summaries are flagged as synthetic in SDK output\n\nCompaction summaries are flagged synthetic in SDK and stream-json output so you can filter them.\n\n**What**\n\nMessages produced by compaction are now marked synthetic in SDK and stream-json output, so consumers can filter them out alongside meta and transcript-only messages.\n\n**Details**\n\n- The serialiser now calls a shared helper instead of computing the flag inline from meta and transcript-only checks.\n- A local-command result that trims to an empty string after its stdout and stderr wrappers are stripped now returns nothing instead of emitting an empty assistant message.\n\n**Evidence**\n\n`isCompactSummary`\n\n- Area: SDK Output\n- Names: `stream-json`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}