diff --git a/internal/importer/importer.go b/internal/importer/importer.go index 14ed14b1..8522254c 100644 --- a/internal/importer/importer.go +++ b/internal/importer/importer.go @@ -710,20 +710,6 @@ if len(newIssues) > 0 { return newIssues[i].ID < newIssues[j].ID // Stable sort }) -// Deduplicate by ID to prevent UNIQUE constraint errors during batch insert -// This handles cases where JSONL contains multiple versions of the same issue -seenNewIDs := make(map[string]bool) -var dedupedNewIssues []*types.Issue -for _, issue := range newIssues { - if !seenNewIDs[issue.ID] { - seenNewIDs[issue.ID] = true - dedupedNewIssues = append(dedupedNewIssues, issue) - } else { - result.Skipped++ // Count duplicates that were skipped - } -} -newIssues = dedupedNewIssues - // Create in batches by depth level (max depth 3) for depth := 0; depth <= 3; depth++ { var batchForDepth []*types.Issue