ollama/app/ui/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
..
codegen app: add launch page for a simple way to launch integrations (#15182) 2026-04-02 10:31:19 -07:00
public app: add launch page for a simple way to launch integrations (#15182) 2026-04-02 10:31:19 -07:00
src app/ui: fix model picker showing stale model after switching chats (#15280) 2026-04-21 15:08:06 -04:00
.gitignore app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
.prettierignore app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
.prettierrc app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
eslint.config.js app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
index.html app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
package-lock.json ui: using streamdown AI elements for markdown rendering 2025-11-05 16:06:55 -05:00
package.json ui: using streamdown AI elements for markdown rendering 2025-11-05 16:06:55 -05:00
tailwind.config.js app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
tsconfig.app.json app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
tsconfig.json app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
tsconfig.node.json app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
tsconfig.stories.json app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
vite.config.ts app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
vitest.config.ts app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00
vitest.shims.d.ts app: add code for macOS and Windows apps under 'app' (#12933) 2025-11-04 11:40:17 -08:00