Skip to content

ollama launch opencode requires all previously used models #19907

@FlorianB-DE

Description

@FlorianB-DE

Description

run ollama launch opencode --model x, run a prompt and then run ollama launch opencode --model y. Now opencode will always need model x installed. I removed:

  • rm -rf /tmp/ollama-backups/
  • rm -rf ~/.local/state/opencode/
  • rm -rf ~/.config/opencode/

Still requires. I've deleted all sessions as well, still required.
IDK if this is intentional but I really dont want to retain any data.
At max ollama launch opencode --model x should return to the last session I had with model x but never require me to have a model installed....

Plugins

No response

OpenCode version

1.3.0

Steps to reproduce

  1. ollama launch opencode --model x
  2. ollama rm x
  3. ollama launch opencode --model y

Screenshot and/or share link

Image

Pressing no just terminates the program
Image

Operating System

Linux nixos 6.12.77 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 13 16:20:49 UTC 2026 x86_64 GNU/Linux

Terminal

Bash

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)nix

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions