ollama/app
Matteo Celani fb36a01ffe
app/ui: fix model picker showing stale model after switching chats (#15280)
* app/ui: fix model picker showing stale model after switching chats

Optimistic messages created during streaming were storing the full
Model object instead of the model name string. When switching back
to a chat with cached streaming data, the restore effect read an
object where it expected a string, causing the model picker to fail
matching and remain stuck on the previous chat's model.

* app/ui: fix two more instances of Model object passed as model name

Fix the same bug at lines 523 and 536 in the assistant_with_tools
event handler, where selectedModel (object) was used instead of
selectedModel.model (string).
2026-04-21 15:08:06 -04:00
..
assets
auth
cmd fix: window app crash on startup when update is pending (#14451) 2026-02-26 16:47:12 -05:00
darwin/Ollama.app/Contents
dialog tidy up lint warnings on windows (#13430) 2025-12-12 11:43:35 -05:00
format
logrotate
server app: expose server's default context length to UI (#14037) 2026-02-20 18:56:30 -08:00
store app: restore launch default and refine launch sidebar open for app (#15437) 2026-04-08 16:59:21 -07:00
tools add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00
types/not
ui app/ui: fix model picker showing stale model after switching chats (#15280) 2026-04-21 15:08:06 -04:00
updater app: fix first update check delayed by 1 hour (#14427) 2026-02-25 18:29:55 -05:00
version
webview
wintray app: add upgrade configuration to settings page (#13512) 2026-02-23 18:08:52 -05:00
.gitignore
ollama.iss
ollama.rc
README.md build: add -O3 optimization to CGO flags (#13877) 2026-01-24 10:55:38 -08:00

Ollama for macOS and Windows

Download

Development

Desktop App

go generate ./... &&
go run ./cmd/app

UI Development

Setup

Install required tools:

go install github.com/tkrajina/typescriptify-golang-structs/tscriptify@latest

Develop UI (Development Mode)

  1. Start the React development server (with hot-reload):
cd ui/app
npm install
npm run dev
  1. In a separate terminal, run the Ollama app with the -dev flag:
go generate ./... &&
OLLAMA_DEBUG=1 go run ./cmd/app -dev

The -dev flag enables:

Build

Windows

Dependencies - either build a local copy of ollama, or use a github release

# Local dependencies
.\scripts\deps_local.ps1

# Release dependencies
.\scripts\deps_release.ps1 0.6.8

Build

.\scripts\build_windows.ps1

macOS

CI builds with Xcode 14.1 for OS compatibility prior to v13. If you want to manually build v11+ support, you can download the older Xcode here, extract, then mv ./Xcode.app /Applications/Xcode_14.1.0.app then activate with:

export CGO_CFLAGS="-O3 -mmacosx-version-min=12.0"
export CGO_CXXFLAGS="-O3 -mmacosx-version-min=12.0"
export CGO_LDFLAGS="-mmacosx-version-min=12.0"
export SDKROOT=/Applications/Xcode_14.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
export DEVELOPER_DIR=/Applications/Xcode_14.1.0.app/Contents/Developer

Dependencies - either build a local copy of Ollama, or use a GitHub release:

# Local dependencies
./scripts/deps_local.sh

# Release dependencies
./scripts/deps_release.sh 0.6.8

Build

./scripts/build_darwin.sh