Skip to content

OpenCode 桌面版 不支持读取中文名文件 #8172

Closed

Description

@aaronlei

Description

ubuntu24 桌面版环境

Version: 1.1.16

在某个会话中,用OpenCode 生成了个中文名的markdown文件,在接下来的对话中对要求 agent 这个md文件修改时报错如下。

SyntaxError: '[data-key="file://"md/346\241\243.md""]' is not a valid selector.
querySelector@[native code]
@tauri://localhost/assets/session-3b5FGVVY.js:30:6115
Kv@tauri://localhost/assets/index-DcPG2uOI.js:2:8252
bl@tauri://localhost/assets/index-DcPG2uOI.js:2:7983
id@tauri://localhost/assets/index-DcPG2uOI.js:2:9468
Jk@tauri://localhost/assets/index-DcPG2uOI.js:2:10732
tn@tauri://localhost/assets/index-DcPG2uOI.js:2:9656
Xk@tauri://localhost/assets/index-DcPG2uOI.js:2:10317
tn@tauri://localhost/assets/index-DcPG2uOI.js:2:9668
M@tauri://localhost/assets/index-DcPG2uOI.js:2:3812
T@tauri://localhost/assets/index-DcPG2uOI.js:2:3770

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 Jan 13, 2026

    @github-actions
    Contributor

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

    The core issue appears to be related to how OpenCode handles filenames with non-ASCII characters (Chinese characters in this case) and the subsequent selector query generation for accessing those files. Issues #7933 and #7891 specifically deal with Chinese character handling, though in different contexts.

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

  2. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    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 / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions