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

Open
opened 2026-02-16 17:50:17 -05:00 by yindo · 0 comments
Owner

Originally created by @aaronlei on GitHub (Jan 13, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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

Originally created by @aaronlei on GitHub (Jan 13, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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_
yindo added the bugweb labels 2026-02-16 17:50:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5233