diff --git a/Frontend/src/components/ChatPanel.tsx b/Frontend/src/components/ChatPanel.tsx index c35cb6e..68a7d14 100644 --- a/Frontend/src/components/ChatPanel.tsx +++ b/Frontend/src/components/ChatPanel.tsx @@ -241,7 +241,7 @@ export function ChatPanel({ onChatComplete }: { onChatComplete?: () => void } = const q = (location.state as { chatQuery?: string } | null)?.chatQuery?.trim(); if (!q || !repoReady) return; navigate(location.pathname, { replace: true, state: {} }); - setInput(q); + setInput(""); void sendChatQuestion(q); }, [location.key, location.pathname, navigate, repoReady, sendChatQuestion]);