fix: backfill sessions indexed before content hashing (#21)
build / test (push) Waiting to run
build / image (push) Blocked by required conditions

fix: backfill sessions indexed before content hashing (#21)

Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #21.
This commit is contained in:
2026-11-05 03:42:03 +00:00
committed by david
parent 84f30f293b
commit 25987d1108
3 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -695,7 +695,7 @@ func (w *Watcher) ingestGit() {
// sweep is full every time; RecordObservation collapses unchanged sessions, so
// no watermark is needed and repeated runs are idempotent.
func (w *Watcher) ingestOpenCodeDB() {
if _, _, _, err := IngestSessionsNow(w.knoxDB); err != nil {
if _, _, _, err := IngestSessionsNow(w.knoxDB, false); err != nil {
log.Printf("[knox] opencode.db ingest error: %v", err)
}
}