### Summary
During streaming of structured outputs (JSON), `MessageStream` re-parses the entire cumulative JSON buffer for every single delta received. For long responses, this leads to **O(N²)** complexity, causing high CPU usage and UI freezing.
### Root Cause
In `MessageStream.ts`, `newContent.input` is eagerly calculated on every delta using `partialParse(jsonBuf)`.
### Proposed Fix
Convert `newContent.input` into a lazy getter. This ensures `partialParse` is only executed when the user or a listener actually accesses the field, reducing redundant work.
Description: