[BUG] Agent Teams crashes with "Cannot read properties of undefined (reading 'length')"
Status Fixed / completed
Reported on v2.1.32
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 3 comments · opened Feb 5, 2026 · closed Feb 7, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment:
- Claude Code version: 2.1.32
- Node.js version: v25.3.0
- OS: Windows 10/11
- Installation method: npm (via Nodist)
Description:
Enabling the experimental Agent Teams feature causes Claude Code to crash immediately with a TypeError.
Workaround:
Disabling the agent teams feature (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS="") allows Claude Code to work normally.
Notes:
- Claude Code works fine on Node.js v25.3.0 without agent teams enabled
- The crash appears to be in the React/Ink UI rendering (useSyncExternalStore)
What Should Happen?
Claude Code should launch without errors
Error Messages/Logs
ERROR Cannot read properties of undefined (reading 'length')
file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:746:20673
- x5 (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:746:20673)
- z$ (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:746:28873)
- FH (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:746:29029)
- Object.W9 (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:746:25216)
- aV5.useSyncExternalStore (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:252:9613)
- T6 (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:3703:4810)
- Gjq (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:7399:13074)
- b91 (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:7412:10220)
- U3 (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:746:20882)
- QH (file:///C:/Program%20Files%20(x86)/Nodist/bin/node_modules/@anthropic-ai/claude-code/cli.js:746:39403)
Steps to Reproduce
- Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in environment or settings.json
- Run claude or claude --continue
- Claude Code crashes before displaying the UI
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.32
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
3 Comments
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
@eugman thanks for reporting, and so sorry for the crash! This should be fixed with 2.1.34, please feel free to reopen this issue if you're still encountering it.
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.