Skip to content

generate.text doesn't work immediately after service restarts #52241

Closed as not planned

Description

@kikuchan

Description

It fails immediately after service restarts:

$ opencode service restart
$ opencode api post /api/experimental/generate --data '{
  "prompt": "Return only the word OK.",
  "model": {
    "providerID": "openai",
    "id": "gpt-5.6-luna"
  }
}'

It says:

{"_tag":"InvalidRequestError","message":"Model unavailable: openai/gpt-5.6-luna"}
HTTP 400 Bad Request

but, running again, then:

{"data":{"text":"OK"}}

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Add the OpenCode version and system information (at least the OS/environment), which are currently missing. The reproduction commands and observed error are helpful.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be related to existing catalog-readiness reports. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

Metadata

Metadata

Assignees

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