[PR #13483] fix: windows app blank ui issue #19500

Open
opened 2026-04-16 07:09:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13483
Author: @hoyyeva
Created: 12/15/2025
Status: 🔄 Open

Base: mainHead: hoyyeva/windows-nacked-app


📝 Commits (4)

📊 Changes

2 files changed (+60 additions, -2 deletions)

View changed files

📝 app/ui/app.go (+21 -2)
app/ui/app_test.go (+39 -0)

📄 Description

This PR resolves: #13280

The root cause is that the Windows build process sometimes embeds the wrong index.html file (source version with development paths like /src/main.tsx instead of the built version with production paths like /assets/index-*.js). This causes the browser to fail loading JavaScript assets, resulting in a blank screen.

This PR adds two fixes:

  1. Enhanced MIME Type Registration (app/ui/app.go)
  • Explicitly registers MIME types for common web assets (.js, .css, .woff2, .svg)
  • Sets Content-Type headers when serving static files
  1. Build Validation Test (app/ui/app_test.go)
  • Adds TestEmbeddedAssets() to verify correct files are embedded at build time
  • Checks that index.html contains production asset paths (/assets/index-*)
  • Fails the build if source files (with /src/main.tsx) are embedded instead

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13483 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 12/15/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `hoyyeva/windows-nacked-app` --- ### 📝 Commits (4) - [`c02bf76`](https://github.com/ollama/ollama/commit/c02bf766fd9b3fee0383cb978e7609775859e07f) fix: windows app blank ui issue - [`4c2c517`](https://github.com/ollama/ollama/commit/4c2c51761e8cb1be25f88eeeca8efbcb0efda57b) adding test - [`0e02a03`](https://github.com/ollama/ollama/commit/0e02a037b45722f505b995c7815ba6a2c977ea75) clean up - [`fc1f10c`](https://github.com/ollama/ollama/commit/fc1f10cd0bcfc28b5ca0dfd8d6305217fa991546) fix test ### 📊 Changes **2 files changed** (+60 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app.go` (+21 -2) ➕ `app/ui/app_test.go` (+39 -0) </details> ### 📄 Description This PR resolves: #13280 The root cause is that the Windows build process sometimes embeds the wrong index.html file (source version with development paths like /src/main.tsx instead of the built version with production paths like /assets/index-*.js). This causes the browser to fail loading JavaScript assets, resulting in a blank screen. This PR adds two fixes: 1. Enhanced MIME Type Registration (app/ui/app.go) - Explicitly registers MIME types for common web assets (.js, .css, .woff2, .svg) - Sets Content-Type headers when serving static files 2. Build Validation Test (app/ui/app_test.go) - Adds TestEmbeddedAssets() to verify correct files are embedded at build time - Checks that index.html contains production asset paths (/assets/index-*) - Fails the build if source files (with /src/main.tsx) are embedded instead --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 07:09:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#19500