Skip to content

[Bug]: Command, skill, model and file search finds nothing when the query is typed on a non-Latin keyboard layout #11723

Description

@kirill-markin

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Switch the operating system input source to a non-Latin layout that is positionally based on US QWERTY. Russian, Ukrainian, Belarusian, Bulgarian, Serbian, Macedonian, Kazakh, Greek, Hebrew, Armenian, Georgian, Arabic, Persian and Thai layouts all qualify.
  2. In the composer, type / and then press the keys that spell an existing command, for example the keys of model.
  3. Repeat with $ and a skill name, with @ and a file name, with the Cmd+K command palette, and with the Settings search field.

Expected behavior

The menu finds the command, skill, model, file or setting. The keys pressed are the ones that spell its name on a US layout, and the names being searched are always Latin, so the intent is unambiguous.

Actual behavior

Every one of those surfaces shows an empty result. The composer menu reads "No matching command.", the palette and Settings search return nothing, and @ returns no files.

Nothing matches because the keystrokes produce the letters of the active layout while command names, skill names, model ids and file paths are Latin. The user has to notice the mismatch, switch input source, and retype. This affects every client surface and every one of the layouts above.

Impact

Minor bug or occasional failure

Version or commit

main at 01e05c1

Environment

Reproduced on macOS. The matching happens in shared client code and on the server's path search, so the behavior is the same on web, desktop and mobile, and independent of the operating system.

Additional context

I have a fix and will open a pull request referencing this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions