Frontmatter
| id | 8492 |
| title | Fix missing error flag in defragChromaDB extraction loop |
| state | Closed |
| labels | bugaibuild |
| assignees | tobiu |
| createdAt | Jan 10, 2026, 2:07 AM |
| updatedAt | Jan 10, 2026, 2:10 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8492 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 10, 2026, 2:10 AM |
Fix missing error flag in defragChromaDB extraction loop
tobiu assigned to @tobiu on Jan 10, 2026, 2:10 AM

tobiu
Jan 10, 2026, 2:10 AM
Input from Gemini 3 Pro:
✦ I have applied the fix. The script now correctly sets
extractionErrors = truewhen an exception is caught during the data extraction phase. This ensures the safety mechanism works as intended, aborting the process before any destructive actions are taken if the backup/extraction is incomplete.
tobiu closed this issue on Jan 10, 2026, 2:10 AM
Goal: Ensure that errors during the extraction phase properly trigger the safety abort mechanism.
Issue: Currently, if an exception occurs during the extraction loop (Step 3), the error is logged but
extractionErrorsis not set totrue. This allows the script to proceed to the destructive "Nuke" phase (Step 4) even if data extraction failed, potentially leading to data loss.Fix: Set
extractionErrors = truewithin thecatchblock of the extraction loop.Why: To prevent accidental data loss by ensuring the "Nuke and Pave" process aborts if the backup/extraction phase is incomplete.