[BUG] Opencode desktop hangs after every edit.
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
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.
Last few releases have been mad unstable.
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.
me too. Win10, 1.1.53, 1.1.55, 1.1.56
How can i get the old version?
I found the 1.1.52 works fine. get that from : https://github.com/anomalyco/opencode/releases/tag/v1.1.52
以下是用opencode分析此问题后得到的结论:
根据我的分析,最可能导致问题的是这个改动:
"Hide prompt input when there are permissions requests or questions"
问题机制:
- 编辑文件后,系统需要权限确认(如写入外部目录)
- v1.1.53 引入了新的逻辑:当有权限请求时隐藏提示输入 3.在 Windows 桌面端,这个逻辑可能存在问题: 权限请求被触发但 UI 没有正确显示 或者提示输入被隐藏后没有正确恢复 导致整个流程阻塞等待用户响应,但用户看不到请求
+1
+1 opencode version 1.2.15 on wsl (windows) keeps hanging while writing prompts
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.
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.