Skip to content

not responding #25865

Closed as not planned
Closed as not planned

Description

@nguyenphi37

Description

Environment

  • OpenCode Desktop v1.14.39 (Windows 11)
  • Ollama running locally (e.g., http://localhost:11434/v1)
  • Model: various (deepseek-r1, qwen2.5-coder, llama3, etc.)

Steps to Reproduce

  1. Configure OpenCode Desktop to use Ollama Cloud
  2. Ask a complex question that requires long thinking (e.g., "refactor this entire module")
  3. Or trigger a sub-agent / shell command execution
  4. Wait while Ollama is generating response (can take 30s-2min for complex tasks)
  5. App freezes — UI unresponsive, can't scroll/click/type

What Happens

  1. Send request → Ollama starts thinking (streaming response)
  2. During long generation, OpenCode UI gradually becomes sluggish
  3. Status indicator turns red after a while
  4. App fully freezes — window shows blank/white, no interaction possible
  5. Sometimes Ollama has already finished responding but OpenCode is stuck
  6. Only recovery: kill and restart OpenCode

This happens especially often with:

  • Models that have long thinking chains
  • Sub-agent / shell tool execution
  • Multiple sequential tool calls (Ollama calling tools → OpenCode executing → sending back)

Expected Behavior

  • OpenCode should remain responsive while Ollama is generating
  • Long responses should not freeze the UI
  • If connection drops, app should recover gracefully (reconnect, show error, retry)

Additional Context

  • Ollama itself is running fine — request completes successfully when checked via curl
  • The freeze is on OpenCode's side — Tauri/webview becomes unresponsive
  • After restarting OpenCode, it works again until the next long request
  • v1.14.39 "Respect HTTP_PROXY env vars" may be related — if HTTP_PROXY is set in system, requests could be routed incorrectly
  • No HTTP_PROXY set in my environment, but the freeze still happens

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

Image Image Image

Operating System

windows 11

Terminal

No response

Activity

  1. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue might be related to existing reports of OpenCode freezing during streaming. Please check:

    If the freeze is specifically tied to how OpenCode handles long-running Ollama streams rather than a network issue, this may be a distinct bug worth tracking separately.

  2. nguyenphi37 commented on May 5, 2026

    @nguyenphi37
    Author

    I'm using Wi-Fi and an open-code app, and it's freezing.

  3. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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