History is the last 20 saved exchanges (openAiHistory, default 20).
Once a thread passes 20 exchanges, every new turn drops the oldest one, so the start of the history changes on every turn. This is not covered in #6401 and would defeat its stated goal that everything before the latest user turn stays byte-identical.
- What to change
- Drop old exchanges in steps (for example keep between 10 and 20 and cut back to 10 when 20 is reached) so the window moves only every tenth turn, or add this to the #6401 plan.
- Why it matters
- A window that slides by one row each turn changes the first history message every turn, which breaks reuse of the entire history.
- Estimate
- about 0.84M prompt tokens per 1,000 calls (estimate), overlapping the first two findings today
What the estimate assumes
15% of chat turns are in threads past 20 exchanges; a full window is about 8,000 tokens. Today the same tokens are already lost to the first two findings; this is the loss that remains after #6401 lands, so the shares are not additive.