diff --git a/packages/ui/src/components/sections/behavior/BehaviorPage.tsx b/packages/ui/src/components/sections/behavior/BehaviorPage.tsx index a4f48e0f..d33fefc6 100644 --- a/packages/ui/src/components/sections/behavior/BehaviorPage.tsx +++ b/packages/ui/src/components/sections/behavior/BehaviorPage.tsx @@ -4,6 +4,7 @@ import { Textarea } from '@/components/ui/textarea'; import { toast } from '@/components/ui'; import { useI18n, type I18nKey } from '@/lib/i18n'; import { reportSettingsSaveState } from '@/lib/persistence'; +import { useIsVSCodeRuntime } from '@/hooks/useRuntimeAPIs'; import { Select, SelectContent, @@ -101,6 +102,7 @@ const saveBehaviorSetting = async (settings: Partial, fallbackE export const BehaviorPage: React.FC = () => { const { t } = useI18n(); + const isVSCode = useIsVSCodeRuntime(); const [prompt, setPrompt] = React.useState(''); const [optimizeSystemPrompt, setOptimizeSystemPrompt] = React.useState(false); const [responseStyleEnabled, setResponseStyleEnabled] = React.useState(DEFAULT_BEHAVIOR_SETTINGS.responseStyleEnabled); @@ -291,32 +293,34 @@ export const BehaviorPage: React.FC = () => { description={t('settings.page.behavior.description')} showSaveStatus > - - - - + + + + )} !ctx.isVSCode, }, { id: 'behavior.system-prompt',