Skip to content

@ file search stops working after selecting a custom slash command #2518

@tanzhenxin

Description

@tanzhenxin

What happened?

When typing / to bring up slash command suggestions and selecting a custom command (e.g., /qc:create-issue), the @ file search feature no longer works. Typing @ after the slash command on the same line does not show any file search suggestions.

Steps to reproduce:

  1. Start Qwen Code interactive CLI
  2. Type / to bring up slash command suggestions
  3. Select a custom slash command such as /qc:create-issue
  4. On the same line, type @ followed by a partial filename
  5. No file search suggestions appear

What did you expect to happen?

After completing a slash command, typing @ should still trigger file search suggestions as normal, allowing me to reference files in the command arguments.

Client information

Client Information

Run qwen to enter the interactive CLI, then run the /about command.

$ qwen /about
# paste output here

Anything else we need to know?

The @ file search works fine when no slash command is present on the line. The issue only occurs when @ is typed after a /command on the same line.

Metadata

Metadata

Assignees

Labels

type/bugSomething isn't working as expected

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions