claude-code - 💡(How to fix) Fix [BUG] Failed to resume session: EINVAL: invalid argument, stat 'C:\Users\username [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55107Fetched 2026-05-01 05:46:05
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

Code Example

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'
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely related to an invalid argument error when resuming a session in Claude Cowork, and a potential workaround could be to investigate and adjust the file path or session management.

Guidance

  • Investigate the file path in the error message to ensure it is valid and properly formatted, as the error message suggests an invalid argument.
  • Consider checking the session management mechanism in Claude Cowork to see if there are any issues with how sessions are being resumed or if there are any configuration options that can be adjusted.
  • Since the issue is reported as a regression, comparing the current version (Claude Opus 4.7) with the previous working version might provide insights into what changed and how to potentially revert or fix the issue.
  • Given that the user has already tried various troubleshooting steps, including reinstalling and adjusting registry settings, it may be necessary to dive deeper into the application's configuration or seek support from the developers.

Example

No specific code example can be provided without more context on the application's internal workings, but checking the file path for any unusual characters or lengths that might be causing the EINVAL error could be a starting point.

Notes

The issue seems to be specific to the interaction between the Claude Cowork application and its session management on the user's system. The fact that it worked previously and the extensive troubleshooting already performed suggests a potential regression or compatibility issue.

Recommendation

Apply workaround: Given the information provided and the steps already taken by the user, the best course of action seems to be to continue investigating potential workarounds, such as adjusting file paths or exploring configuration options within the application, rather than waiting for an upgrade to a potentially fixed version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING