Skip to content

[BUG] Desktop app fails to load projects with Chinese characters in path after update #13112

Closed

Description

@meilipanduola

Description

Description

After updating to the latest version of OpenCode Desktop, projects with Chinese characters (or other non-ASCII characters) in their file paths fail to load. The previous version worked fine with Chinese paths.

Steps to Reproduce

  1. Install the latest OpenCode Desktop version
  2. Try to open a project with Chinese characters in the path (e.g., F:\编程\小程序\中文名26.01.23)
  3. The application shows multiple errors and fails to load the project

Expected Behavior

The project should load successfully, as it did in previous versions of OpenCode.

Actual Behavior

The following errors appear:

  • "Failed to reload [project name]" with [object Object]
  • "无法加载 [project name] 的会话" (Cannot load project sessions)
  • "列出文件失败" (Failed to list files)

Console error:

Error: Stale read from <Show>.
at castError (http://tauri.localhost/assets/bindings-BpGTC5wg.js:1:10353)
at handleError (http://tauri.localhost/assets/bindings-BpGTC5wg.js:1:10586)
...

Environment

  • OS: Windows 11
  • OpenCode Version: Latest (updated on 2026-02-11)
  • Path Example: F:\编程\小程序\中文名26.01.23
  • Previous Version: Worked fine with Chinese paths

Additional Context

  • The issue appears to be related to UTF-8 encoding of paths
  • In the config file (opencode.global.dat), Chinese characters are incorrectly encoded
  • Workaround: Creating symbolic links with English names works fine

Workaround

Creating a symbolic link with an English path works:

New-Item -ItemType SymbolicLink -Path "F:\badminton-master" -Target "F:\编程\小程序\中文名"

Impact

This is a regression from previous versions and affects users in China, Japan, Korea, and other regions using non-ASCII characters in file paths.

Suggested Fix

  • Ensure proper UTF-8 encoding for file paths throughout the application
  • Test with non-ASCII characters in paths before releases
  • Add automated tests for internationalization (i18n) path handling

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Feb 11, 2026

    @github-actions
    Contributor

    This issue appears to be a duplicate of existing reports about non-ASCII (Chinese) character handling in file paths. Please check:

    These reports appear to be describing the same underlying issue with UTF-8 encoding of file paths that began in v1.1.54.

    It may be helpful to consolidate discussion in one of the existing issues to avoid fragmentation.

  2. alexyaroshuk commented on Feb 11, 2026

    @alexyaroshuk
    Contributor

    This appears to be fixed by #13131, and expected in next release

  3. github-actions commented on Apr 13, 2026

    @github-actions
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions