You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the GitHub Copilot provider in OpenCode, session auto-title generation can fail if the enterprise Copilot policy disables the small model that OpenCode selects for title generation.
In my case, github-copilot/gpt-5-mini was disabled in our enterprise Copilot settings. New sessions stayed on the default New session - ... title instead of getting an auto-generated conversation title after the first prompt.
From the current codepath, this seems consistent with title generation using Provider.getSmallModel(...) first, and GitHub Copilot prioritizing gpt-5-mini as a small model for title generation. If that model is unavailable due to enterprise policy, title generation appears to fail without a clear fallback or user-facing error.
It would be helpful if OpenCode either:
fell back to another available GitHub Copilot small model for title generation, or
surfaced a clear error explaining that the selected small model is disabled
I ran into the same issue and asked OpenCode to investigate:
What's happening
OpenCode auto-selects github-copilot/gpt-5-mini as your small_model (per the priority list in the binary).
For title generation, OpenCode sends reasoning_effort: "minimal" (it wants the cheapest/fastest call).
GitHub Copilot's gpt-5-mini endpoint rejects "minimal" — it only accepts low, medium, or high. The request 400s.
The error is swallowed silently (no retry, no fallback), so the session keeps its placeholder title New session - .
This is a Copilot-side API change — gpt-5-mini used to accept minimal. Your DB confirms it: every session through April 12 got a real title; everything April 15 and later is stuck as "New session - ...".
Fix
Pin small_model to one that doesn't get a reasoning_effort: "minimal" rejection. Add to ~/.config/opencode/opencode.json:
"small_model": "github-copilot/claude-haiku-4.5"
I added "small_model": "github-copilot/claude-haiku-4.5", to ~/.config/opencode/opencode.json and it fixed it.
@StefanLobbenmeier I hear you on that, but the issue here is that we can't use gpt-5-mini because opencode hardcodes reasoning_effort: "minimal" AFAIK, and copilot doesn't support that on gpt-5-mini anymore. I'm not sure about the others.
If you are on a more recent opencode version I think this should be completely closed. We sync the models from ur account now so if it's disabled it should use other models
Activity
github-actions commentedon Mar 14, 2026
This issue might be a duplicate of existing issues. Please check:
small_modelis invalid #14807: Same silent failure behavior whensmall_modelis unavailable, with detailed source-level analysis and the same suggested resolution.If your issue adds new context specific to the GitHub Copilot enterprise policy scenario, please clarify how it differs from those issues.
johnnyhuy commentedon Mar 14, 2026
Happy to code commit something though there's a few considerations
StefanLobbenmeier commentedon Mar 30, 2026
Our enterprise allows usage of 4.1 and 4o but not 5-mini (not sure if there is a reason or if models are only enabled after someone requests them)
Since all three of them are free to use, maybe we can automatically fallback to the other 2 in case it fails? Although to be honest I would still prefer a warning, but the warning could suggest to try one of the three and link to the copilot models to show which models are cheap: https://docs.github.com/en/copilot/reference/ai-models/supported-models#model-multipliers
t-monaghan commentedon Mar 30, 2026
I've been having the same session title issues.
Model provider - GitHub Copilot
Small model - Haiku 4.5 (enabled)
Interestingly 5-mini is enabled for my organisation, and after configuring the small model to 5-mini the issue has resolved.
reasoning_effort: minimal#22796 as a duplicate of this issuereasoning_effort: minimal#22796 as a duplicate of this issuemrw commentedon Apr 28, 2026
I ran into the same issue and asked OpenCode to investigate:
I added
"small_model": "github-copilot/claude-haiku-4.5",to~/.config/opencode/opencode.jsonand it fixed it.StefanLobbenmeier commentedon Apr 29, 2026
Haiku has a multiplier of 0.33, I would recommend using one of the free models instead so you don’t burn your tokens on it:
https://docs.github.com/en/copilot/reference/ai-models/supported-models#model-multipliers
So GPT 4.1, 4o, 5 mini or Raptor mini
mrw commentedon Apr 29, 2026
@StefanLobbenmeier I hear you on that, but the issue here is that we can't use gpt-5-mini because opencode hardcodes
reasoning_effort: "minimal"AFAIK, and copilot doesn't support that on gpt-5-mini anymore. I'm not sure about the others.rekram1-node commentedon Apr 29, 2026
@mrw that is inaccurate, we dont hardcode that for copilot anymore
rekram1-node commentedon Apr 29, 2026
If you are on a more recent opencode version I think this should be completely closed. We sync the models from ur account now so if it's disabled it should use other models