fix: move isCurrentConvThinking declaration before useEffect to fix ReferenceError
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user