feat(suggestionList): 仅在xclaw中显示

This commit is contained in:
肖应宇 2026-06-15 09:08:18 +08:00
parent d0afbf1897
commit 6adc8cbedf

View File

@ -85,6 +85,7 @@ import {
} from "@/core/threads/reference-events";
import { useIframeSkill } from "@/hooks/use-iframe-skill";
import { cn } from "@/lib/utils";
import { useBrand } from "@/core/brand/provider";
import {
ModelSelector,
@ -306,6 +307,8 @@ export function InputBox({
}
}, [mentionOpen, refetchReferenceFiles]);
const{ brand } = useBrand()
// Welcome 态下禁用收缩,始终保持展开
const effectiveIsFocused =
(showWelcomeStyle ?? false) || isFocused || memoryPanelOpen;
@ -1106,14 +1109,13 @@ export function InputBox({
status={status}
/>
</PromptInput>
{/* TODO: 需要在sxwz中隐藏 */}
{/* {shouldShowSuggestionList && (
{brand === "xclaw" && shouldShowSuggestionList && (
<SuggestionListContainer
ref={suggestionListTourRef}
bootstrapAndLockSkills={iframeSkill.bootstrapAndLockSkills}
isBootstrapping={iframeSkill.isBootstrapping}
/>
)} */}
)}
{!disabled &&
!showWelcomeStyle &&