Skip to content

opencode + ollama suddenly not working correctly, outputting prompt objects in json #37543

Closed as not planned

Description

@la-xirsoi

Description

I had a lot of success working with the qwen2.5-coder:14b on Ollama + opencode. I was able to get a lot of work done in a medium size project and was very pleased with the results. This was throughout June, didn't use it much this month until now. The only real change is updating OpenCode.

I went to use this setup to create a (relatively) simple python script and all of a sudden it wouldn't do any work. It would output a json object describing what it should be doing, or at best a todo list that it never advanced through. It would just "think" about it repeatedly over a few minutes.

I also tried using gemma4:12b, but got the same results.

Plugins

none

OpenCode version

1.18.3

Steps to reproduce

  1. Launch opencode with ollama ollama launch opencode --model gemma4:12b (mature project, empty folder, doesn't matter).
  2. Ask a basic question: What version of C# does this project use?
  3. Get back a prompt object in json, e.g.
{"name": "explore", "arguments": {"task_id": null, "subagent_type": "quick", "prompt": "I need to find a class named 'Foo'. Please search the codebase for this class and locate any relevant files."}}

That's a weird one, usually the prompt in the object is just a rewording of what my prompt.

Screenshot and/or share link

https://opncd.ai/share/TWV6fZ3I

Operating System

Windows 11 with WSL

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jul 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. github-actions commented on Sep 16, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions