Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When you have a large number of slash commands / skills, typing the first 1–3 characters after / causes noticeable UI lag / jank.
Likely cause: single-char (and similarly two-char) prefix search returns a huge match set and filters/renders on every keystroke. Past a certain command count — or a per-machine performance gate — this becomes painful.
Related but distinct from Slash command switching Skill lag (that thread is about lag when navigating the skill list / full previews). This report is about lag while typing short prefixes with many commands registered.
Steps to Reproduce
- Install / enable a large set of skills + custom slash commands (e.g. 50–150+ across
~/.cursor/skills, project skills, commands). - Open Agent/Chat input.
- Type
/then quickly type the first 1–2 characters of a command name (e.g./g,/gs). - Observe input lag / stalled keystrokes / sluggish picker updates for those first characters.
- Continue typing to 3+ more distinctive characters — lag typically drops as the match set shrinks.
Expected Behavior
Slash command filtering should stay responsive even with large command catalogs.
Suggested mitigation (product fix):
- Debounce short-prefix filtering: e.g. ~50ms delay with no further keystrokes before running the filter for the first 2–3 characters after
/. - Optionally: skip or throttle expensive match/render work until query length ≥ N, or until command count exceeds a threshold / per-machine performance gate.
- Cap or virtualize the result list for very broad prefixes so 1–2 char queries don’t force rendering hundreds of matches every keystroke.
Operating System
MacOS
Version Information
Cursor 3.13.25 (arm64)
Commit: 31e8d61c448c7472e371505838a0fe34083dad50
OS: macOS 14.3 (Darwin 23.3.0, arm64)
Additional Information
- Repro environment has ~95 user skills under
~/.cursor/skillsplus many more agent/project skills — enough that 1–2 char prefixes match a large fraction of the catalog. - Lag is concentrated on the first few characters; longer prefixes feel fine once matches narrow.
- This is a UX/perf issue that scales with command count; a fixed debounce for short queries would likely fix it without hurting discoverability for small catalogs.
Does this stop you from using Cursor
No - Cursor works, but with this issue