Skip to content

Conversation

@christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Jan 18, 2026

Disables automatic PyTorch version upgrades by commenting out the ensureRecommendedNvidiaTorch() call in updatePackages().

Changed src/install/installationManager.ts:385 from:
await installation.virtualEnvironment.ensureRecommendedNvidiaTorch(callbacks);

To:
// Disabled forced PyTorch upgrades - users should control when large package downloads occur
// await installation.virtualEnvironment.ensureRecommendedNvidiaTorch(callbacks);

This prevents automatic 1.5GB PyTorch package downloads on app startup. NVIDIA users will keep their current PyTorch versions until they manually upgrade or a future PR adds opt-in upgrade prompts with user consent dialogs.

Tested: ESLint, TypeScript compilation, and pre-commit hooks all pass.

Related: PR #1513 (introduced the forced upgrade), PR #1525 (will add guided UX)

┆Issue is synchronized with this Notion page by Unito

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 <noreply@anthropic.com>
@christian-byrne christian-byrne requested a review from a team as a code owner January 18, 2026 05:20
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 18, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 18, 2026

📝 Walkthrough

Walkthrough

A step invoking automatic NVIDIA PyTorch upgrade during package updates has been commented out in the installation manager. User-controlled PyTorch upgrades now replace the automatic upgrade mechanism, while subsequent validation steps remain intact.

Changes

Cohort / File(s) Summary
Package Update Flow Control
src/install/installationManager.ts
Commented out ensureRecommendedNvidiaTorch() call in updatePackages sequence; PyTorch upgrades now user-controlled rather than automatic

Possibly related PRs

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot dosubot bot added the dependencies label Jan 18, 2026
@christian-byrne christian-byrne marked this pull request as draft January 18, 2026 05:21
Copy link
Member

@benceruleanlu benceruleanlu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would also need to stop hasRequirements() in src/virtualEnvironment.ts from returning package-upgrade based on NVIDIA torch. Also, the legacy mirror migration in src/main-process/comfyInstallation.ts still moves users from cu129 to cu130, which would be effectively a PyTorch upgrade if they reinstall their venv as it would pull from cu130's index.

@benceruleanlu
Copy link
Member

benceruleanlu commented Jan 19, 2026

I incorporated the changes/fixes in ba97520

@christian-byrne
Copy link
Contributor Author

Replaced by #1543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants