anomalyco / anomalyco/opencode

在使用CUI过程中,windwos 11 x64,不管是CMD还是PowerShell 都会出现异常退出,然后乱码情况。

Open
#46,318 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description
Image

以上是截图,用着用着就突然断开,然后乱码,无法再次进入,鼠标移动到命令行就乱码。CMD和PowerShell都会这样。
这是问题1,问题2:有时候也会出现编码错误,一会儿用utf8,一会儿GBK,似乎取决于命令行模式一样。这个也建议修复下,统一utf8的文件编码。

Plugins

OpenCode version

1.18.25

Steps to reproduce

正常使用就会出现。莫名其妙的出现,无规律。

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Terminal,PowerShell

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.