Compaction summaries are flagged synthetic in SDK and stream-json output so you can filter them.
What's wrong with this entry?
Messages 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.
- The serialiser now calls a shared helper instead of computing the flag inline from meta and transcript-only checks.
- 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.
isCompactSummary
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.234
Permission mode changes are announced on the stream-json output
Both mention stream json output
-
v2.1.229
Injected stream-json user messages no longer count as human turns
Both mention stream json
-
v2.1.234
Schema now describes cloud sessions and cross-session notices
Both mention json output