[GH-ISSUE #15401] not suppport opecode.jsonc #56364

Closed
opened 2026-04-29 10:43:05 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @bluelovers on GitHub (Apr 7, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15401

Originally assigned to: @hoyyeva on GitHub.

What is the issue?

.

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @bluelovers on GitHub (Apr 7, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15401 Originally assigned to: @hoyyeva on GitHub. ### What is the issue? . ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the launchbug labels 2026-04-29 10:43:05 -05:00
Author
Owner

@rick-github commented on GitHub (Apr 7, 2026):

What is the issue?

<!-- gh-comment-id:4202186975 --> @rick-github commented on GitHub (Apr 7, 2026): What is the issue?
Author
Owner

@bluelovers commented on GitHub (Apr 7, 2026):

opencode allow use jsonc (opencode.jsonc)

but ollama launch opencode --config only change or create a opencode.json

this make opencode.json and opencode.jsonc exists at same time

<!-- gh-comment-id:4202289637 --> @bluelovers commented on GitHub (Apr 7, 2026): opencode allow use `jsonc` (opencode.jsonc) but `ollama launch opencode --config` only change or create a opencode.json this make opencode.json and opencode.jsonc exists at same time
Author
Owner

@hoyyeva commented on GitHub (Apr 14, 2026):

Hi @bluelovers — this should be resolved by #15586

ollama launch opencode no longer writes to opencode.json at all. Config is now passed inline via the OPENCODE_CONFIG_CONTENT environment variable at launch time, and opencode merges it with your existing config sources on startup which that includes opencode.jsonc.

I verified this locally as an opencode.jsonc with a custom theme, instructions, and extra models is picked up and merged as expected, with no duplicate opencode.json created.

Closing as fixed — please reopen if you still see opencode.json being created after upgrading.

<!-- gh-comment-id:4247576196 --> @hoyyeva commented on GitHub (Apr 14, 2026): Hi @bluelovers — this should be resolved by #15586 `ollama launch opencode` no longer writes to `opencode.json` at all. Config is now passed inline via the `OPENCODE_CONFIG_CONTENT` environment variable at launch time, and opencode merges it with your existing config sources on startup which that includes `opencode.jsonc`. I verified this locally as an opencode.jsonc with a custom theme, instructions, and extra models is picked up and merged as expected, with no duplicate opencode.json created. Closing as fixed — please reopen if you still see opencode.json being created after upgrading.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#56364