From d53655c180f89c5352d29f4bc83ee944082859f8 Mon Sep 17 00:00:00 2001 From: gongzhiyong Date: Tue, 14 Apr 2026 01:11:47 +0800 Subject: [PATCH] fix: card occlusion by input bar, thread title update for existing threads - Add h-32 spacer before bottomRef to prevent last card from being hidden behind input bar - Fix thread title not updating: check existing title instead of only first message Co-Authored-By: Claude Opus 4.6 (1M context) --- langgraph/src/main.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */}