diff --git a/app/ui/app/src/components/ChatForm.tsx b/app/ui/app/src/components/ChatForm.tsx index 3ce3a12f6..d312cc2aa 100644 --- a/app/ui/app/src/components/ChatForm.tsx +++ b/app/ui/app/src/components/ChatForm.tsx @@ -63,7 +63,7 @@ interface ChatFormProps { chatId?: string; isDownloadingModel?: boolean; isDisabled?: boolean; - initialDraft?: string; // Draft text to restore when switching chats + initialDraft?: string; // Editing props - when provided, ChatForm enters edit mode editingMessage?: { content: string; diff --git a/app/ui/app/src/components/Settings.tsx b/app/ui/app/src/components/Settings.tsx index 65c07ce6c..a827bb958 100644 --- a/app/ui/app/src/components/Settings.tsx +++ b/app/ui/app/src/components/Settings.tsx @@ -51,7 +51,6 @@ export default function Settings() { const [isAwaitingConnection, setIsAwaitingConnection] = useState(false); const [connectionError, setConnectionError] = useState(null); const [pollingInterval, setPollingInterval] = useState(null); - // const navigate = useNavigate(); const { data: settingsData, diff --git a/app/ui/ui.go b/app/ui/ui.go index 9b90dc25d..db16849c3 100644 --- a/app/ui/ui.go +++ b/app/ui/ui.go @@ -1290,7 +1290,6 @@ func (s *Server) updateDraft(w http.ResponseWriter, r *http.Request) error { return fmt.Errorf("invalid request body: %w", err) } - // Update the draft - use the efficient single-field update method if err := s.Store.UpdateChatDraft(cid, req.Draft); err != nil { return fmt.Errorf("failed to update draft: %w", err) }