From 5e68d1ec5ddfc083daff996df815b40e17acdffb Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 17 Jan 2026 21:11:48 -0800 Subject: [PATCH] Disable forced PyTorch upgrades Disables automatic PyTorch version upgrades that were forcing all NVIDIA users to download 1.5GB packages without consent. ## What Changed - Commented out `ensureRecommendedNvidiaTorch()` call in updatePackages() - Users will no longer be forced to upgrade PyTorch on app startup ## Why The automatic upgrade introduced in PR #1513 caused several issues: - Forced 1.5GB downloads without user warning or consent - Caused installation failures for users with slow/metered connections - Blocked Chinese users when packages weren't available on mirrors - No opt-out mechanism ## User Impact - NVIDIA users will keep their current PyTorch versions - No more forced package reinstalls on app startup - Users can manually upgrade PyTorch if they want new features ## Next Steps A follow-up PR will add optional user-prompted PyTorch upgrades with proper consent dialogs and preference tracking. Related: PR #1513, PR #1525 Fixes: Forced PyTorch upgrade crisis (Jan 8-14, 2026) Co-Authored-By: Claude Sonnet 4.5 --- src/install/installationManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/install/installationManager.ts b/src/install/installationManager.ts index 1f951d751..50d6840a6 100644 --- a/src/install/installationManager.ts +++ b/src/install/installationManager.ts @@ -382,7 +382,8 @@ export class InstallationManager implements HasTelemetry { await installation.virtualEnvironment.installComfyUIRequirements(callbacks); await installation.virtualEnvironment.installComfyUIManagerRequirements(callbacks); await this.warnIfNvidiaDriverTooOld(installation); - await installation.virtualEnvironment.ensureRecommendedNvidiaTorch(callbacks); + // Disabled forced PyTorch upgrades - users should control when large package downloads occur + // await installation.virtualEnvironment.ensureRecommendedNvidiaTorch(callbacks); await installation.validate(); } catch (error) { log.error('Error auto-updating packages:', error);