桌面版打不开了 #6791

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

Originally created by @dustin-wei on GitHub (Jan 19, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

SyntaxError: '[data-key="file://"\345\246\202\344\275\225\345\234\250\344\270\200\345\244\251\345\206\205\344\277\256\345\244\215\344\275\240\347\232\204\346\225\264\344\270\252\344\272\272\347\224\237.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
H6@tauri://localhost/assets/index-D9T6R7qf.js:2:7651

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @dustin-wei on GitHub (Jan 19, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description SyntaxError: '[data-key="file://"\345\246\202\344\275\225\345\234\250\344\270\200\345\244\251\345\206\205\344\277\256\345\244\215\344\275\240\347\232\204\346\225\264\344\270\252\344\272\272\347\224\237.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 H6@tauri://localhost/assets/index-D9T6R7qf.js:2:7651 ### Plugins _No response_ ### OpenCode version 1.1.25 ### 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 18:05:17 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 19, 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
  • #9330: data-key="file^" is not a valid selector
  • #9031: The desktop app crashes with packages/ui/src/components/list.tsx data-key element
  • #8172: OpenCode 桌面版 不支持读取中文名文件

These issues all relate to the same root cause: invalid CSS selectors being generated from file paths with special characters or Chinese characters, causing querySelector errors in the desktop app. Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Jan 19, 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 - #9330: data-key="file^" is not a valid selector - #9031: The desktop app crashes with packages/ui/src/components/list.tsx data-key element - #8172: OpenCode 桌面版 不支持读取中文名文件 These issues all relate to the same root cause: invalid CSS selectors being generated from file paths with special characters or Chinese characters, causing querySelector errors in the desktop app. Feel free to ignore if your specific case differs from these.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6791