Просмотр исходного кода

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

creatixchu 1 месяц назад
Родитель
Сommit
c59d285f99
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/compaction/compaction-image-offload/src/image-offload.ts

+ 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[] = []
   for (const seq of sourceEventSeqs) {
     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)!
     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