The 30 GB growth after a morning of coding matches what I found in the event-reducer. The message.part.delta handler in event-reducer.ts concatenates every incoming delta to a string per part field with no size limit — (existing ?? "") + props.delta. In a long session with lots of tool output, these strings grow into the hundreds of MB each and are never trimmed.
Fixed in #14650 by capping each part field at 1 MB (drops oldest bytes on overflow). The PR also fixes the second major driver: subagent sessions are never deallocated after their task completes, so each one retains its full message history, tool buffers, and event listeners in memory permanently.
Between those two fixes plus 8 other leak sources addressed in the same PR, a 2.5-hour test session with continuous subagent and tool activity stabilized at ~2,500 MB RSS instead of growing unbounded.
Some of the leaks from this issue were fixed in v1.2.10 (footer timeout, SSE reconnect, AbortController), but the delta accumulation and subagent cleanup were still open on the current dev branch.