fix: move isCurrentConvThinking declaration before useEffect to fix ReferenceError

This commit is contained in:
¨NW¨
2026-04-11 00:50:10 +01:00
parent 3d63872df0
commit 09bd8d0b98

View File

@@ -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;