fix(app): fix custom slash commands not showing on initial / (#6829)

pull/7089/head
Ravi Kumar 2026-01-05 06:00:34 +05:30 committed by GitHub
parent c74c66e6b4
commit 65c7168492
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -439,6 +439,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
active: slashActive,
onInput: slashOnInput,
onKeyDown: slashOnKeyDown,
refetch: slashRefetch,
} = useFilteredList<SlashCommand>({
items: slashCommands,
key: (x) => x?.id,
@ -493,6 +494,14 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
}
}
createEffect(
on(
() => sync.data.command,
() => slashRefetch(),
{ defer: true },
),
)
createEffect(
on(
() => prompt.current(),