Fix: Fixed the issue where the error prompt box on the Agent page would be covered #3221 (#8992)

### What problem does this PR solve?

Fix: Fixed the issue where the error prompt box on the Agent page would
be covered #3221

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2025-07-23 15:09:24 +08:00
committed by GitHub
parent b4b6d296ea
commit 03165a1efa
7 changed files with 319 additions and 44 deletions

View File

@ -12,7 +12,6 @@ import {
} from '@/components/ui/form';
import { Input, NumberInput } from '@/components/ui/input';
import { RAGFlowSelect } from '@/components/ui/select';
import { Textarea } from '@/components/ui/textarea';
import { buildOptions } from '@/utils/form';
import { zodResolver } from '@hookform/resolvers/zod';
import { memo, useMemo } from 'react';
@ -100,23 +99,7 @@ function AgentForm({ node }: INextOperatorForm) {
}}
>
<FormContainer>
{isSubAgent && (
<>
<DescriptionField></DescriptionField>
<FormField
control={form.control}
name={`user_prompt`}
render={({ field }) => (
<FormItem className="flex-1">
<FormLabel>Subagent Input</FormLabel>
<FormControl>
<Textarea {...field}></Textarea>
</FormControl>
</FormItem>
)}
/>
</>
)}
{isSubAgent && <DescriptionField></DescriptionField>}
<LargeModelFormField></LargeModelFormField>
<FormField
control={form.control}