diff --git a/client/src/pages/Chat.tsx b/client/src/pages/Chat.tsx index 46dba74..336c0e7 100644 --- a/client/src/pages/Chat.tsx +++ b/client/src/pages/Chat.tsx @@ -648,6 +648,10 @@ export default function Chat() { const messages = active?.messages ?? []; const convId = activeId; + const isCurrentConvThinking = activeId + ? isConversationThinking(activeId) + : false; + // ─── Track agent activities from orchestrator tool calls ─────────────────────── // Scans messages for delegate_to_agent calls and creates/removes agent activities @@ -747,10 +751,6 @@ export default function Chat() { activeId, ]); - const isCurrentConvThinking = activeId - ? isConversationThinking(activeId) - : false; - const sendMessage = async () => { if (!input.trim() || isCurrentConvThinking) return;