Work in a small conversation-history codebase: page through an API by cursor, compact the conversation to a token budget, then make the compaction unique on a message property.
Work in a small conversation-history codebase: page through an API by cursor, compact the conversation to a token budget, then make the compaction unique on a message property.
The discussion opens with the full question.