activeThreads[0].id in useEffect dependency array threw when the array was empty. Use optional chaining to safely handle the empty case. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
activeThreads[0].id in useEffect dependency array threw when the array was empty. Use optional chaining to safely handle the empty case. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>