GeezerVison is showing github.com — fix(provider): add opencode provider support in smallOptions() by beenotung · Pull Request #31760 · anomalyco/opencode
Conversation
beenotung
commented
Jun 10, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #30662
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
The smallOptions() function was missing handling for opencode provider models, causing auto session title generation to fail silently. The title agent calls llm.stream() with small: true, which triggers smallOptions(). Without the proper parameters, the API request likely fails and the error is silently swallowed.
This fix adds include and reasoningSummary parameters for opencode provider models, matching what options() already sets for them.
Note: promptCacheKey is not included because smallOptions() does not have access to sessionID. The promptCacheKey is optional and the API should still work without it for title generation.
How did you verify your code works?
The fix follows the existing pattern in options() (lines 1179-1183) which already sets these parameters for opencode models. This change adds the same parameters to smallOptions().
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The following comment was made by an LLM, it may be inaccurate:
Potential Duplicate Found
PR #31092: fix(provider): respect configured small_model and add opencode handling to smallOptions
#31092
This PR appears to be directly related to the current PR #31760. Both are addressing the same issue—adding opencode provider support to the smallOptions() function. PR #31092 specifically mentions "add opencode handling to smallOptions" which is exactly what the current PR does. You should verify whether #31092 already resolves issue #30662 or if both PRs are needed for different aspects of the fix.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The smallOptions() function was missing handling for opencode provider models,
causing auto session title generation to fail silently. This adds the same
parameters that options() sets for opencode: include and reasoningSummary.
Note: promptCacheKey is not included because smallOptions() does not have
access to sessionID. The promptCacheKey is optional and the API should
still work without it.
|
Closing in favor of PR #31092 which already addresses the same issue (smallOptions missing opencode handling) with additional improvements.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.