Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: resolve chat message duplication on first message send (#5424)

Trevor Manz9e7944e92f01
diff --git a/frontend/src/components/chat/chat-panel.tsx b/frontend/src/components/chat/chat-panel.tsx
index 73cfb8f4be..be1c422871 100644
--- a/frontend/src/components/chat/chat-panel.tsx
+++ b/frontend/src/components/chat/chat-panel.tsx
@@ -535,13 +535,7 @@ const ChatPanelBody = () => {
initialMessage.length > 50
? `${initialMessage.slice(0, 50)}...`
: initialMessage,
- messages: [
- {
- role: "user",
- content: initialMessage,
- timestamp: Date.now(),
- },
- ],
+ messages: [], // Don't pre-populate - let useChat handle it and sync back
createdAt: Date.now(),
updatedAt: Date.now(),
};