You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash: React hook dependency array undefined when opening new session while another is running #20685
Claude Code crashes with a React internal error when opening a new terminal session while an existing Claude Code session is already running. The crash occurs in the existing session immediately after the new session is opened.
Environment
Claude Code version: 2.1.19
OS: macOS 15.3 (Darwin 25.2.0)
Architecture: arm64 (Apple Silicon)
Runtime: Bun
Steps to Reproduce
Open a terminal and start a Claude Code session
While the first session is still running, open a new terminal
Start a new Claude Code session in the second terminal
The first session crashes immediately
Error Message
ERROR undefined is not an object (evaluating 'N.length')
/$bunfs/root/claude:546:20560
The error occurs in the React reconciler's hook dependency comparison function (Yq is minified areHookInputsEqual). The N.length access fails because N (previous dependencies array) is undefined.
This suggests a race condition or state corruption when multiple Claude Code sessions interact with shared resources (possibly session state files, sockets, or IPC mechanisms).
Expected Behavior
Multiple Claude Code sessions should be able to run concurrently without crashing each other.
Workaround
Killing all Claude Code processes and restarting resolves the issue:
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
github-actions commentedon Jan 24, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Jan 29, 2026
This issue has been automatically closed as a duplicate of #13268.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
github-actions commentedon Feb 6, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.