Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix: Ollama 0.20 stale-manifest error message + CI ref

PurpleDoubleD36c2271e8d03
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index eab619ac..c861c00f 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -31,6 +31,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
+ with:
+ # Build from the release's target branch (master) instead of the tag ref.
+ # Prevents shipping a stale snapshot when fixes land after tag creation
+ # but before the release is published.
+ ref: ${{ github.event.release.target_commitish || 'master' }}
- name: Setup Node.js
uses: actions/setup-node@v4
diff --git a/src/api/providers/ollama-provider.ts b/src/api/providers/ollama-provider.ts
index 40907577..b1f3ac36 100644
--- a/src/api/providers/ollama-provider.ts
+++ b/src/api/providers/ollama-provider.ts
@@ -241,7 +241,16 @@ export class OllamaProvider implements ProviderClient {
private async extractError(res: Response, fallback: string): Promise<string> {
try {
const data = await res.json()
- return data.error || fallback
+ const raw = data.error || fallback
+ // Ollama 0.20+ strict-rejects models with stale `capabilities` metadata
+ // (pulled before Ollama 0.15). Give the user an actionable remediation
+ // instead of the cryptic "X does not support chat/completion".
+ const m = typeof raw === 'string' && raw.match(/^['"]?([^'"]+?)['"]?\s+does not support (chat|completion)$/i)
+ if (m) {
+ const name = m[1]
+ return `Ollama rejected "${name}" — its manifest is stale (pulled before Ollama 0.15). Open a terminal and run: ollama pull ${name} Then reload the model.`
+ }
+ return raw
} catch {
return fallback
}