opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[BUG] Opencode desktop hangs after every edit.

Open sadbath opened this issue 10 months ago • 10 comments

Description

On any model, after it has edited some code (whether it be a few hundred lines, to 1-2 lines.) the editor hangs till I manually kill it. This is for the latest updated OpenCdoe Desktop

Plugins

No response

OpenCode version

Latest available on Desktop

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

sadbath avatar Jan 20 '26 22:01 sadbath

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

  • #6959: lsp bug: edit tool stalls after first diff; assistant hangs
  • #9622: windows vscode opencode extension process freeze
  • #8937: OpenCode hangs when working directory has trailing space in name

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 20 '26 22:01 github-actions[bot]

Last few releases have been mad unstable.

aditi27004 avatar Jan 21 '26 01:01 aditi27004

It happens for me randomly. I was using antigravity sonnet 4.5 and then when I switched to gh copilor sonnet, it kept getting stuck.

itzrnvr avatar Jan 21 '26 01:01 itzrnvr

me too. Win10, 1.1.53, 1.1.55, 1.1.56

How can i get the old version?

RogerYe avatar Feb 11 '26 00:02 RogerYe

I found the 1.1.52 works fine. get that from : https://github.com/anomalyco/opencode/releases/tag/v1.1.52

RogerYe avatar Feb 11 '26 04:02 RogerYe

以下是用opencode分析此问题后得到的结论:

根据我的分析,最可能导致问题的是这个改动:

"Hide prompt input when there are permissions requests or questions"

问题机制:

  1. 编辑文件后,系统需要权限确认(如写入外部目录)
  2. v1.1.53 引入了新的逻辑:当有权限请求时隐藏提示输入 3.在 Windows 桌面端,这个逻辑可能存在问题: 权限请求被触发但 UI 没有正确显示 或者提示输入被隐藏后没有正确恢复 导致整个流程阻塞等待用户响应,但用户看不到请求

RogerYe avatar Feb 11 '26 09:02 RogerYe

+1

cpkt9762 avatar Feb 25 '26 22:02 cpkt9762

+1 opencode version 1.2.15 on wsl (windows) keeps hanging while writing prompts

aviral-agarwal avatar Mar 03 '26 15:03 aviral-agarwal

This is likely due to a network issue. OpenCode will attempt to download the corresponding LSP Server. In my case it's Java LSP(JDTLS), and after I provide it manually, everything works fine.

KeroZhai avatar Apr 08 '26 05:04 KeroZhai

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

github-actions[bot] avatar Jul 06 '26 03:07 github-actions[bot]