From d1d77e8683774df514eec76e73a0c7a41f8ec322 Mon Sep 17 00:00:00 2001 From: dream_pep Date: Sat, 11 Jul 2026 01:24:31 +0800 Subject: [PATCH] Forward abort signal to slash suggestions Update the slash suggestion handler to accept an AbortSignal and pass it through to defaultSlashSuggestions. This enables cancellation of in-flight async suggestion calls (avoids race conditions and wasted work) in components/kibo-ui/editor/index.tsx. --- components/kibo-ui/editor/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/kibo-ui/editor/index.tsx b/components/kibo-ui/editor/index.tsx index 83708fe..6749aba 100644 --- a/components/kibo-ui/editor/index.tsx +++ b/components/kibo-ui/editor/index.tsx @@ -600,8 +600,8 @@ export const EditorProvider = ({ Subscript, Slash.configure({ suggestion: { - items: async ({ editor, query }) => { - const items = await defaultSlashSuggestions({ editor, query }); + items: async ({ editor, query, signal }) => { + const items = await defaultSlashSuggestions({ editor, query, signal }); if (!query) { return items;