[PR #15434] launch: add thinking capability detection to opencode #41029

Open
opened 2026-04-23 01:46:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15434
Author: @hoyyeva
Created: 4/8/2026
Status: 🔄 Open

Base: mainHead: hoyyeva/opencode-thinking


📝 Commits (3)

📊 Changes

2 files changed (+179 additions, -0 deletions)

View changed files

📝 cmd/launch/opencode.go (+50 -0)
📝 cmd/launch/opencode_test.go (+129 -0)

📄 Description

  • Detect model thinking capability during ollama launch opencode and write reasoning config to OpenCode config file.
  • Enable users to toggle thinking on and off via ctrl+T in OpenCode's tui for thinking models
  • Default GPT-OSS models to medium reasoning effort with full level support

🔄 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/15434 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 4/8/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `hoyyeva/opencode-thinking` --- ### 📝 Commits (3) - [`30d9100`](https://github.com/ollama/ollama/commit/30d9100fff0980ac74c01a31523499e452c92ad4) launch: add thinking capability detection to opencode - [`03f9e57`](https://github.com/ollama/ollama/commit/03f9e572742d5345b800a3ccc7044aba2074f2e4) add test - [`7a3ed0a`](https://github.com/ollama/ollama/commit/7a3ed0a1b44a2dff7da4ef7e0dc9ac837c8c4741) adding test ### 📊 Changes **2 files changed** (+179 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/opencode.go` (+50 -0) 📝 `cmd/launch/opencode_test.go` (+129 -0) </details> ### 📄 Description - Detect model thinking capability during `ollama launch opencode` and write reasoning config to OpenCode config file. - Enable users to toggle thinking on and off via `ctrl+T` in OpenCode's tui for thinking models - Default GPT-OSS models to medium reasoning effort with full level support --- <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-23 01:46:39 -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#41029