-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: tmp download file should be removed on cancel #5849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: tmp download file should be removed on cancel #5849
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to 2e3a8c8 in 2 minutes and 36 seconds. Click for details.
- Reviewed
82
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src-tauri/src/core/utils/download.rs:259
- Draft comment:
The addition of the 'resume' parameter and renaming to 'should_resume' is clear, but note that it’s currently hardcoded as false. Ensure cleanup logic is revisited when resumable downloads are enabled. - Reason this comment was not posted:
Confidence changes required:20%
<= threshold50%
None
Workflow ID: wflow_xrZadbNaiwwru51V
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Barecheck - Code coverage reportTotal: 36.94%Your code coverage diff: -0.01% ▾ ✅ All code changes are covered |
1cc4b76
to
19807b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed 19807b9 in 2 minutes and 21 seconds. Click for details.
- Reviewed
82
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
0
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
Workflow ID: wflow_ZPEqrCggeFoIGk0f
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Describe Your Changes
This PR is to address #5793, where cancelled download models should delete tmp files. Otherwise users will get confused when so many model folders left on their disk.
CleanShot.2025-07-22.at.02.02.02.mp4
Upcoming enhancement:
Fixes Issues
Self Checklist
Important
Temporary files are now deleted when a download is canceled and not resumable in
download_files()
and_download_files_internal()
.download_files()
and_download_files_internal()
, temporary files are deleted if a download is canceled and not resumable.resume
parameter to_download_files_internal()
to control resumable downloads._download_files_internal()
to checkshould_resume
before deleting temporary files.download_files()
to passfalse
forresume
parameter.This description was created by
for 19807b9. You can customize this summary. It will automatically update as commits are pushed.