Browse Source

chore(compaction): mark existing history read for deferred migration

creatixchu 1 month ago
parent
commit
c59d285f99

+ 2 - 1
packages/compaction/compaction-image-offload/src/image-offload.ts

@@ -16,7 +16,8 @@ export function offloadOldestImages(session: Session, sourceEventSeqs: readonly
   const targets: ImageOffloadTarget[] = []
   const targets: ImageOffloadTarget[] = []
   for (const seq of sourceEventSeqs) {
   for (const seq of sourceEventSeqs) {
     if (count === 0) break
     if (count === 0) break
-    // oxlint-disable-next-line typescript/no-non-null-assertion -- current surface nodes index the durable log
+    // Existing Session history read; migration deferred. Current surface nodes index the durable log.
+    // oxlint-disable-next-line typescript/no-non-null-assertion, typescript/no-deprecated
     const event = session.eventAt(seq)!
     const event = session.eventAt(seq)!
     if (event.type !== 'user/message' && event.type !== 'tool/result') continue
     if (event.type !== 'user/message' && event.type !== 'tool/result') continue
     // oxlint-disable-next-line typescript/no-non-null-assertion -- both input node types produce a message
     // oxlint-disable-next-line typescript/no-non-null-assertion -- both input node types produce a message