Files
Vito Cappello b8d2ac735a fix(compaction): scope the transcript byte fuse to the latest compaction window (#130487)
* fix(compaction): scope the transcript byte fuse to the latest compaction window

readVisibleTranscriptStats only closed its window at a reset boundary, so once a session compacted, maxActiveTranscriptBytes measured the whole active path and every following turn re-compacted. The preflight fuse now measures the window the model actually sees (since the latest compaction or reset, plus its kept tail); history readers keep their reset-only scope.

* test(compaction): cover retained transcript accounting

## Worked on by
- @VACInc

Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>

---------

Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>
Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
2026-08-26 21:40:28 -04:00
..