LearnNewsExamplesServices
Frontmatter
id8492
titleFix missing error flag in defragChromaDB extraction loop
stateClosed
labels
bugaibuild
assigneestobiu
createdAtJan 10, 2026, 2:07 AM
updatedAtJan 10, 2026, 2:10 AM
githubUrlhttps://github.com/neomjs/neo/issues/8492
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 10, 2026, 2:10 AM

Fix missing error flag in defragChromaDB extraction loop

Closed v11.20.0 bugaibuild
tobiu
tobiu commented on Jan 10, 2026, 2:07 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 extractionErrors is not set to true. 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 = true within the catch block 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.

tobiu added the bug label on Jan 10, 2026, 2:07 AM
tobiu added the ai label on Jan 10, 2026, 2:07 AM
tobiu added the build label on Jan 10, 2026, 2:07 AM
tobiu referenced in commit 3d4f2ca - "fix: Set error flag on extraction failure in defragChromaDB (#8492)" on Jan 10, 2026, 2:10 AM
tobiu assigned to @tobiu on Jan 10, 2026, 2:10 AM
tobiu
tobiu Jan 10, 2026, 2:10 AM

Input from Gemini 3 Pro:

✦ I have applied the fix. The script now correctly sets extractionErrors = true when 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