{"version":"2.1.331","anchor":"stream-json-stdout-guard-passes-through-frames-already-being","canonical_anchor":"stream-json-stdout-guard-passes-through-frames-already-being","heading":"stream-json output passes through frames already being written","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/stream-json-stdout-guard-passes-through-frames-already-being","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### stream-json output passes through frames already being written\n\nClaude Code's stream-json output no longer re-splits a frame it is already writing, lowering the risk of garbled output\n\n**What**\n\nstream-json is an output mode where Claude Code writes one JSON message per line. A guard checks that output and diverts anything that is not JSON. When the guard is handed the exact frame that is already being written and has nothing else waiting, it now passes it straight through. Before, every write was held back and split into lines.\n\n**Why**\n\nNot splitting a frame that is already in progress lowers the chance of broken stream-json output for programs that read it.\n\n- Area: Elsewhere\n- Names: `stream-json`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}