[PR #1064] [MERGED] fix: generate title should use same options as model it uses to gen #9795

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

📋 Pull Request Information

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

Base: devHead: fix/options-bug


📝 Commits (1)

  • 78e8caf fix: generate title should use same options as model it uses to gen

📊 Changes

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

View changed files

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

📄 Description

For title generation we use const small = (await Provider.getSmallModel(input.providerID)) ?? model however we are setting providerOptions: model.info.options, this looks like a small bug that wasn't caught when small was added. Super basic fix here of just ensuring we use the options for the model we are actually using to gen


🔄 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/1064 **Author:** [@rekram1-node](https://github.com/rekram1-node) **Created:** 7/16/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix/options-bug` --- ### 📝 Commits (1) - [`78e8caf`](https://github.com/anomalyco/opencode/commit/78e8caf52a6e2fc9d2f9e93e9e98b35b4f36b99f) fix: generate title should use same options as model it uses to gen ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+1 -1) </details> ### 📄 Description For title generation we use `const small = (await Provider.getSmallModel(input.providerID)) ?? model` however we are setting `providerOptions: model.info.options,` this looks like a small bug that wasn't caught when small was added. Super basic fix here of just ensuring we use the options for the model we are actually using to gen --- <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:11 -05:00
yindo closed this issue 2026-02-16 18:14:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9795