From ed553f51f7d94845d3c4f4366827f25a79852fbc Mon Sep 17 00:00:00 2001 From: Eva Ho Date: Fri, 12 Dec 2025 16:11:03 -0500 Subject: [PATCH] clean up --- app/ui/app/src/components/ChatForm.tsx | 2 +- app/ui/app/src/components/Settings.tsx | 1 - app/ui/ui.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) 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) }