fix: move isCurrentConvThinking before useEffect that references it in dependency array
This commit is contained in:
@@ -617,6 +617,13 @@ export default function Chat() {
|
||||
}
|
||||
}, [orchestratorConfigQuery.data, conversations.length]);
|
||||
|
||||
const messages = active?.messages ?? [];
|
||||
const convId = activeId;
|
||||
|
||||
const isCurrentConvThinking = activeId
|
||||
? isConversationThinking(activeId)
|
||||
: false;
|
||||
|
||||
// Auto-scroll to bottom when messages change
|
||||
useEffect(() => {
|
||||
const el = scrollRef.current;
|
||||
@@ -645,13 +652,6 @@ export default function Chat() {
|
||||
adjustTextareaHeight();
|
||||
}, [input, adjustTextareaHeight]);
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user