A reply was replayed with a fixed twenty earlier turns, so a long
conversation either lost its older context or, with large replies, sent
more than the model accepts and failed the request. The replay now reads
up to two hundred turns and replaces the middle of what it cannot carry
with one summary message, keeping the newest twenty messages and always
the question being answered.
Carried from internal/gateway's compression.go before that package is
retired: the same conservative token estimate (four ASCII characters or
one non-ASCII rune), the same 50%-of-window budget, and a summary that
says what was dropped. The budget is fixed rather than derived from the
model because the module is told a model's name and nothing about its
window.