When using Editor View, if I copy and paste a slash command into the chat input, the slash-command option list does not appear even when the text cursor/caret is positioned on the command.
The same pasted slash command works as expected in Agent View, where the command suggestion/options list appears.
Steps to Reproduce
Open Cursor in Editor View.
Copy a slash command, e.g. /summarize or a custom skill command which exist in curosr.
Paste it into the chat input.
Move the text cursor/caret onto or after the pasted slash command.
Observe that the slash command suggestion/options list does not appear.
Switch to Agent View and repeat the same paste.
Observe that the option list appears correctly.
Expected Behavior
Pasted slash commands should trigger the same slash command suggestions/options list in Editor View as they do in Agent View.
Hey, thanks for the clear report, I can reproduce it. In Editor View, the slash command menu is triggered by the last typed character /, so when you paste a full command (the last character is the end of the word), the menu won’t open. In Agent View, the input is implemented differently, so paste works there.
I’ve reported this internally. I can’t share an ETA for a fix yet, but we’ll post an update in this thread as soon as we have one.
Temporary workaround: type / manually to open the menu, then finish typing or pick the command.
That’s a solid idea: force conversion on paste, with an option to revert back to plain text. I’ll pass it to the team along with the main bug report so they can consider it while working on the fix.
I can’t guarantee it’ll make it into the product. It might turn out they’ll just fix the menu trigger like in Agent View, and a separate toggle won’t be needed. But as a UX option it makes sense, especially when the user wants to paste text, not trigger a command.
If there’s any update on the main fix or this behavior, I’ll reply in the thread.
Quick update: I re-checked on 3.22.12. Pasting /summarize into the Editor View chat input still doesn’t open the slash menu, but typing / does. I’ve passed this to the team again, along with your auto-convert-on-paste idea, @cy_c. It isn’t being actively worked on right now and I don’t have an ETA. I’ll post here if anything changes.