Skip to content

PruneBounds

Defined in: packages/core/src/history/checkpointRetention.ts:205

Bounds for selectPrunableConversations. At least one is required by the command.

optional keepLast?: number

Defined in: packages/core/src/history/checkpointRetention.ts:214

Keep the N most recently active resumable conversations whole and prune the rest.

Deliberately NOT “keep the last N super-steps of each thread”: that is the prefix policy this module forbids, and a flag whose name suggested it would be a documentation hazard.


optional now?: number

Defined in: packages/core/src/history/checkpointRetention.ts:216

Injectable clock for the age bound.


optional olderThanDays?: number

Defined in: packages/core/src/history/checkpointRetention.ts:207

Prune conversations whose last activity is older than this many days.