spawn ENAMETOOLONG in Cowork on all chats (new, existing, empty) - Windows 10 Build 26100
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?
Every Cowork session fails immediately with spawn ENAMETOOLONG — affects new chats, existing chats, and brand-new empty chats. Error fires before any message content is sent.
Environment:
- Claude Desktop: 1.15962.1.0
- Claude Code CLI: 2.1.176 (C:\Users\CSCHORR\.local\bin\claude.exe)
- Windows 10 Build 26100
- PATH length: 1,771 characters
Steps to reproduce:
- Open Claude Desktop on Windows 10 Build 26100
- Open Cowork tab
- Start any chat (new or existing, even empty)
- Error fires immediately:
spawn ENAMETOOLONG
Notes:
PATH length of 1,771 characters is above average and may be contributing to pushing the spawned command past Windows' ~8,191 character CreateProcess limit when combined with Cowork's system prompt and model string. This matches the pattern reported in #60669 where the issue was account-specific rather than machine-specific.
Related issue: #60669
What Should Happen?
just work
Error Messages/Logs
Try sending your message again. If it keeps happening, share feedback so we can investigate.
spawn ENAMETOOLONG
You can restart the conversation from an earlier message.
Steps to Reproduce
every cowork attempt
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.176 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗