[PR #15101] [MERGED] app: fix false "out of date" model warnings #15023

Closed
opened 2026-04-13 01:08:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15101
Author: @BruceMacD
Created: 3/27/2026
Status: Merged
Merged: 3/27/2026
Merged by: @BruceMacD

Base: mainHead: brucemacd/app-stale-check


📝 Commits (2)

  • b720a26 app: fix false "out of date" model warnings
  • c2aa0bd Update gotypes.gen.ts

📊 Changes

5 files changed (+27 additions, -37 deletions)

View changed files

📝 app/ui/app/codegen/gotypes.gen.ts (+2 -4)
📝 app/ui/app/src/api.ts (+8 -8)
📝 app/ui/app/src/components/ModelPicker.tsx (+1 -18)
📝 app/ui/responses/types.go (+2 -3)
📝 app/ui/ui.go (+14 -4)

📄 Description

file on disk) against the registry's Ollama-Content-Digest header.
These never matched because PullModel re-serializes the manifest JSON
before writing, producing different bytes than the registry's original.

The fallback comparison (local modified_at vs upstream push time) was
also broken: the generated TypeScript Time class discards the actual
timestamp value, so Date parsing always produced NaN.

Fix by moving the staleness comparison server-side where we have
reliable access to both the local manifest file mtime and the upstream
push time. The /api/v1/model/upstream endpoint now returns a simple
stale boolean instead of raw digests for the frontend to compare.

Also adds User-Agent to the CORS allowed headers for dev mode.


🔄 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/15101 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 3/27/2026 **Status:** ✅ Merged **Merged:** 3/27/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/app-stale-check` --- ### 📝 Commits (2) - [`b720a26`](https://github.com/ollama/ollama/commit/b720a264a6a7ec4d6be4331ee2c12ae35291bc95) app: fix false "out of date" model warnings - [`c2aa0bd`](https://github.com/ollama/ollama/commit/c2aa0bdb7470e3bd31444c71044db46511ebad12) Update gotypes.gen.ts ### 📊 Changes **5 files changed** (+27 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/codegen/gotypes.gen.ts` (+2 -4) 📝 `app/ui/app/src/api.ts` (+8 -8) 📝 `app/ui/app/src/components/ModelPicker.tsx` (+1 -18) 📝 `app/ui/responses/types.go` (+2 -3) 📝 `app/ui/ui.go` (+14 -4) </details> ### 📄 Description file on disk) against the registry's Ollama-Content-Digest header. These never matched because PullModel re-serializes the manifest JSON before writing, producing different bytes than the registry's original. The fallback comparison (local modified_at vs upstream push time) was also broken: the generated TypeScript Time class discards the actual timestamp value, so Date parsing always produced NaN. Fix by moving the staleness comparison server-side where we have reliable access to both the local manifest file mtime and the upstream push time. The /api/v1/model/upstream endpoint now returns a simple `stale` boolean instead of raw digests for the frontend to compare. Also adds User-Agent to the CORS allowed headers for dev mode. --- <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-13 01:08:43 -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#15023