Skip to content

CJK and other unicode symbols preceeding @ (mention) causes "no matching items" #26716

Closed

Description

@PeerXu

Description

在英文环境下, @ 命令能够正常列出文件夹所包含的文件.
Image

在中文环境下, @ 命令无法正常列出文件夹所包含的文件.
Image

opencode启动命令: opencode --pure

Plugins

No response

OpenCode version

1.14.46

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 26.4.1

Terminal

Ghostty 1.3.1

Activity

  1. github-actions commented on May 10, 2026

    @github-actions
    Contributor

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

    If your issue is different from the above (e.g., it affects the Chinese input locale rather than Chinese characters in the file path), please add clarification so maintainers can distinguish it.

  2. PeerXu commented on May 10, 2026

    @PeerXu
    Author

    No, this issue not like the #13061 . There is my steps to reproduce my issue.

    mkdir -p /tmp/hello
    cd /tmp/hello
    echo "hello" > hello.txt
    opencode --pure --log-level DEBUG --print-logs 2> /tmp/opencode-debug.log

    logs:

    /tmp/hello opencode --pure --log-level DEBUG --print-logs 2> /tmp/opencode-debug.log
    /tmp/hello cat /tmp/opencode-debug.log
    INFO  2026-05-10T15:59:40 +118ms service=default version=1.14.46 args=["--pure","--log-level","DEBUG","--print-logs"] process_role=main run_id=1087b729-dc76-4baf-ba93-1743086ad2a1 opencode
    INFO  2026-05-10T15:59:41 +899ms service=file init
    INFO  2026-05-10T15:59:41 +35ms service=default creating instance [object Object]
    INFO  2026-05-10T15:59:41 +0ms service=project directory=/private/tmp/hello fromDirectory
    INFO  2026-05-10T15:59:41 +2ms service=db path=/Users/peer/.local/share/opencode/opencode.db opening database
    INFO  2026-05-10T15:59:41 +3ms service=db count=18 mode=bundled applying migrations
    INFO  2026-05-10T15:59:41 +5ms service=default bootstrapping [object Object]
    INFO  2026-05-10T15:59:41 +8ms service=config path=/Users/peer/.config/opencode/config.json loading
    INFO  2026-05-10T15:59:41 +1ms service=config path=/Users/peer/.config/opencode/opencode.json loading
    INFO  2026-05-10T15:59:41 +0ms service=config path=/Users/peer/.config/opencode/opencode.jsonc loading
    DEBUG 2026-05-10T15:59:41 +5ms service=config loading config from /Users/peer/.opencode/opencode.json
    INFO  2026-05-10T15:59:41 +0ms service=config path=/Users/peer/.opencode/opencode.json loading
    DEBUG 2026-05-10T15:59:41 +0ms service=config loading config from /Users/peer/.opencode/opencode.jsonc
    INFO  2026-05-10T15:59:41 +0ms service=config path=/Users/peer/.opencode/opencode.jsonc loading
    INFO  2026-05-10T15:59:41 +5ms service=plugin name=fG loading internal plugin
    INFO  2026-05-10T15:59:41 +0ms service=plugin name=kG loading internal plugin
    INFO  2026-05-10T15:59:41 +0ms service=plugin name=hV loading internal plugin
    INFO  2026-05-10T15:59:41 +0ms service=plugin name=Y7 loading internal plugin
    INFO  2026-05-10T15:59:41 +0ms service=plugin name=lV loading internal plugin
    INFO  2026-05-10T15:59:41 +0ms service=plugin name=cV loading internal plugin
    INFO  2026-05-10T15:59:41 +0ms service=plugin name=dV loading internal plugin
    INFO  2026-05-10T15:59:41 +1ms service=bus type=* subscribing
    INFO  2026-05-10T15:59:41 +0ms service=lsp all LSPs are disabled
    INFO  2026-05-10T15:59:41 +1ms service=bus type=session.updated subscribing
    INFO  2026-05-10T15:59:41 +0ms service=bus type=message.updated subscribing
    INFO  2026-05-10T15:59:41 +0ms service=bus type=message.part.updated subscribing
    INFO  2026-05-10T15:59:41 +0ms service=bus type=session.diff subscribing
    INFO  2026-05-10T15:59:41 +0ms service=bus type=session.deleted subscribing
    INFO  2026-05-10T15:59:41 +0ms service=format all formatters are disabled
    INFO  2026-05-10T15:59:41 +0ms service=format init
    INFO  2026-05-10T15:59:41 +2ms service=file.watcher directory=/private/tmp/hello init
    INFO  2026-05-10T15:59:41 +153ms service=file.watcher directory=/private/tmp/hello platform=darwin backend=fs-events watcher backend
    INFO  2026-05-10T15:59:41 +1ms service=bus type=command.executed subscribing
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:home-footer loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:home-tips loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:sidebar-context loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:sidebar-mcp loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:sidebar-lsp loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:sidebar-todo loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:sidebar-files loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:sidebar-footer loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=internal:plugin-manager loading internal tui plugin
    INFO  2026-05-10T15:59:41 +0ms service=tui.plugin id=which-key loading internal tui plugin
    /tmp/hello
    
  3. Mrqqeat commented on May 10, 2026

    @Mrqqeat

    I’m experiencing the same issue. It seems that if there are any full-width (CJK) characters in the input box, typing @ only brings up 'general' and 'explore'. Typing a file name prefix after @ doesn't trigger the file suggestion popup at all; it simply has no effect.

  4. PeerXu commented on May 11, 2026

    @PeerXu
    Author

    This situation is indeed very strange. I've been using opencode for a week, and the @ command was working fine before, but suddenly yesterday it stopped working properly.

  5. 503203440 commented on May 11, 2026

    @503203440

    同样的问题

  6. changed the title [-]@无法正常列出文件[/-] [+]CJK and other unicode symbols preceeding @ (mention) causes "no matching items"[/+] on May 12, 2026
  7. added a commit that references this issue on May 12, 2026
    56d36d1
  8. added a commit that references this issue on May 12, 2026
    8f05bbf
  9. hongenge commented on May 12, 2026

    @hongenge

    Mine has the same issue. Using @ together with Chinese input cannot list files.

    System: Windows 10
    OpenCode version: v1.14.48

  10. tankywoo commented on May 12, 2026

    @tankywoo

    Same issue on macOS after upgrading to versions 1.14.46 ~ 1.14.48

  11. added a commit that references this issue on Jun 15, 2026
    e4d66c7
  12. added a commit that references this issue on Jul 31, 2026
    cbf158f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions