[PR #15462] [MERGED] launch/opencode: use inline config #25700

Closed
opened 2026-04-19 18:21:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15462
Author: @hoyyeva
Created: 4/9/2026
Status: Merged
Merged: 4/13/2026
Merged by: @hoyyeva

Base: mainHead: hoyyeva/opencode-inline-config


📝 Commits (8)

📊 Changes

3 files changed (+708 additions, -764 deletions)

View changed files

📝 cmd/launch/opencode.go (+113 -129)
📝 cmd/launch/opencode_test.go (+594 -634)
📝 cmd/launch/runner_exec_only_test.go (+1 -1)

📄 Description

Summary

  • Switch OpenCode integration from writing to opencode.json config file to using OPENCODE_CONFIG_CONTENT env var for runtime configuration
  • The ollama provider and model config is passed inline at launch time, which OpenCode merge with the user's existing file-based config

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15462 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 4/9/2026 **Status:** ✅ Merged **Merged:** 4/13/2026 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hoyyeva/opencode-inline-config` --- ### 📝 Commits (8) - [`8e8c620`](https://github.com/ollama/ollama/commit/8e8c6203c6853b38015b9f052227f19babc060a8) launch/opencode: use inline config instead of writing config files - [`a065723`](https://github.com/ollama/ollama/commit/a0657230e6d216439bb58faf333315c0c9467ef1) clean up - [`dbfb399`](https://github.com/ollama/ollama/commit/dbfb399d5690a922029f7aba399ab4108345c6a3) fix test - [`8516fa8`](https://github.com/ollama/ollama/commit/8516fa8fabf699b8d8724b0b12779e046bedcc73) address comments - [`962e7a1`](https://github.com/ollama/ollama/commit/962e7a10e3942b33db762e9ebc6998e65c12ed37) address comment - [`49a1c4e`](https://github.com/ollama/ollama/commit/49a1c4ec3ab788a80a24c26e1230066c54e1834e) clean up - [`de33277`](https://github.com/ollama/ollama/commit/de33277721924473b2f5ad7b0d2b03637742420f) clean up - [`07af13a`](https://github.com/ollama/ollama/commit/07af13a8a46bf1db55df4b33cfa350368ebd9ab3) fix test ### 📊 Changes **3 files changed** (+708 additions, -764 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/opencode.go` (+113 -129) 📝 `cmd/launch/opencode_test.go` (+594 -634) 📝 `cmd/launch/runner_exec_only_test.go` (+1 -1) </details> ### 📄 Description **Summary** - Switch OpenCode integration from writing to `opencode.json` config file to using `OPENCODE_CONFIG_CONTENT` env var for runtime configuration - The ollama provider and model config is passed inline at launch time, which OpenCode merge with the user's existing file-based config --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 18:21:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25700