Reproduced on Linux with Node v24.21.0 at 70e5e384da, using the web dev server and its integrated terminal with isolated copied state.
Emitted 4,300 lines of 1,999 characters, then 1 KB every 100 ms. After the initial fill, the history remained at the 8 MiB cap between rewrites; the server wrote 193,019,904 bytes over eight seconds. A short-line variant retained about 505 KB and wrote 15,843,328 bytes over eight seconds.
Runtime transcript · reproduction script. A focused regression test also fails for excessive bytes written while growing and at the cap; history restoration passes. No matching duplicate found among open issues from the past 90 days.