From 927830198cbf56be7914bc4344ebcd1e3c94994d Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Tue, 7 Apr 2026 09:36:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DSuggestionList?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9Bgit=E5=BF=BD=E7=95=A5proofshot=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + frontend/src/components/workspace/input-box.tsx | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index edeb6a84..8c02b6b0 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,7 @@ sandbox_image_cache.tar frontend/imports frontend/test-results frontend/.cache +proofshot-artifacts # ignore the legacy `web` folder web/ diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx index 0a2de157..ecb32806 100644 --- a/frontend/src/components/workspace/input-box.tsx +++ b/frontend/src/components/workspace/input-box.tsx @@ -508,11 +508,7 @@ function SuggestionList({ }) { const { t } = useI18n(); const { textInput } = usePromptInputController(); - const searchParams = useSearchParams(); - const suggestions = - searchParams.get("mode") === "skill" - ? t.inputBox.suggestions - : t.inputBox.suggestionsCreate; + const suggestions =t.inputBox.suggestions const promptSuggestions = suggestions.filter( ( suggestion,