Skip to content

fix: use authMode apiKey for Ollama provider to avoid streamSimple crash (#3440)#3443

Open
Codergoterrors wants to merge 1 commit intogsd-build:mainfrom
Codergoterrors:fix/ollama-authmode-streamSimple-crash
Open

fix: use authMode apiKey for Ollama provider to avoid streamSimple crash (#3440)#3443
Codergoterrors wants to merge 1 commit intogsd-build:mainfrom
Codergoterrors:fix/ollama-authmode-streamSimple-crash

Conversation

@Codergoterrors
Copy link
Copy Markdown

Fixes #3440

Problem

model-registry.ts line 699 now requires streamSimple when
authMode is "none". The Ollama extension registers with
authMode: "none" but no streamSimple handler → crash when
opening /model selector with Ollama running.

Fix

Switch Ollama's provider registration to authMode: "apiKey" with
a dummy apiKey: "ollama". Ollama ignores authentication entirely,
so this has zero functional impact but satisfies the new validation.

Testing

  • TypeScript build passes with zero errors
  • No changes to Ollama's actual HTTP requests or auth behavior

…ash (gsd-build#3440)

authMode 'none' now requires a streamSimple handler in model-registry.ts.
Ollama doesn't provide one, causing a crash when opening /model selector.

Fix: switch to authMode 'apiKey' with a dummy apiKey value of 'ollama'.
Ollama ignores authentication keys entirely, so this has no functional
impact but satisfies the new validation in model-registry.ts line 699.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

🔴 PR Risk Report — CRITICAL

Files changed 1
Systems affected 3
Overall risk 🔴 CRITICAL

Affected Systems

Risk System
🔴 critical Agent Core
🟠 high AI Providers
🟡 medium TUI Components
File Breakdown
Risk File Systems
🔴 src/resources/extensions/ollama/index.ts Agent Core, AI Providers, TUI Components

⚠️ Critical risk — please verify: state persistence, auth token lifecycle, agent loop race conditions, RPC protocol compatibility.

@github-actions github-actions bot added bug Something isn't working High Priority labels Apr 3, 2026
@krishnaglick
Copy link
Copy Markdown

Modified my local CLI with this change and it resolved an issue I was having with logout. I have a local Qwen3 model that was apparently causing the issue.

What's interesting, or annoying, is I was trying to login and logout of my claude code session and this was blocking that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working High Priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Ollama extension crashes with "streamSimple is required" when opening /model selector (v2.59.0)

2 participants