Avoid crashing Electron at startup when sharp is corrupt, and fail pack if asarUnpack natives look truncated.
Co-authored-by: Cursor <cursoragent@cursor.com>
Serialize updateProject and preview finalize, drain before pack/close, buffer zip entries, and abort finalize cleanly when leaving the project to avoid ENOENT on multi-image drops.
Co-authored-by: Cursor <cursoragent@cursor.com>