[BUG] Failed to resume session: EINVAL: invalid argument, stat 'C:\Users\username
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?
For the last 4-5 days, claude cowork hasn't been letting us continue conversations. After one response, it errors out with: Failed to resume session: EINVAL: invalid argument, stat 'C:\Users\username\AppData\Roaming\Claude\local-agent-mode-sessions\8d1e1da8-1c54-4424-8001-f4339cd144e1\1611c907-0912-4a73-86fe-278891fe6b38\local_a9d7dffd-802f-40c1-9fed-11368cb529df\.claude\projects\C--Users-eyob-zeleke-AppData-Roaming-Claude-local-agent-mode-sessions-8d1e1da8-1c54-4424-8001-f4339cd144e1-1611c907-0912-4a73-86fe-278891fe6b38-local-a9d7dffd-802f-40c1-9fed-11368cb529df-outputs\fcac0969-52cc-43cb-a226-2c378e6a5b12.jsonl'
I have done all the recommended solutions to no avail.
Close Claude desktop entirely
Navigate to %APPDATA%\Claude\
Delete the entire local-agent-mode-sessions folder
Restart Claude
ReInstall Claude
LongPathsEnabled=1 in Registry
Shorter directory path: C:\Claude
Complete Session Wipe: Deleted the entire local-agent-mode-sessions folder
I have come to conclude this maybe a bug?
What Should Happen?
Conversation in claude cowork should seemlessly continue without erroring out like it used to 4-5 days ago.
Error Messages/Logs
Failed to resume session: EINVAL: invalid argument, stat 'C:\Users\username\AppData\Roaming\Claude\local-agent-mode-sessions\8d1e1da8-1c54-4424-8001-f4339cd144e1\1611c907-0912-4a73-86fe-278891fe6b38\local_a9d7dffd-802f-40c1-9fed-11368cb529df\.claude\projects\C--Users-eyob-zeleke-AppData-Roaming-Claude-local-agent-mode-sessions-8d1e1da8-1c54-4424-8001-f4339cd144e1-1611c907-0912-4a73-86fe-278891fe6b38-local-a9d7dffd-802f-40c1-9fed-11368cb529df-outputs\fcac0969-52cc-43cb-a226-2c378e6a5b12.jsonl'
Steps to Reproduce
Failed to resume session: EINVAL: invalid argument, stat 'C:\Users\username\AppData\Roaming\Claude\local-agent-mode-sessions\8d1e1da8-1c54-4424-8001-f4339cd144e1\1611c907-0912-4a73-86fe-278891fe6b38\local_a9d7dffd-802f-40c1-9fed-11368cb529df\.claude\projects\C--Users-eyob-zeleke-AppData-Roaming-Claude-local-agent-mode-sessions-8d1e1da8-1c54-4424-8001-f4339cd144e1-1611c907-0912-4a73-86fe-278891fe6b38-local-a9d7dffd-802f-40c1-9fed-11368cb529df-outputs\fcac0969-52cc-43cb-a226-2c378e6a5b12.jsonl'
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 Opus 4.7.
Platform
Anthropic API
Operating System
windows
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗