diff --git a/langgraph/src/main.tsx b/langgraph/src/main.tsx index 9801a1e..ccecd14 100644 --- a/langgraph/src/main.tsx +++ b/langgraph/src/main.tsx @@ -567,7 +567,8 @@ function App() { messageContent = text; } - const isFirstMessage = activeMessages.length === 0; + const existingTitle = threads.find((t) => t.thread_id === currentThreadId)?.metadata?.title; + const isFirstMessage = activeMessages.length === 0 || !existingTitle; const retryTool = pendingRetryToolRef.current; pendingRetryToolRef.current = null; @@ -1234,6 +1235,8 @@ function App() { )} + {/* Spacer to prevent last card from being hidden behind input bar */} +
{/* Scroll-to-bottom floating button */}