- 01
Kept the last 20 messages of a long session to save tokens
400: unexpected `tool_use_id` found in `tool_result` blocks
- 02
Kept the last 21 instead
Worked for one turn, failed again on the next when the window slid
- 03
Stripped every tool_result block from the history
400 the other way round: `tool_use` ids were found without `tool_result` blocks. Sent a mayday