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