在中文路径下启动会报错 #9059

Closed
opened 2026-02-16 18:11:32 -05:00 by yindo · 3 comments
Owner

Originally created by @GWK-ENG on GitHub (Feb 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

在中文路径使用opencode启动会报错

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Originally created by @GWK-ENG on GitHub (Feb 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 在中文路径使用opencode启动会报错 ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="532" height="537" alt="Image" src="https://github.com/user-attachments/assets/a7e21f4f-d7fe-4f94-8c2e-2cd533e021a4" /> ### Operating System _No response_ ### Terminal _No response_
yindo added the bugneeds:compliance labels 2026-02-16 18:11:32 -05:00
yindo closed this issue 2026-02-16 18:11:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

This issue doesn't fully meet our contributing guidelines.

What needs to be fixed:

  • Multiple required fields are left as placeholder text (No response): OpenCode version, Steps to reproduce, Operating System, and Terminal information
  • For a bug report, please provide your OpenCode version and the steps needed to reproduce the error
  • Include your operating system and terminal information to help with debugging

Please edit this issue to address the above within 2 hours, or it will be automatically closed.


Potential duplicates found:

This issue appears to be a duplicate of several existing reports about the same problem with non-ASCII (Chinese) paths:

  • #13087: [Crash] Crash when working directory path contains non-ASCII characters (e.g. Chinese)
  • #13063: opencode在带有中文路径的文件下无法打开 (Chinese path issue on Windows)
  • #13023: Windows: opencode fails in non-ASCII (Chinese) directory with invalid x-opencode-directory header
  • #13061: Chinese/Unicode path broken since v1.1.54

All these issues report the same root cause: the directory path is passed directly as an HTTP header value without proper encoding. The technical fix has already been identified in #13087.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions[bot] commented on GitHub (Feb 11, 2026): <!-- issue-compliance --> This issue doesn't fully meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md). **What needs to be fixed:** - Multiple required fields are left as placeholder text (_No response_): OpenCode version, Steps to reproduce, Operating System, and Terminal information - For a bug report, please provide your OpenCode version and the steps needed to reproduce the error - Include your operating system and terminal information to help with debugging Please edit this issue to address the above within **2 hours**, or it will be automatically closed. --- **Potential duplicates found:** This issue appears to be a duplicate of several existing reports about the same problem with non-ASCII (Chinese) paths: - #13087: [Crash] Crash when working directory path contains non-ASCII characters (e.g. Chinese) - #13063: opencode在带有中文路径的文件下无法打开 (Chinese path issue on Windows) - #13023: Windows: opencode fails in non-ASCII (Chinese) directory with invalid x-opencode-directory header - #13061: Chinese/Unicode path broken since v1.1.54 All these issues report the same root cause: the directory path is passed directly as an HTTP header value without proper encoding. The technical fix has already been identified in #13087. If you believe this was flagged incorrectly, please let a maintainer know.
Author
Owner

@xiaoyutonxue1 commented on GitHub (Feb 11, 2026):

Image 同样的问题,我让opencode自己解决然后恢复了
@xiaoyutonxue1 commented on GitHub (Feb 11, 2026): <img width="2400" height="1431" alt="Image" src="https://github.com/user-attachments/assets/331c8935-438c-4824-9ad9-2c1cc2a16c7d" /> 同样的问题,我让opencode自己解决然后恢复了
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new issue that follows our issue templates.

@github-actions[bot] commented on GitHub (Feb 11, 2026): This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window. Feel free to open a new issue that follows our issue templates.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9059