You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chinese/Unicode path broken since v1.1.54 - "Failed to reload [object Object]" / "List files failed" #13061
Opening a workspace with Chinese characters in the path fails with multiple errors since v1.1.54. This worked
correctly in v1.1.53 and all earlier versions.
Plugins
No response
OpenCode version
OpenCode Desktop version: v1.1.56 (also broken in v1.1.54, v1.1.55)
Steps to reproduce
Create or open a project with Chinese characters in the path, e.g. E:\LocalProjects\DailyUse\chrome控制台插件
These appear to be related to the same root cause affecting Unicode/non-ASCII paths on Windows in v1.1.54+. Consider reviewing these together for a unified fix.
Confirming this is not specific to Chinese — it reproduces with any composed (NFC) non-ASCII directory name, e.g. Cyrillic й (U+0439) / ё (U+0451), on Windows 11 / NTFS. Same regression window (works on ≤ v1.1.53).
Root cause looks like Unicode normalization. The server queries lstat / realPath against the NFD (decomposed) form of the path, but NTFS stores filenames in NFC, so lstat returns ENOENT and file listing fails. Only names that differ between NFC and NFD are affected (which is why an ASCII-ish root can open while specific subfolders fail).
Server log:
ERROR service=server error=NotFound: FileSystem.realPath (D:\...\Отчёты)
Caused by: ENOENT: no such file or directory, lstat 'D:\...\Отчёты'
cause=PlatformError: NotFound: FileSystem.realPath (...)
Verified against the real, existing directory:
os.path.exists(as-is) -> True # the directory exists
NFC == NFD -> False # name has composed chars (ё/й)
os.path.exists(NFC) -> True
os.path.exists(NFD) -> False # <-- the form the app queries
listdir(parent) returns the entry name normalized as NFC
Open D:\octest in OpenCode Desktop → file tree fails with "Failed to list files" / realPath ... ENOENT.
Note: the symlink workaround from #13112 does not help when the affected characters are in nested directory names rather than only the project-root path — aliasing the root to an ASCII path leaves the inner folders failing on listing.
Suggested fix: on Windows, normalize lookups to NFC (or preserve the OS-returned form) before lstat / realPath; don't assume NFD.
Workaround that worked for me (Windows, opencode desktop 1.18.14):
I was hitting the same "List files failed" / "Unexpected server error" on Windows. The fix turned out to be embarrassingly simple: I just moved the project from a non-ASCII parent directory (path contained Chinese characters) to a pure-ASCII root like C:\projects\xxx\. No code changes, no state reset, no version downgrade needed.
This matches @GrayXDD's NFD/NFC analysis above. The server queries lstat in NFD but NTFS returns NFC -> ENOENT -> wrapped as HTTP 500. Until the upstream fix lands, keep project paths pure ASCII on Windows is the most reliable workaround. I tried all the "official" suggestions (clearing %APPDATA%\ai.opencode.desktop\, downgrading to 1.18.13, blocking the updater via hosts) -- none of those addressed the actual bug.
Activity
github-actions commentedon Feb 11, 2026
This issue might be a duplicate of or related to existing issues. Please check:
These appear to be related to the same root cause affecting Unicode/non-ASCII paths on Windows in v1.1.54+. Consider reviewing these together for a unified fix.
alexyaroshuk commentedon Feb 13, 2026
I believe this is fixed, please try latest version. Then, if fixed, please close the issue
zer0Black commentedon Apr 10, 2026
The problem has occurred again.
GrayXDD commentedon Jun 8, 2026
Confirming this is not specific to Chinese — it reproduces with any composed (NFC) non-ASCII directory name, e.g. Cyrillic
й(U+0439) /ё(U+0451), on Windows 11 / NTFS. Same regression window (works on ≤ v1.1.53).Root cause looks like Unicode normalization. The server queries
lstat/realPathagainst the NFD (decomposed) form of the path, but NTFS stores filenames in NFC, solstatreturnsENOENTand file listing fails. Only names that differ between NFC and NFD are affected (which is why an ASCII-ish root can open while specific subfolders fail).Server log:
Verified against the real, existing directory:
Minimal reproduction (no Chinese needed):
Open
D:\octestin OpenCode Desktop → file tree fails with "Failed to list files" /realPath ... ENOENT.Note: the symlink workaround from #13112 does not help when the affected characters are in nested directory names rather than only the project-root path — aliasing the root to an ASCII path leaves the inner folders failing on listing.
Suggested fix: on Windows, normalize lookups to NFC (or preserve the OS-returned form) before
lstat/realPath; don't assume NFD.simondkan commentedon Aug 6, 2026
Workaround that worked for me (Windows, opencode desktop 1.18.14):
I was hitting the same "List files failed" / "Unexpected server error" on Windows. The fix turned out to be embarrassingly simple: I just moved the project from a non-ASCII parent directory (path contained Chinese characters) to a pure-ASCII root like
C:\projects\xxx\. No code changes, no state reset, no version downgrade needed.This matches @GrayXDD's NFD/NFC analysis above. The server queries lstat in NFD but NTFS returns NFC -> ENOENT -> wrapped as HTTP 500. Until the upstream fix lands, keep project paths pure ASCII on Windows is the most reliable workaround. I tried all the "official" suggestions (clearing
%APPDATA%\ai.opencode.desktop\, downgrading to 1.18.13, blocking the updater via hosts) -- none of those addressed the actual bug.github-actions commentedon Oct 7, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.