Win11下,无法打开OpenCode #4220

Closed
opened 2026-02-16 17:43:04 -05:00 by yindo · 3 comments
Owner

Originally created by @ghj1976 on GitHub (Jan 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

如图:
Image

Plugins

superpowers

OpenCode version

1.1.2

Steps to reproduce

命令行执行 opencode 就会这样, 之前v1.0.223应该是可以的,后来升级了最新版本,同时装了 https://github.com/obra/superpowers 插件,之后就再也打不开了。

Screenshot and/or share link

No response

Operating System

win11

Terminal

CMD

Originally created by @ghj1976 on GitHub (Jan 5, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 如图: <img width="1814" height="1007" alt="Image" src="https://github.com/user-attachments/assets/a0c566ed-0fe0-480d-9168-0a2f51aeab84" /> ### Plugins superpowers ### OpenCode version 1.1.2 ### Steps to reproduce 命令行执行 opencode 就会这样, 之前v1.0.223应该是可以的,后来升级了最新版本,同时装了 https://github.com/obra/superpowers 插件,之后就再也打不开了。 ### Screenshot and/or share link _No response_ ### Operating System win11 ### Terminal CMD
yindo added the windowsbug labels 2026-02-16 17:43:04 -05:00
yindo closed this issue 2026-02-16 17:43:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 5, 2026):

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

  • #5223: Can't open opencode after install (Windows 11 - fails to launch after npm install with plugin-related environment issues)
  • #5485: Opencode become stuck all of a sudden. Does not launch anymore (Windows/WSL - TUI initialization failure)
  • #5556: 1.0.153 doesn't seem to work on windows (Windows - startup failure in specific version that was later fixed)
  • #5793: [BUG]: client.app is undefined when passed to plugins, causing crashes in plugin logging (Plugin initialization crashes)
  • #4850: Plugin syntax errors are handled poorly (Plugin loading failures causing crashes/exits)

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

@github-actions[bot] commented on GitHub (Jan 5, 2026): This issue might be a duplicate of existing issues. Please check: - #5223: Can't open opencode after install (Windows 11 - fails to launch after npm install with plugin-related environment issues) - #5485: Opencode become stuck all of a sudden. Does not launch anymore (Windows/WSL - TUI initialization failure) - #5556: 1.0.153 doesn't seem to work on windows (Windows - startup failure in specific version that was later fixed) - #5793: [BUG]: client.app is undefined when passed to plugins, causing crashes in plugin logging (Plugin initialization crashes) - #4850: Plugin syntax errors are handled poorly (Plugin loading failures causing crashes/exits) Feel free to ignore if none of these address your specific case.
Author
Owner

@ghj1976 commented on GitHub (Jan 5, 2026):

set OPENCODE_DISABLE_DEFAULT_PLUGINS=true
opencode

没有效果,还是这样

@ghj1976 commented on GitHub (Jan 5, 2026): set OPENCODE_DISABLE_DEFAULT_PLUGINS=true opencode 没有效果,还是这样
Author
Owner

@ghj1976 commented on GitHub (Jan 5, 2026):

删除了下面两个目录,重新打开就正常了

C:\Users\郭红俊\.local\share\opencode
C:\Users\郭红俊\.cache\opencode

应该是插件的问题

@ghj1976 commented on GitHub (Jan 5, 2026): 删除了下面两个目录,重新打开就正常了 ``` bash C:\Users\郭红俊\.local\share\opencode C:\Users\郭红俊\.cache\opencode ``` 应该是插件的问题
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4220