diff --git a/web/src/app/home/pipelines/components/debug-dialog/DebugDialog.tsx b/web/src/app/home/pipelines/components/debug-dialog/DebugDialog.tsx index 3cc973190..1cd6bc056 100644 --- a/web/src/app/home/pipelines/components/debug-dialog/DebugDialog.tsx +++ b/web/src/app/home/pipelines/components/debug-dialog/DebugDialog.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next'; import { httpClient } from '@/app/infra/http/HttpClient'; import { DialogContent } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; -import { Input } from '@/components/ui/input'; +import { Textarea } from '@/components/ui/textarea'; import { ScrollArea } from '@/components/ui/scroll-area'; import { Switch } from '@/components/ui/switch'; import { cn } from '@/lib/utils'; @@ -42,11 +42,6 @@ import { AlignLeft, RotateCcw, } from 'lucide-react'; -import { - Tooltip, - TooltipContent, - TooltipTrigger, -} from '@/components/ui/tooltip'; interface DebugDialogProps { open: boolean; @@ -155,7 +150,7 @@ export default function DebugDialog({ ); const [streamOutput, setStreamOutput] = useState(true); const scrollAreaRef = useRef(null); - const inputRef = useRef(null); + const inputRef = useRef(null); const popoverRef = useRef(null); const fileInputRef = useRef(null); const wsClientRef = useRef(null); @@ -367,7 +362,7 @@ export default function DebugDialog({ } }, [showAtPopover]); - const handleInputChange = (e: React.ChangeEvent) => { + const handleInputChange = (e: React.ChangeEvent) => { const value = e.target.value; if (sessionType === 'group') { if (value.endsWith('@')) { @@ -853,75 +848,50 @@ export default function DebugDialog({ }; const renderContent = () => ( -
+
- - - - - - {t('pipelines.debugDialog.privateChat')} - - - - - - - - {t('pipelines.debugDialog.groupChat')} - - - - - - - - {t('pipelines.debugDialog.reset')} - - + + {t('pipelines.debugDialog.sessionType')} + + + +
-
+
-
+
{t('pipelines.debugDialog.streamOutput')} @@ -1118,73 +1089,82 @@ export default function DebugDialog({
-
- {hasAt && ( - - )} -
- - {showAtPopover && ( -
-
setIsHovering(true)} - onMouseLeave={() => setIsHovering(false)} - > - - @websocketbot - {t('pipelines.debugDialog.atTips')} - -
+ +
+
+ {hasAt && ( +
+
)} +
+