Skip to content

Conversation

@Raviguntakala
Copy link
Contributor

Problem

Custom commands (like /init, /review, /commit) were not showing in the slash command menu when first typing /. Users had to type a character and backspace to see them.

Cause

The useFilteredList hook doesn't re-run when sync.data.command loads asynchronously after the initial render.

Solution

Added a createEffect that calls slashRefetch() when sync.data.command changes, ensuring custom commands appear immediately.

Changes

  • packages/app/src/components/prompt-input.tsx: Added refetch trigger when commands load

Before

Screen.Recording.2026-01-04.at.3.46.30.PM.mov

After

Screen.Recording.2026-01-04.at.3.47.07.PM.mov

Add createEffect to refetch slash commands when sync.data.command
updates asynchronously after initial render.
@adamdotdevin adamdotdevin merged commit 65c7168 into anomalyco:dev Jan 5, 2026
2 of 3 checks passed
ruuxi pushed a commit to ruuxi/ngmicode that referenced this pull request Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants