Skip to content

Commit bda946c

Browse files
committed
Add Windows model loading fixes test documentation
Test commit to trigger GitHub Actions workflow and verify Windows-specific model loading improvements including: - Event handler TypeScript fixes - Aggressive retry logic for Windows - Periodic background model refresh - Enhanced error handling and fallbacks
1 parent 4ca18b3 commit bda946c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

WINDOWS_FIXES_TEST.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Windows Model Loading Fixes - Test Build
2+
3+
This commit contains the following Windows-specific fixes for model loading issues:
4+
5+
## Changes Made
6+
7+
### 1. Fixed TypeScript Event Handler Issues
8+
- Fixed `refreshModels` function being used directly as onClick handler
9+
- Added proper event handler wrappers: `handleRefreshModels` and `handleForceRefreshModels`
10+
11+
### 2. Enhanced Windows Model Refresh Logic
12+
- Improved retry logic in `refreshModels` with multiple attempts and increasing delays
13+
- Added Windows-specific aggressive retry with 1s, 3s, and 5s delays
14+
- Enhanced `forceRefreshModels` with backend command fallback
15+
16+
### 3. Periodic Background Refresh (Windows Only)
17+
- Added 30-second interval background model refresh for Windows
18+
- Only triggers when no models are detected
19+
- Automatically cleans up interval on component unmount
20+
21+
### 4. Improved Retry Mechanisms
22+
- Increased max retry attempts from 3 to 5 in `listOllamaModelsWithRetry`
23+
- Added random jitter (0-200ms) to avoid timing conflicts
24+
- Reduced base delay from 1000ms to 800ms for faster response
25+
26+
### 5. Git Submodule Fix
27+
- Removed `.git` directories from `ollama-web-search` and `searxng.bak`
28+
- Fixed GitHub Actions submodule initialization errors
29+
30+
## Expected Results
31+
32+
These changes should resolve the Windows issue where:
33+
- Models don't appear in the UI after loading
34+
- Refresh button doesn't update the model list
35+
- Manual page refresh is required to see loaded models
36+
37+
The fixes implement platform-specific detection and apply more aggressive refresh strategies specifically for Windows environments.

0 commit comments

Comments
 (0)