[BUG] Cowork spawns new session + "Attach index.js" prompt on every message; EACCES on VM session delete

Open 💬 0 comments Opened Jun 15, 2026 by mohdfaour03

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?

What's wrong:

Cowork is unusable. Every message I send spawns a new session instead of continuing the current one, and shows an "Attach 'index.js' to this session?" dialog for a file I never attached. I have to dismiss it on every send.
Steps to reproduce:

Expected: Session continues, no attach prompt.
Tried, none worked: full restart, fresh task, latest Desktop build, full uninstall/reinstall, cleared %APPDATA%\Claude and %LOCALAPPDATA%\Claude, manually deleted local-agent-mode-sessions folder.
Help > Troubleshooting > "Delete Cowork VM Sessions and Restart" fails with:

EACCES: permission denied, unlink ['C:\****\AppData\Roaming\Claude\local-agent-mode-sessions\b43d87c1-466...\latest']([url](url))
Environment: Windows 11, Claude Desktop [paste your version from Help > About], Pro plan. Reproduces every time.

What Should Happen?

Expected: Session continues, no attach prompt. allows for seamless multiple messages sent into the same chat

Error Messages/Logs

EACCES: permission denied, unlink ['C:\****\AppData\Roaming\Claude\local-agent-mode-sessions\b43d87c1-466...\latest']([url](url))

Steps to Reproduce

Open a Cowork session
Send any follow-up message
A new session spawns and the "Attach index.js to this session?" dialog appears
Repeats 100% of the time

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Desktop 1.12603.1 (3df4fd) on Windows 11 — Cowork

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗