Skip to content

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

Closed

Description

@feynmanloo

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

Activity

  1. github-actions commented on Jan 19, 2026

    @github-actions
    Contributor

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

    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.

  2. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    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