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 — [bug] v2.0.27 title agent ignores agents.title.model (and removed small_model), uses hardcoded gpt-5.4-nano · Issue #54692 · anomalyco/opencode

[bug] v2.0.27 title agent ignores agents.title.model (and removed small_model), uses hardcoded gpt-5.4-nano #54692

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[bug] v2.0.27 title agent ignores agents.title.model (and removed small_model), uses hardcoded gpt-5.4-nano#54692
Copy link

Description

@ptfarina
ptfarina
opened on Oct 12, 2026
Issue body actions

Summary

On OpenCode v2.0.27, interactive session title generation (agent=title, small=true) always uses opencode/gpt-5.4-nano (the provider-default small model), ignoring both the v2-native override agents.title.model and the legacy small_model. When that model is unavailable (here: Insufficient account funds), sessions stay stuck at New session - <timestamp> with no fallback.

Environment

  • OpenCode v2.0.27 (server, fresh restart after upgrade from 2.0.23 — same behavior on both)
  • Provider: opencode (OpenCode Console), main model opencode/muse-spark-1.3-contributor-free

Config (~/.config/opencode/opencode.json)

{
  "small_model": "opencode/mimo-v2.6-flash-free",
  "agent": {
    "title": { "model": "opencode/mimo-v2.6-flash-free" }
  }
}

opencode debug config resolves this to agents.title.model = {providerID: opencode, model: mimo-v2.6-flash-free}, but small_model resolves to None (dropped).

Log evidence (after restart on 2.0.27, config above active)

stream providerID=opencode modelID=gpt-5.4-nano session.id=ses_ed196b45dffeCizCO4H4bEuvSP small=true agent=title mode=primary
stream error ... AI_APICallError: Upstream request failed: Insufficient account funds

Session remains New session - 2026-10-12T04:40:15.010Z. Same failure observed on 3 separate sessions across 2.0.23 and 2.0.27.

Expected (per v2 migration docs)

Per opencode.ai/v2/docs/migrate-v1: 'small_model becomes the model selection for the built-in title agent. Native V2 configuration should use agents.title.model instead.' So the title agent should use mimo-v2.6-flash-free here.

Related

  • small_model ignored for title agent + FreeUsageLimitError retry loop blocks session for ~90s #31042 (small_model ignored — reportedly fixed by fix(provider): respect configured small_model and add opencode handling to smallOptions #31092, but this path still ignores both keys on 2.0.27)
  • Auto session title generation fails for opencode provider models (smallOptions missing provider config) #30662 (smallOptions missing opencode handling)
  • v2 spec: 'small_model → remove. Do not port.'

Activity

  1. opencode-agent commented on Oct 12, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 12, 2026 – with OpenCode Agent
    Contributor
    More actions

    Thanks for the detailed report. I couldn't reproduce this on v2.0.27.

    I pointed OpenCode at a test provider that logs which model each request uses. The provider offered a main model, a title model and gpt-5.4-nano. Then I sent a message with each of these configs:

    • "small_model": "fake/title-model"
    • "agent": { "title": { "model": "fake/title-model" } }
    • "agents": { "title": { "model": { "providerID": "fake", "model": "title-model" } } }

    Each time, the title request used title-model. When I pointed the title agent at a model that doesn't exist, the title was generated with the session's main model instead (that silent fallback is #51159). It never used the provider's default small model.

    One thing stood out: the log line in your report (stream providerID=opencode modelID=gpt-5.4-nano ... small=true agent=title mode=primary) doesn't match anything v2.0.27 logs. v2 logs look like timestamp=... level=INFO message=.... Your line looks like v1 (opencode-ai 1.x) output, so the server handling your sessions may be an older install rather than 2.0.27. Could you check:

    1. Which process is serving your sessions? For example, run opencode service to see the background service, check ps aux | grep opencode, and run which -a opencode. An older opencode-ai install or a long-running opencode serve could still be handling requests.
    2. Does it still happen with opencode --standalone --print-logs --log-level debug (--print-logs shows server logs only in standalone mode)? If it does, please paste the lines around the title request.

    Related issues, ordered by how likely they are to matter here:

    • small_model is silently ignored once its model is marked deprecated in the catalog #51159: if the configured title model can't be used, OpenCode silently switches to another model
    • title generation: Model.small selects a metered model even when the provider offers a free one #52004: how the default small model is picked for titles
    • small_model ignored for title agent + FreeUsageLimitError retry loop blocks session for ~90s #31042 / fix(provider): respect configured small_model and add opencode handling to smallOptions #31092: earlier v1 fix for small_model being ignored
  2. opencode-agent commented on Oct 15, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 15, 2026 – with OpenCode Agent
    Contributor
    More actions

    I'm closing this for now since we haven't heard back. On v2.0.27 I couldn't reproduce it. The title agent used the configured model whether it was set with small_model, agent.title.model or agents.title.model. When that model couldn't be used, the title fell back to the session's main model, not gpt-5.4-nano. The log line in the report looks like it came from a v1 (opencode-ai 1.x) process, so an older server may still be handling your sessions.

    If it still happens on v2, please reply here or open a new issue. Include which process is serving your sessions (opencode service, which -a opencode) and the log lines around the title request from opencode --standalone --print-logs --log-level debug, and we'll take another look. Thanks for the detailed report!

  3. opencode-agent
    closed this as not plannedon Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.