data-key="file^" is not a valid selector #6745

Open
opened 2026-02-16 18:05:07 -05:00 by yindo · 1 comment
Owner

Originally created by @feynmanloo on GitHub (Jan 18, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

SyntaxError: '[data-key="file://"docs/\345\212\237\350\203\275\347\237\251\351\230\265.md""]' is not a valid selector.
querySelector@[native code]
@tauri://localhost/assets/session-CCDakWO3.js:30:6115
Cb@tauri://localhost/assets/index-D9T6R7qf.js:2:8252
$l@tauri://localhost/assets/index-D9T6R7qf.js:2:7983
Ld@tauri://localhost/assets/index-D9T6R7qf.js:2:9468
Qk@tauri://localhost/assets/index-D9T6R7qf.js:2:10732
yn@tauri://localhost/assets/index-D9T6R7qf.js:2:9656
Jk@tauri://localhost/assets/index-D9T6R7qf.js:2:10317
yn@tauri://localhost/assets/index-D9T6R7qf.js:2:9668
D@tauri://localhost/assets/index-D9T6R7qf.js:2:3812
M@tauri://localhost/assets/index-D9T6R7qf.js:2:3770

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

输出文档,文档名为:功能矩阵.md,然后就报异常,重启也不行。

Screenshot and/or share link

No response

Operating System

macOS 26.*

Terminal

No response

Originally created by @feynmanloo on GitHub (Jan 18, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description SyntaxError: '[data-key="file://"docs/\345\212\237\350\203\275\347\237\251\351\230\265.md""]' is not a valid selector. querySelector@[native code] @tauri://localhost/assets/session-CCDakWO3.js:30:6115 Cb@tauri://localhost/assets/index-D9T6R7qf.js:2:8252 $l@tauri://localhost/assets/index-D9T6R7qf.js:2:7983 Ld@tauri://localhost/assets/index-D9T6R7qf.js:2:9468 Qk@tauri://localhost/assets/index-D9T6R7qf.js:2:10732 yn@tauri://localhost/assets/index-D9T6R7qf.js:2:9656 Jk@tauri://localhost/assets/index-D9T6R7qf.js:2:10317 yn@tauri://localhost/assets/index-D9T6R7qf.js:2:9668 D@tauri://localhost/assets/index-D9T6R7qf.js:2:3812 M@tauri://localhost/assets/index-D9T6R7qf.js:2:3770 ### Plugins _No response_ ### OpenCode version 1.1.25 ### Steps to reproduce 输出文档,文档名为:功能矩阵.md,然后就报异常,重启也不行。 ### Screenshot and/or share link _No response_ ### Operating System macOS 26.* ### Terminal _No response_
yindo added the bugweb labels 2026-02-16 18:05:07 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

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

  • #9173: SyntaxError: CSS selector not properly escaped for file paths with special characters

The error you're encountering with '功能矩阵.md' (a file with Chinese characters) appears to be the same root cause - unescaped special characters in file paths being used in CSS selectors.

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #9173: SyntaxError: CSS selector not properly escaped for file paths with special characters The error you're encountering with '功能矩阵.md' (a file with Chinese characters) appears to be the same root cause - unescaped special characters in file paths being used in CSS selectors. Feel free to ignore if this doesn't address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6745