[PR #14107] [MERGED] cmd: set context limits for cloud models in opencode #14518

Closed
opened 2026-04-13 00:56:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14107
Author: @ParthSareen
Created: 2/5/2026
Status: Merged
Merged: 2/6/2026
Merged by: @ParthSareen

Base: mainHead: parth-launch-opencode-fixes


📝 Commits (2)

  • f0d4acc cmd: set context limits for cloud models in opencode and skip reconfiguration on relaunch
  • 18a94b8 add mapping for cloud models instead

📊 Changes

4 files changed (+245 additions, -1 deletions)

View changed files

📝 cmd/config/integrations.go (+2 -0)
📝 cmd/config/integrations_test.go (+22 -0)
📝 cmd/config/opencode.go (+61 -1)
📝 cmd/config/opencode_test.go (+160 -0)

📄 Description

Adds context length and output limits for cloud models in the OpenCode integration config. Non-cloud models are left unchanged.

Skip the model selection flow when a saved integration config already exists, going straight to launch. The picker still appears on first setup or with --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/14107 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 2/5/2026 **Status:** ✅ Merged **Merged:** 2/6/2026 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth-launch-opencode-fixes` --- ### 📝 Commits (2) - [`f0d4acc`](https://github.com/ollama/ollama/commit/f0d4acc264007721c377d4714645a0ea40a23578) cmd: set context limits for cloud models in opencode and skip reconfiguration on relaunch - [`18a94b8`](https://github.com/ollama/ollama/commit/18a94b897633a96b6ff6dd7312dcc3d452b2e765) add mapping for cloud models instead ### 📊 Changes **4 files changed** (+245 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/config/integrations.go` (+2 -0) 📝 `cmd/config/integrations_test.go` (+22 -0) 📝 `cmd/config/opencode.go` (+61 -1) 📝 `cmd/config/opencode_test.go` (+160 -0) </details> ### 📄 Description Adds context length and output limits for cloud models in the OpenCode integration config. Non-cloud models are left unchanged. Skip the model selection flow when a saved integration config already exists, going straight to launch. The picker still appears on first setup or with --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-13 00:56:35 -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#14518