Skip to content

NAMED_THREADS_SQL

const NAMED_THREADS_SQL: “SELECT DISTINCT thread_id FROM conversations\n WHERE thread_id IS NOT NULL AND thread_id <> ‘’”

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

Every thread a conversation row names — the half of the link the predicate reads. Named as one constant so a spec can hold the query this runs.