[PR #1159] [MERGED] fix: title generation for certain providers #9830

Closed
opened 2026-02-16 18:14:14 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1159
Author: @rekram1-node
Created: 7/19/2025
Status: Merged
Merged: 7/19/2025
Merged by: @adamdotdevin

Base: devHead: fix/title-generation-bug


📝 Commits (1)

  • 2514d6c fix: title generation for certain providers

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 packages/opencode/src/session/index.ts (+1 -1)

📄 Description

Fixes: #1158

Failed to generate titles because openai and others can use reasoning models, when using a reasoning model unless you can turn off the thinking which for openai I don't think you can, the model runs out of tokens before generating title.

This fixes it and retains functionality for google provider because gemini-2.5-flash is a thinking model


🔄 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/anomalyco/opencode/pull/1159 **Author:** [@rekram1-node](https://github.com/rekram1-node) **Created:** 7/19/2025 **Status:** ✅ Merged **Merged:** 7/19/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix/title-generation-bug` --- ### 📝 Commits (1) - [`2514d6c`](https://github.com/anomalyco/opencode/commit/2514d6c1b6590f360442c0fd7814d7f63fb78384) fix: title generation for certain providers ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+1 -1) </details> ### 📄 Description Fixes: #1158 Failed to generate titles because openai and others can use reasoning models, when using a reasoning model unless you can turn off the thinking which for openai I don't think you can, the model runs out of tokens before generating title. This fixes it and retains functionality for google provider because gemini-2.5-flash is a thinking model --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:14 -05:00
yindo closed this issue 2026-02-16 18:14:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9830