Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.331,
Internal ChangesSection of the release
What
stream-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.
Why
Not splitting a frame that is already in progress lowers the chance of broken stream-json output for programs that read it.