GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(provider): add opencode provider support in smallOptions() by beenotung · Pull Request #31760 · anomalyco/opencode

Conversation

@beenotung

@beenotung beenotung commented Jun 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 10, 2026
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@beenotung
fix(provider): add opencode provider support in smallOptions()
510f047
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.
@beenotung
beenotung force-pushed the fix/opencode-small-options branch from 8aa0bdb to 510f047 Compare June 10, 2026 20:41
@beenotung beenotung closed this Jun 11, 2026
@beenotung

beenotung commented Jun 11, 2026

Copy link
Copy Markdown
Author

Closing in favor of PR #31092 which already addresses the same issue (smallOptions missing opencode handling) with additional improvements.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@beenotung beenotung mentioned this pull request Aug 22, 2026
Auto session title generation fails for opencode provider models (smallOptions missing provider config) #30662
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Auto session title generation fails for opencode provider models (smallOptions missing provider config)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@beenotung
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.