Skip to content

OpenCode gets stuck buffering and does not send API requests #51509

Description

@VineshF1

Description

I'm facing an issue with OpenCode where prompts do not appear to trigger an API request to the server.

For example, when I type a simple prompt such as:

hello

or any other prompt, OpenCode keeps buffering indefinitely and I don't receive any response.

What I observed

  • The prompt is accepted by OpenCode.
  • The UI remains in a loading/buffering state.
  • No corresponding API request appears to reach the server when I check the server/API logs.
  • I tried switching between different models, but the behavior remains the same.
  • Since the request does not seem to reach the server at all, this may be occurring before the model/API request is actually made.
  • I'm not sure whether this is related to the device, account/session, configuration, or something else.

Troubleshooting attempted

  • Tried a simple "hello" prompt.
  • Tried multiple different prompts.
  • Tried different models.
  • Checked the API/server logs to verify whether requests were reaching the server.
  • Confirmed that the issue persists across models.

Expected behavior

When I enter a prompt, OpenCode should send the corresponding API request and eventually display the model's response.

Actual behavior

The prompt remains stuck in a buffering/loading state indefinitely, and no API request appears in the server logs.

Additional information

I can provide relevant OpenCode logs, configuration details, or network/debugging information if needed.

The most notable observation is that the request appears to get stuck before an API request is sent to the server, rather than the server returning an error.

Plugins

No response

OpenCode version

2.0.18

Steps to reproduce

For example, when I type a simple prompt such as:

hello

or any other prompt, OpenCode keeps buffering indefinitely and I don't receive any response.

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

Windows Terminal

No activity

Activity on this issue will appear here.

Activity

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