cursor context compaction