[BUG]
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?
subject: Re: Conversation ID 215474356405859 — Cowork broken only on my Max account; new $20 Pro account works fine on same machine
Hi,
I need a human agent to read this in full. Fin has now deflected me five times. Conversation ID for reference: 215474356405859.
The definitive proof this is an account-level backend issue:
I just created a brand-new account with a different email and paid $20 for Claude Pro. Cowork works perfectly on that account, on the exact same Windows machine, with the exact same Claude desktop app installation. Then I switch back to my Max account and Cowork throws spawn ENAMETOOLONG on every chat immediately.
Same computer. Same app. Same network. Same Windows install. The only variable is which account is signed in. This is not a Windows bug, not an app bug, not a Cowork bug — it is something broken on my Max account specifically.
Full background — what's been tried and what's been confirmed:
The original issue: spawn ENAMETOOLONG on every Cowork chat (new, old, empty) on my Max account.
Local diagnostics already completed:
Windows 11 25H2, build 26200.8457 (stable GA, not Insider)
Claude desktop app version 1.7196.1.0, MSIX install at C:\Program Files\WindowsApps\Claude_1.7196.1.0_x64__pzs8sxrjxfjjc
PATH length: 848 characters
AppData, LocalAppData, UserProfile all on local C: drive, no redirection
Full clean reinstall completed: uninstalled → rebooted → deleted %APPDATA%\Claude, %LOCALAPPDATA%\Claude, %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc → reinstalled from claude.com/download
Cowork still broken on Max account after every single one of these steps
Cross-machine reproduction:
Same ENAMETOOLONG error on a completely different second computer signed into the same Max account
On the second computer, my conversations, projects, and memory are also missing despite signing into the correct account with the correct email
Cross-account reproduction (new, today):
Created new account, paid $20 for Pro on a separate email
Signed into Pro account on the same machine that fails for my Max account
Cowork works perfectly on the Pro account, instantly
Switched back to Max account, same machine, same install — ENAMETOOLONG immediately
Possibly related, from DevTools console (Max account only):
Repeated 404s on /api/organizations/<uuid>/model_configs/claude-opus-4-7[1m] — note the square brackets in the model ID, which looks malformed and may be what's pushing the subprocess command past Windows' length limit
MaxListenersExceededWarning on AutoUpdater state in the IPC layer
Support history on this case:
Case has been closed as "resolved" twice without anyone verifying on my account
Fin has acknowledged in writing — twice — that this is "an account-specific backend issue requiring engineering investigation"
Fin has now also acknowledged it cannot assign cases to humans
Five separate Fin replies have all deflected me back to self-serve options instead of routing to a human
Two Opus 4.7 incidents resolved on May 18 and May 19 — neither fixed my account
The Intercom support chat widget itself was throwing JavaScript errors when I tried to use it
What I am asking for:
Assign this case to a human agent. Please confirm by email when this has happened.
Have engineering investigate why Cowork fails on my Max account but works on a brand-new Pro account on the same machine. The bad model config URL with the bracketed [1m] suffix is a strong starting point.
Service credit for the Max plan downtime. I have been paying $200/month for a plan whose flagship feature has been broken on my account for days, while a $20 Pro account on the same machine works instantly.
If this cannot be resolved in a reasonable timeframe, I will downgrade my Max plan, keep using the working Pro account, and dispute the most recent $200 charge with my card issuer as service not rendered.
I have done everything reasonable as a customer. This needs an engineer, not another AI deflection.
— Hasan
What Should Happen?
Cowork should open and accept chats normally on my Max account, the same way it does on a fresh Pro account on the same machine with the same Claude desktop app install.
Error Messages/Logs
spawn ENAMETOOLONG — thrown on every Cowork chat (new, old, empty) on my Max account only.
DevTools console also shows repeated 404s on:
/api/organizations/<uuid>/model_configs/claude-opus-4-7[1m]
Note the square brackets in the model identifier — this looks malformed and may be what's pushing the spawned subprocess command past Windows' command-line length limit.
Also: MaxListenersExceededWarning on AutoUpdater_$_updaterState_$store$_update in the IPC layer (listener leak).
Anthropic Support Conversation ID: 215474356405859
Steps to Reproduce
Sign into Claude desktop app v1.7196.1.0 on Windows 11 25H2 (build 26200.8457) with my Max account
Open Cowork
Start any chat — new, existing, or empty
spawn ENAMETOOLONG is thrown immediately
Cross-checks proving this is account-specific, not local:
Reproduces on a second, completely different Windows computer signed into the same Max account
On a brand-new Pro account ($20/month) signed in on the same machine with the same app install, Cowork works perfectly and immediately
Switching back to the Max account on the same machine reproduces the error instantly
Local troubleshooting already completed (none resolved it):
Full uninstall, reboot, deleted %APPDATA%\Claude, %LOCALAPPDATA%\Claude, %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc, reinstalled from claude.com/download
Verified PATH length 848 chars, AppData/LocalAppData/UserProfile all on local C:, no redirection
Verified not on Windows Insider channel
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
N/A
Claude Code Version
N/A — this is a Claude Desktop (MSIX) bug, not Claude Code CLI. Filing here because previous Cowork desktop bugs have been filed in this repo (see issues #55879, #51143, #49551, #36157). Claude desktop app version: 1.7196.1.0
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
Account-level backend issue, not local: Bug reproduces across two different computers on my Max account, but does NOT reproduce on a brand-new Pro account signed in on the same machine with the same app install. The only variable that changes the outcome is which account is signed in.
Possible root cause: The 404 endpoint /model_configs/claude-opus-4-7[1m] contains square brackets in the model identifier. If the desktop app is constructing the Cowork subprocess command using this malformed model string, that could push the spawned command past Windows' ~8,191 character CreateProcess limit, producing ENAMETOOLONG regardless of chat content. This would also explain why empty new chats fail and why a Pro account (presumably routed to a different model config) is unaffected.
Also affected for this account: Conversations, projects, and memory do not appear when signing into the Max account on a second computer — confirmed correct email/account.
Support history: Anthropic support has closed this case as "resolved" twice without verifying on my account. Fin (AI agent) has acknowledged in writing — twice — that this is "an account-specific backend issue requiring engineering investigation," but cannot route to a human agent. Conversation ID: 215474356405859.
14 Comments
Bug Report: spawn ENAMETOOLONG on Cowork workspace connection — Windows 11
Posted by: Stefan (MGC Transport) | Claude Desktop v1.9659.2.0 | Windows 11
The Error
Every time I attempt to connect a local workspace folder to Cowork, the app immediately throws:
spawn ENAMETOOLONG
The error fires on every attempt without exception — new tasks, existing tasks, empty tasks. Cowork is completely non-functional for me as a result.
My Environment
OS: Windows 11
Claude Desktop version: 1.9659.2.0
Install path: C:\Program Files\WindowsApps\Claude_1.9659.2.0_x64__pzs8sxrjxfjjc\app\Claude.exe
Workspace folder I am trying to connect: C:\Claude (10 characters — not the source of the problem)
Account type: Pro
What I Tried
Enabled Windows long path support via registry — ran the PowerShell command to set LongPathsEnabled = 1 in HKLM\SYSTEM\CurrentControlSet\Control\FileSystem. Applied multiple times across multiple sessions and rebooted after each attempt. No change.
Reduced folder depth inside C:\Claude — removed nested directories and node_modules folders to reduce overall file count and path depth inside the workspace. No change.
Verified the workspace path length is not the issue — C:\Claude is 10 characters, well within any limit. The problem is not the folder I am pointing to.
Attempted multiple Cowork sessions — new sessions, existing sessions, empty sessions. The error fires every time regardless.
Root Cause — Based on Research
After investigating, this is not a user-fixable problem. The issue is that Cowork constructs a subprocess command that includes a large system prompt as a command-line argument. On Windows, the CreateProcess API has a hard limit of approximately 8,191 characters for a spawned command. The combined length of the Claude install path, command flags, and system prompt exceeds this limit.
The Windows long path registry fix does not affect this limit. That fix only addresses file path length, not command-line argument length. No local configuration change resolves this.
Current Status
Cowork is completely unusable on my machine. I have exhausted all suggested workarounds. This requires a fix on Anthropic's side — specifically, the system prompt should not be passed as a command-line argument. It should be written to a file and passed by reference, or handled through another mechanism that does not hit the Windows CreateProcess character limit.
Request
Please prioritize a fix for Windows users. This is a blocking issue that makes Cowork entirely inaccessible.
Same issue on Windows 11, Claude Desktop (latest version, MSIX from claude.com/download), Max plan.
Every Cowork chat throws "spawn ENAMETOOLONG" immediately on send — new chats, empty chats, any model, any selected folder. Cowork is completely unusable on this account.
Already tried (none resolved it):
Regular Chat works fine on the same account/app. This looks like the same account-side model_config issue described in this thread. Please prioritize a fix.
try removing all skills and plug ins
On Tue, Jun 2, 2026 at 11:01 AM Kogi82 @.***> wrote:
I had this issue over the last few days. This morning I decided to move the Claude folder to the recommended area (there is an option in settings). This fixed it for me.
I am the owner of JK Consultants, a Team account subscriber. We onboarded our entire team and Cowork went down the following day. We have now been down for 3+ days across all Windows machines on our team. Every machine throws spawn ENAMETOOLONG immediately on any Cowork session. We are on Windows 11, latest Desktop App version, Jk_Consultants Team org. Anthropic support has only responded with the Fin AI bot — we have not received a human response or any fix timeline. This is a paid Team account with active business disruption. Requesting direct engineer attention and a fix timeline.
Relates to Issue #60669
Additional data point — same
spawn ENAMETOOLONG, different trigger (plugin/skill surface), with a confirmed workaroundHit the identical
spawn ENAMETOOLONG-on-every-Cowork-turn error on Windows, but in my case the trigger wasn't the model-config string — it was the size of the loaded extension surface. Sharing because it points at the same root: the Cowork subprocess command line exceeding Windows'CreateProcesslimit.What happened
.mcp.json/.claude-plugin/marketplace.json).spawn ENAMETOOLONG.Why this is relevant to this issue
It shows the failure scales with the aggregate of plugins/skills/agents/MCP tools serialized into the spawned command, independent of (and additive to) the malformed
[1m]model string reported here. Both inflate the same command line; either can push it over the limit.Suggested fix for the team
Pass the Cowork subprocess config via a file or stdin rather than argv, so command-line length doesn't scale with the number of enabled extensions (and isn't sensitive to stray characters in the model id).
Environment
Another Windows repro — confirmed
[1m]artifact present, plus the command-line-length mechanismHitting the same
spawn ENAMETOOLONGon every Cowork turn (Windows 11 Pro, build 10.0.29610; claude-code engine 2.1.181). I can confirm the malformed[1m]model-string artifact this issue suspects — it's present throughout my configs:~/.claude.json→claude-fable-5[1m]claude-opus-4-7[1m],claude-sonnet-4-6[1m],claude-opus-4-6[1m](
[1m]is an ANSI bold escape with the ESC byte stripped — the "1M context" variant tag leaking into model identifiers.)The length mechanism, with numbers: the per-session config the desktop app spawns from
(
%APPDATA%\Claude\local-agent-mode-sessions\…\.claude\.claude.json) is ~35–36 KB,which is already at/over Windows' 32,767-char
CreateProcesscommand-line limit. Breakdown:cachedGrowthBookFeatures: ~20.7 KB (server-pushed feature-flag cache)pluginUsage: ~6.3 KB (number of enabled plugins)So two independent factors push the spawned command line over the limit: (a) the
[1m]artifact, and (b) the config size, which scales with the GrowthBook cache and the number of
enabled plugins. Reducing enabled plugins is a partial workaround (buys headroom); it isn't a fix.
Repro/observations
(extra surface → way over the limit); removing it + full restart restores it.
Suggested fix: pass the Cowork subprocess config via a file/stdin rather than argv, so
command-line length doesn't scale with enabled extensions or the GrowthBook cache — and sanitize
ANSI codes out of model identifiers so
[1m]never reaches the spawned command.Environment
#60669 Cowork throws "spawn ENAMETOOLONG" on every turn, even a 2-char message. Windows 11, desktop app 1.14271.0.0. Logged in main.log: "Session initialization failed for local_…: spawn ENAMETOOLONG" at spawnLocalProcess / doSessionInitialization. Root cause matches issue #60669: the per-session config the app spawns from (%APPDATA%\Claude\local-agent-mode-sessions\…\.claude.json) is ~35 KB — over Windows' 32,767-char command-line limit — and a malformed "[1m]" model tag (e.g. claude-opus-4-7[1m]) tips it over. Please pass the subprocess config via file/stdin instead of argv, and strip ANSI/"[1m]" from model ids. Workaround that helped: remove large plugin bundles, reduce enabled plugins, full restart.
This is a bug issue, the best workaround is Go to Cowork Tab > Customise > Plugins > Disable All Plugins which are not required.
I disabled most as I didn't need them
Agreed. I used Claude Code to help me get through the issue. Reached the same conclusion, and I did disable a lot of plugins.
Thanks.
Wayne C. Correll
Director of Purchasing
Kansas City Kansas Public Schools
Phone: (913) 279-2270
Fax (913) 279-3253
www.kckps.org<http://www.kckps.org>
________________________________
From: kaz00786 @.*>
Sent: Tuesday, June 23, 2026 4:33 AM
To: anthropics/claude-code @.*>
Cc: waynecorrell-creator @.>; Comment @.>
Subject: [CAUTION: NOT FROM USD500] Re: [anthropics/claude-code] [BUG] (Issue #60669)
[https://avatars.githubusercontent.com/u/147075261?s=20&v=4]kaz00786 left a comment (anthropics/claude-code#60669)<https://github.com/anthropics/claude-code/issues/60669#issuecomment-4777792735>
This is a bug issue, the best workaround is Go to Cowork Tab > Customise > Plugins > Disable All Plugins which are not required.
I disabled most as I didn't need them
—
Reply to this email directly, view it on GitHub<https://github.com/anthropics/claude-code/issues/60669?email_source=notifications&email_token=CBWHEMZOTHQPCXDAMV4OCLL5BJFGTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZXG43TSMRXGM22M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4777792735>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/CBWHEM7HMRNXK34UTQVXCYT5BJFGTAVCNFSNUABFKJSXA33TNF2G64TZHM4TGNZSGUZTINZVHNEXG43VMU5TINBYGA4TGNRXGI4KC5QC>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/CBWHEM6SZJGLOOKESKR7U7T5BJFGTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZXG43TSMRXGM22M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y> and Android<https://github.com/notifications/mobile/android/CBWHEM5MJ2VUEHBOKT5XMX35BJFGTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZXG43TSMRXGM22M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. Download it today!
You are receiving this because you commented.Message ID: @.***>
--
This message has been sent from the Kansas City, Kansas Public Schools. The
information contained in this email and any attachments may be privileged
and confidential, and are intended only for the individual or entity
identified as the addressee. If you are not the addressee, or if the
message has been addressed to you in error, you are not authorized to read,
retain, copy, or distribute the message or any attachments. If you have
received the message in error, please delete it and any attachments and
notify the sender by return e-mail or by telephone. Thank you.
I hit the same
spawn ENAMETOOLONGon Cowork Desktop (Windows 11, same MSIX packageClaude_pzs8sxrjxfjjc). It fired on every chat including brand new empty projects, while normal chats outside Cowork andclaude --printkept working. I traced it on my own machine, and I think it explains the Pro vs Max behavior in this thread without needing an account specific backend bug.TL;DR
The Desktop app builds the session worker's environment block with a variable,
CLAUDE_CODE_WORKSPACE_HOST_PATHS, that holds one directory path per installed plugin. The plugin list lives on the server and is re synced on every app launch, so it is per account, not per machine. Enough accumulated plugins push the total environment block past the WindowsCreateProcesslimit (32,767 chars), and every session spawn fails.Why this explains Pro vs Max
A brand new Pro account has zero plugins, so its environment block is small and Cowork spawns fine. An older Max account that has accumulated plugins carries all of those paths into the environment block. Same machine, same app, same install. The only variable that actually changes is how many plugins the signed in account has synced. That is why it looks account specific, but the real driver is plugin count, not a broken backend.
It is the sum, not one variable
I want to be precise here, because it is easy to overstate:
[length]: 85right before the failed spawn),CLAUDE_CODE_WORKSPACE_HOST_PATHSwas about 15,362 chars (ESTIMATED: 180 chars per path times count).CLAUDE_CODE_OAUTH_TOKEN) and the Cowork memory index (CLAUDE_COWORK_MEMORY_INDEX_CONTENT) also weigh in.Measurements
All values are from the affected machine. Each is marked MEASURED (read from log or disk) or ESTIMATED (computed from measured values).
| Item | Value | Source |
|---|---|---|
| Plugin count at peak | 85 | MEASURED (log
[length]: 85) || Plugin count after cleanup | 3 | MEASURED (disk) |
| Length of each plugin path (virtual, in env block) | 180 chars | MEASURED (log) |
| Length of the
skills-pluginpath | 158 chars | MEASURED (log) || Physical on disk path length (not used in env block) | 227 chars | MEASURED (disk) |
| Number of variables in the spawn env block | 60 | MEASURED (log) |
|
WORKSPACE_HOST_PATHSsize at peak | ~15,362 chars | ESTIMATED (length x count) ||
WORKSPACE_HOST_PATHSsize now | ~520 chars | ESTIMATED (length x count) || Total env block size | > 32,767 chars | MEASURED indirectly (spawn failed) |
| Total env block size (exact) | not measured | log records names, not values |
The virtual path is 180 chars while the physical disk path is 227 chars. The difference is the MSIX virtualization prefix. The environment block uses the virtual representation, so 180 is the number that matters.
Two behaviors that make it worse
...\local-agent-mode-sessions\<id>\<id>\rpmaccumulates one subfolder per plugin and keeps orphans of deactivated plugins until you rebuild it manually.Workaround that worked for me (order matters)
Claudeprocess remains in Task Manager).rpmfolder (rename, do not delete, so it is reversible).rpmwith only the active plugins.Locally installed custom
.pluginfiles (outside the session folder) are outside the sync cycle and are safe. Do not touch them.Suggested root fix (Anthropic side)
In order of impact:
There is a strong precedent for this exact fix on this exact error. The
nexu-io/open-designproject hit the samespawn ENAMETOOLONG(Windows) andspawn E2BIG(Linux) when a Claude Code subprocess embedded a large payload in argv, and their fix history is useful here:nexu-io/open-design#143: on Linux,MAX_ARG_STRLENis about 128 KB per argv entry and overflows asE2BIG; on Windows, theCreateProcesscommand line cap is about 32 KB directly, but only about 8 KB when invoked through a.cmdshim, overflowing asENAMETOOLONG. That.cmdshim detail likely explains why some reports cite ~8,191 and others ~32,767.#97), then judged it inferior (left a stray file, did not cover Linux, was slower) and moved to stdin delivery as the final fix (#143), with a regression test asserting the payload never lands in argv even at 200 KB.The same move applies here: get the large, unbounded payload off argv / the environment block and onto stdin or a file reference.
rpmfolder by removing subfolders for plugins no longer in the active list, instead of accumulating orphans.ENAMETOOLONGat spawn and show an actionable message pointing at plugin count and the web fix, instead of the generic "Something went wrong."Self check diagnostic for other affected users
If you are hitting this, paste the block below into Claude Code (or run the PowerShell yourself) to confirm whether plugin accumulation is your cause. It is read only: it measures and reports, and does not delete or modify anything.
Happy to share more detail if it helps narrow down the fix.
Thanks for the detailed analysis and the clear reproducible workaround. This matches my situation exactly!
I’m on the Max plan and currently have 104 plugin subfolders in one rpm directory and 95 in another. Both machines throw spawn ENAMETOOLONG on every Cowork chat (including brand-new empty projects) while normal claude --print works fine. Your breakdown of how CLAUDE_CODE_WORKSPACE_HOST_PATHS plus the rest of the environment block exceeds the Windows CreateProcess limit is spot on, and it explains the Pro vs Max difference without needing a backend bug
I’ll run the fix in the order you specified when I have some time and report back with the before/after counts once I have the bandwidth. Really appreciate you tracing this and writing it up so thoroughly!
Adding another repro data point:
OS: Windows 11 [25H2 OS Build 26200.8655]
Claude Desktop version: [1.18286.0.0]
Account type: [Team]
Tab affected: [Cowork]
Workspace path: [C:\Users\cbaird\Claude — short path, so path length isn't the cause]
Behavior: spawn ENAMETOOLONG fires immediately on [every task / new tasks only], no files read or written. Don't need to look up files or work in folder, just chatting causes the error.
Already tried: LongPathsEnabled registry fix + reboot (no change), clean reinstall (no change)
Follow this please:
Workaround that worked for me (order matters)
Go to claude.ai in the browser, Settings / Customize, Plugins, and deactivate everything you do not use.
Fully quit Cowork Desktop (confirm no Claude process remains in Task Manager).
Rename the session rpm folder (rename, do not delete, so it is reversible).
Reopen Cowork and send any message to trigger a clean re sync. The app rebuilds rpm with only the active plugins.
Verify the new count. Mine dropped from 28 to 3:
(Get-ChildItem "$env:LOCALAPPDATA\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\local-agent-mode-sessions\<id>\<id>\rpm" -Directory).Count
Doing step 3 before step 1 only gives temporary relief. The server still pushes the full list, so rpm re accumulates on the next sync. Web first, then rpm.
Locally installed custom .plugin files (outside the session folder) are outside the sync cycle and are safe. Do not touch them.