Skip to content

Fixed Random Crashes on Parallel Downloads#202

Merged
felix-schultz merged 4 commits intoalphafrom
dev
Aug 18, 2025
Merged

Fixed Random Crashes on Parallel Downloads#202
felix-schultz merged 4 commits intoalphafrom
dev

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

This pull request makes significant improvements to the AI settings page layout and logic, removes the download overview page and related sidebar logic, and refines the handling of model filtering and UI responsiveness. The most important changes are grouped below by theme.

AI Settings Page Layout & Filtering Improvements:

  • Added a new helper function computeWideFlags to optimize the layout of model cards in rows, ensuring a more visually appealing and consistent display.
  • Refactored filtering logic for models to improve clarity and correctness, including fixes for dependency blacklist, filter application, and installed model detection. [1] [2] [3]
  • Enhanced UI responsiveness: the header now becomes compact when the user scrolls, and the model card grid layout adapts based on the number of visible models. [1] [2] [3]
  • Improved results summary and filter dropdown display for better user experience and accessibility. [1] [2] [3]

Removal of Download Overview Page and Sidebar Download Logic:

  • Deleted the entire apps/desktop/app/download/page.tsx file, removing the download overview functionality from the application.
  • Removed download manager and download stats logic from the sidebar (app-sidebar.tsx), including related imports and UI components. [1] [2] [3] [4] [5] [6]

Workflow Improvements:

  • Added a concurrency group to the GitHub Actions alpha release workflow to cancel in-progress runs for the same branch, preventing duplicate deployments. (.github/workflows/alpha-release.yml)

Minor Codebase Cleanups:

  • Updated imports in several files to remove unused hooks and components, such as useDownloadManager and DownloadIcon. [1] [2] [3]

Performance & Dependency Handling:

  • Improved dependency handling and blacklist logic for bits/models, ensuring correct filtering and UI updates when dependencies change. [1] [2]

Let me know if you'd like details on any specific change or how these updates affect your workflow!

…ovements

- Added `emit_throttled` function to manage event emissions with a minimum interval to prevent spamming.
- Introduced `UiEmitTarget` enum for specifying emission targets (Main, Label, All).
- Enhanced download manager with a global concurrency limit using a semaphore.
- Implemented a download job queue with a dispatcher to manage concurrent downloads.
- Refactored download handling in the UI to support progress tracking and queuing.
- Improved state management for downloads, including listeners for progress updates and cleanup on unload.
- Updated BitCard component to reflect download progress and state changes more effectively.
…d performance

- Cleaned up unnecessary whitespace and improved formatting in flow-board.tsx.
- Enhanced readability by restructuring conditional statements and using consistent spacing.
- Updated BitCard component to improve code organization and readability.
- Refactored download manager to streamline download handling and progress tracking.
- Fixed CSS formatting in global.css for consistency.
@felix-schultz felix-schultz merged commit dad38d3 into alpha Aug 18, 2025
1 of 5 checks passed
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