Skip to content

[Bug] Session title auto-generation fails silently with GitHub Copilot provider #24845

Closed

Description

@fruch

Description

Session titles are never auto-generated when using the github-copilot provider. All sessions stay as "New session - " indefinitely.

Root Cause

The title agent uses getSmallModel() which resolves to gpt-5-mini for the GitHub Copilot provider. OpenCode sends reasoning_effort: "minimal" but the GitHub Copilot API only accepts [low, medium, high], causing a 400 error. The error is silently swallowed by Effect.ignore.

Error from logs

ERROR service=llm providerID=github-copilot modelID=claude-opus-4.6 sessionID=ses_... small=false agent=... error={
  "statusCode": 400,
  "responseBody": "{\"error\":{\"message\":\"reasoning_effort \\\"minimal\\\" is not supported by model gpt-5-mini; supported values: [low medium high]\",\"code\":\"invalid_reasoning_effort\"}}\n"
} stream error

ERROR service=session.prompt error=No output generated. Check the stream for errors. failed to generate title

Steps to Reproduce

  1. Configure OpenCode with github-copilot provider
  2. Start a new session and send a message
  3. Session title remains "New session - " and is never auto-renamed

Expected Behavior

Session title should be auto-generated after the first user message.

Environment

  • OpenCode version: 1.3.5
  • Provider: github-copilot
  • Small model selected: gpt-5-mini

Relevant Code

packages/opencode/src/session/prompt.ts - ensureTitle() function (around line 162) calls the title agent with small: true, which picks gpt-5-mini. The reasoning_effort transform sends "minimal" which is incompatible with the GitHub Copilot API.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 28, 2026
  2. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue adds context not covered by those (e.g., a specific version regression or a different error path), please clarify how it differs.

  3. rekram1-node commented on Apr 28, 2026

    @rekram1-node
    Collaborator

    Upgrade been fixed for a while

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions