Skip to content

gnerate.text doesn't work immediately after service restarts #52881

Closed

Description

@kikuchan

Description

gnerate.text fails immediately after service restarts.
Once the API is called or the other APIs are called, it succeeds.

Plugins

none

OpenCode version

opencode v0.0.0-v2-202610030153

Steps to reproduce

$ 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 it again, then:

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

Screenshot and/or share link

No response

Operating System

Linux

Terminal

xterm

Activity

  1. github-actions commented on Oct 3, 2026

    @github-actions
    Contributor

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

  2. kikuchan commented on Oct 10, 2026

    @kikuchan
    ContributorAuthor

    commit 55dde88 also resolve the issue. thanks!

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