diff --git a/ui/goose2/src/features/chat/ui/ChatInput.tsx b/ui/goose2/src/features/chat/ui/ChatInput.tsx index 55de6fcff5..5a85cc54ba 100644 --- a/ui/goose2/src/features/chat/ui/ChatInput.tsx +++ b/ui/goose2/src/features/chat/ui/ChatInput.tsx @@ -1,6 +1,6 @@ import { useState, useRef, useCallback, useEffect, useLayoutEffect, useMemo } from "react"; import { open } from "@tauri-apps/plugin-dialog"; -import { Pencil, X } from "lucide-react"; +import { X } from "lucide-react"; import { useTranslation } from "react-i18next"; import type { AcpProvider } from "@/shared/api/acp"; import type { Persona } from "@/shared/types/agents"; @@ -64,10 +64,6 @@ interface ChatInputProps { }) => void; contextTokens?: number; contextLimit?: number; - /** Message ID currently being edited (non-null = edit mode active). */ - editingMessageId?: string | null; - /** Cancel edit mode — clears editing state and restores input. */ - onCancelEdit?: () => void; } export function ChatInput({ @@ -98,8 +94,6 @@ export function ChatInput({ onCreateProject, contextTokens = 0, contextLimit = 0, - editingMessageId = null, - onCancelEdit, }: ChatInputProps) { const { t } = useTranslation("chat"); const [text, setTextRaw] = useState(initialValue); @@ -196,8 +190,7 @@ export function ChatInput({ return () => observer.disconnect(); }, []); - // Focus textarea on mount and when entering edit mode - useEffect(() => textareaRef.current?.focus(), [editingMessageId]); + useEffect(() => textareaRef.current?.focus(), []); const handleSend = useCallback(() => { if (!canSend) { @@ -423,23 +416,6 @@ export function ChatInput({ )} - {editingMessageId && ( -
- - - {t("edit.label")} - - -
- )} -