Skip to content

Verify download completeness by comparing file sizes#8

Open
dannyd40 wants to merge 1 commit intoromandev-codex:mainfrom
dannyd40:feature/verify-download-completeness
Open

Verify download completeness by comparing file sizes#8
dannyd40 wants to merge 1 commit intoromandev-codex:mainfrom
dannyd40:feature/verify-download-completeness

Conversation

@dannyd40
Copy link
Copy Markdown

Summary

  • New backend endpoint POST /server_download/local_filesize to get the local file size on disk
  • When a model file exists locally, compares local size vs remote size (via HEAD request)
  • If local file is smaller than remote → shows "⚠ Incomplete" button (orange) with size details (e.g. 3.21 GB / 6.46 GB)
  • If sizes match → shows "✓ Downloaded" (green) as before
  • Both size checks run in parallel for performance

Test plan

  • Have a fully downloaded model with URL → should show "✓ Downloaded"
  • Have a partially downloaded model with URL → should show "⚠ Incomplete" with size details
  • Model without URL → should show "✓ Downloaded" (no remote size to compare)
  • Hover over "⚠ Incomplete" button → tooltip shows local/remote sizes

🤖 Generated with Claude Code

When a file exists locally, compare its size against the remote size
to detect incomplete downloads. Shows "Incomplete" with orange button
and size details (e.g. 3.21 GB / 6.46 GB) when the local file is
smaller than expected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant