Skip to content

Windows CLI hangs after model selection, while Web UI works normally #39859

Description

@zaid-shk

Description

Windows CLI hangs after model selection, while Web UI works normally

Environment

  • OS: Windows 11
  • Node.js: v24.14.1
  • pnpm: v11.18.0 (via Corepack)
  • OpenCode: v1.18.10

Problem

The Web UI works correctly and can generate responses.

However, the CLI hangs indefinitely when running:

opencode run "hello"

or

opencode run "hello" --pure --print-logs --log-level DEBUG

No response is ever returned.

Debug logs

The logs always stop after model selection:

message=stream providerID=opencode modelID=deepseek-v4-flash-free
message="llm runtime selected" llm.runtime=ai-sdk llm.provider=opencode llm.model=deepseek-v4-flash-free

Nothing is printed after this, even after waiting several minutes.

The same behavior previously occurred with:

big-pickle

Things I already tried

  • Fresh installation
  • Removed and reinstalled OpenCode
  • Switched to Corepack-managed pnpm
  • --pure mode
  • Different default models
  • Verified internet connectivity
  • Web UI works normally on the same machine

Expected behavior

opencode run "hello" should return a response in the terminal.

Actual behavior

The CLI hangs forever after selecting the model, while the Web UI continues to function normally.

Please let me know if you'd like me to test a nightly build or provide additional logs.

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

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