This commit is contained in:
Eva Ho 2025-12-12 16:11:03 -05:00
parent 7d6f0c621f
commit ed553f51f7
3 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -51,7 +51,6 @@ export default function Settings() {
const [isAwaitingConnection, setIsAwaitingConnection] = useState(false);
const [connectionError, setConnectionError] = useState<string | null>(null);
const [pollingInterval, setPollingInterval] = useState<number | null>(null);
// const navigate = useNavigate();
const {
data: settingsData,

View File

@ -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)
}