Skip to content

OpenCode go unusable: TTFT extremely long #57403

Closed as not planned
Closed as not planned

Description

@Ploppy3

Description

OpenCode status reports 3.2s for TTFT, reality is much worth. See screenshot bellow of the last 30 minutes (128 requests logged)

Plugins

no plugin

OpenCode version

v2.1.0

Steps to reproduce

Send prompts...

Screenshot

Image

Operating System

Ubuntu 26.04

Terminal

Ptyxis

Activity

  1. opencode-agent commented on Oct 20, 2026

    @opencode-agent
    Contributor

    Thanks for the report, @Ploppy3! To find out what's going on, could you add a few details?

    • Model: which OpenCode Go model you're using (e.g. opencode-go/deepseek-v4.1-flash).
    • How slow it is: roughly how long you wait for the first token, compared with the 3.2s shown on the status page.
    • How often: every request, or only some? Does it also happen with a tiny prompt in a fresh session, or only in long sessions with a lot of context?
    • Errors: does the request ever fail (e.g. unexpected EOF, timeouts, 5xx)? If so, the error text or relevant lines from the logs would help.
    • Whether other models or providers are fast for you in the same setup.

    You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know when you're done.

    These existing issues might already cover your problem. The list is ordered by likelihood:

  2. changed the title [-]OpenCode go unusable TTFT extremely long[/-] [+]OpenCode go unusable: TTFT extremely long[/+] on Oct 20, 2026
  3. Ploppy3 commented on Oct 20, 2026

    @Ploppy3
    Author
    • Model: opencode-go/deepseek-v4.1-flash which points to the 1017 variant
    • How long I waited, sometimes up to 5 minutes for the model to start thinking
    • How often: p50: 6.7s, p95: 51.8s
    • Most pass 200 ok, just extremely long stand by, waiting for first token, look like queuing by the inference provider
    • Affects only opencode-go/deepseek-v4.1-flash, the official DeepSeek provider works fine, with TTFT of 1 to 2s average
  4. Ploppy3 commented on Oct 20, 2026

    @Ploppy3
    Author

    Cross-posting the controlled results from #57055, because they rule out the client-side explanations:

    • At 401k context with warm cache, max_tokens 256,000 vs 32,768: TTFT 4.175s vs 4.177s. No effect.
    • Removing x-session-affinity and X-Session-Id: no effect (4.43s, full 401,280-token cache hit).
    • Removing x-opencode-session: HTTP 400 MissingSessionID ("cannot be routed efficiently"). It is the routing key and cannot be removed.
    • Same ~400k session: TTFT ranges from 4.1s to 236.1s, all ~99.7% cached. The 236s request had 504 new tokens.
    • The 1203s entry was two 600s Cloudflare 524s followed by an 8s success; the default 300s client timeout normally hides this. In 7 days I saw 11 first-attempt 524s in ~12k requests.
    • Direct DeepSeek at 250–450k: p50 4.8s, p95 17.6s, max 42s.

    So this is not decode speed, max_tokens, or a missing/extra affinity header. It looks like gateway endpoint/queue scheduling at long context. The 4s–236s spread at the same context is the part that needs server-side logs.

  5. neriousy commented on Oct 21, 2026

    @neriousy
    Member

    Thanks for the report, and sorry for the disruption. This was a temporary problem with the hosted service or an upstream model provider, and it has since recovered. You can see live status and past incidents at https://status.opencode.ai. If you still see this now, please open a new issue with the time (with timezone), model, and request ID from the console logs.

  6. opencode-agent commented on Oct 23, 2026

    @opencode-agent
    Contributor

    Closing this for now, since we haven't heard back with the details we asked for (which OpenCode Go model, how long the first token actually takes, and how often it happens). Without them we can't tell which problem this is or try to reproduce it.

    If you still see this, reply with those details and we can reopen it. In the meantime, these existing issues may cover it:

    Thanks for reporting!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions