What happened
The slash command/Skill picker opens when / is typed as a path separator inside an existing text token in the Maka Desktop composer.
For example, first type:
Then type another /, producing:
At that point, Maka opens the slash command/Skill popup and displays “No matching commands or skills” (没有匹配的命令或技能).
The newly typed / is part of the existing filesystem path. It is attached to the preceding Users text and does not begin a new token, so it should be treated as ordinary message content rather than a command or Skill trigger.
Expected behavior:
/ opens the command/Skill picker when typed at the start of the composer.
/ may open the appropriate picker after whitespace if inline Skill discovery is supported there.
/ used as a path separator inside an existing token must remain ordinary text and must not open any command or Skill popup.
How to reproduce
- Open Maka Desktop and focus the session composer.
- Type
帮我整理到/Users.
- Keep the caret at the end of the text.
- Type another
/, so the composer contains 帮我整理到/Users/.
- Observe that the command/Skill picker opens and displays “没有匹配的命令或技能”.
Actual result: Typing the trailing / in 帮我整理到/Users/ opens the slash command/Skill picker.
Expected result: No popup opens because the trailing / is a path separator attached to the preceding text and does not start a new token.
Environment
- Maka version or commit:
ad48130be
- OS and version: macOS 15.6
- Surface: Desktop
- UI language: Simplified Chinese
- Node.js version, if running from source: 24.19.0
Logs, screenshots, or additional context
Slash discovery should require a clear token boundary before /, such as:
- the start of the input;
- whitespace;
- a new line.
Suggested acceptance scenarios:
/ opens the command/Skill picker.
帮我整理到 / follows the supported inline-slash behavior because / begins a new token.
- Typing the trailing slash in
帮我整理到/Users/ does not open a popup.
- Typing
/ anywhere inside path/to/file/ does not open a popup.
- Suppressing the popup does not modify the draft or move the caret.
Related: #2948 covers context detection for a non-leading slash after whitespace. This issue covers the distinct case where / is used inside a continuous text/path token and should not be a trigger at all.
What happened
The slash command/Skill picker opens when
/is typed as a path separator inside an existing text token in the Maka Desktop composer.For example, first type:
Then type another
/, producing:At that point, Maka opens the slash command/Skill popup and displays “No matching commands or skills” (
没有匹配的命令或技能).The newly typed
/is part of the existing filesystem path. It is attached to the precedingUserstext and does not begin a new token, so it should be treated as ordinary message content rather than a command or Skill trigger.Expected behavior:
/opens the command/Skill picker when typed at the start of the composer./may open the appropriate picker after whitespace if inline Skill discovery is supported there./used as a path separator inside an existing token must remain ordinary text and must not open any command or Skill popup.How to reproduce
帮我整理到/Users./, so the composer contains帮我整理到/Users/.Actual result: Typing the trailing
/in帮我整理到/Users/opens the slash command/Skill picker.Expected result: No popup opens because the trailing
/is a path separator attached to the preceding text and does not start a new token.Environment
ad48130beLogs, screenshots, or additional context
Slash discovery should require a clear token boundary before
/, such as:Suggested acceptance scenarios:
/opens the command/Skill picker.帮我整理到 /follows the supported inline-slash behavior because/begins a new token.帮我整理到/Users/does not open a popup./anywhere insidepath/to/file/does not open a popup.Related: #2948 covers context detection for a non-leading slash after whitespace. This issue covers the distinct case where
/is used inside a continuous text/path token and should not be a trigger at all.