[BUG] Claude Desktop "Something went wrong loading this session" - React #185 infinite loop on specific project directory

Resolved 💬 17 comments Opened Feb 20, 2026 by kurtivy Closed Mar 21, 2026

EDIT

Seems to be resolved now. I threw 100 solutions against the wall, including asking Codex to run an audit and fix whatever it could find--but most likely, Anthropic just fixed a bug somewhere. Frustrating, but there tends to be a lot of issues around update-time.

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?

When I open a specific project directory in Claude Desktop (Windows 11), every session immediately shows "Something went wrong loading this session." New sessions also fail — they start, the CLI backend responds successfully, then get killed within 2 seconds.

Other project directories (same machine, same OneDrive, same plugins) work fine. The issue is specific to one project directory regardless of:

  • Moving the directory out of OneDrive
  • Deleting all session files (~/.claude/projects/ AND AppData/Roaming/Claude/claude-code-sessions/)
  • Removing CLAUDE.md, .claude/settings.json, hooks, skills, MCP servers
  • Stripping .claude/ to match a working project's minimal setup
  • Disabling all plugins
  • Renaming the directory to a new path

The CLI backend works — debug logs show sessions start, index files, stream API responses, then immediately receive a Stop signal from the Desktop app. The renderer log shows repeated "Minified React error #185" (maximum update depth exceeded) every time a session in this directory is focused.

Environment:

  • Claude Desktop v1.1.3770, Claude Code v2.1.49
  • Windows 11 (10.0.26200), x64
  • Model: claude-opus-4-6

Relevant logs:

  • %APPDATA%\Claude\logs\unknown-window.log shows repeated React error #185 when switching to this project
  • ~/.claude/debug/<session>.txt shows sessions start normally then receive Stop after ~2 seconds
  • %APPDATA%\Claude\logs\main.log shows sessions being created and mapped to CLI sessions, then immediately stopped

Workaround attempted: None successful. CLI backend works fine — the bug appears to be in the Desktop app's React renderer only.

What Should Happen?

Opening a new session in any project directory should load successfully without errors.

Error Messages/Logs

From %APPDATA%\Claude\logs\unknown-window.log (repeated on every session focus):
Error: Minified React error #185; visit https://react.dev/errors/185

From %APPDATA%\Claude\logs\main.log:
Sessions start and map to CLI, then immediately stop:
  Starting local session local_b1daf4ef... in C:\Users\Kurt\pumpbot
  Mapping internal session local_b1daf4ef... to CLI session a8826f48...
  [Stop hook] Query completed for session local_b1daf4ef...

From ~/.claude/debug/<session>.txt:
  Stream started - received first chunk
  [2 seconds later]
  Getting matching hook commands for Stop with query: undefined

Steps to Reproduce

  1. Have a project directory with a git repo, .claude/ directory with settings, hooks, and custom skills
  2. Open it in Claude Desktop on Windows
  3. Every session (new or existing) shows "Something went wrong loading this session"
  4. Other project directories on the same machine with similar setups work fine
  5. Issue persists after: deleting all session files, removing CLAUDE.md/hooks/skills/MCP servers, stripping .claude/ to bare minimum, disabling all plugins, moving directory to a new path
  6. CLI backend works fine — debug logs show sessions start, API streams, then immediately receive a Stop signal from the Desktop app

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.49

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

The CLI backend (claude.exe) works perfectly — sessions start, index files, and stream API responses. The bug is in the Claude Desktop app's React renderer which hits an infinite re-render loop (React error #185 = maximum update depth exceeded) specifically when displaying sessions for this project. This causes the session to be killed within 2 seconds of starting.

Claude Desktop v1.1.3770, Windows 11 (10.0.26200), 12th Gen i9-12900KF, 64GB RAM.

View original on GitHub ↗

17 Comments

yarodevuci · 4 months ago

I have the same issue on Mac

yakabee-source · 4 months ago

I'm also getting this same issue with only one of my projects.

yakabee-source · 4 months ago

I was able to get around the issue by re-cloning my repository. Possibly a GIT issue, was also able to bypass the issue by creating a new worktree/branch.

andrewluong-dev · 4 months ago

mine doesnt work either!! :/

jooooock · 4 months ago

same issue on Mac

I uninstalled and reinstalled the Claude desktop application, but the project that had the problem before still had issues after the reinstall. Then I cloned the project's code from GitHub (the project is hosted on GitHub) and placed it in a different directory, and then it worked fine. I don't know the exact problem, but now I can continue working on this project, except I've lost my previous conversation data.

Argonomic · 4 months ago

I keep getting this as well.

jhummrich · 4 months ago

I get this intermittently every other prompt now in various projects. This is NEW behavior over the last few days.

wyatteich · 4 months ago

Just started seeing the same thing.

iliya-yordanov · 4 months ago

+1

poirier-benoit · 4 months ago

I have the same issue on Windows 11, app v1.1.3918 (Feb 20 build)
All sessions in one of my projects fail with React error #185. The error appears across every session load attempt, not just one specific session.
Sometime the last message of the session will briefly appear before the session loading error appears.

jhanson-dev · 4 months ago

+1

FXRK · 4 months ago

It is just frustrating!

With a Max Subscription! | Windows 11

Waited patiently for the last three days! Earlier it was Error Code 1YCZHOG

Downloaded the new updated Version 1.1.3918 (a4b368) | Started working and soon enough it started throwing a red intrusion within the terminal - "File content (31489 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content." - All within just 10 minutes of working on the new updated version

Really frustrated and Unhappy with this product!

<img width="1170" height="991" alt="Image" src="https://github.com/user-attachments/assets/33bb3503-ab7b-4404-bc24-53b98d93ba07" />

MaxAkbarViking · 4 months ago

I am on windows and same issue I have uninstalled and reinstalled clear app data reset everything and nothing is working.

alekseyshevchuk · 4 months ago

Same issue. Apparently, if Claude needs some response from you right away, something breaks.

Workaround: switch to chat tab, back to Code tab, back and forth between sessions, and you will see what Claude wants from you

Argonomic · 4 months ago

Cleared cache, new repo clone. Claude Code was working until I merged in our previous branch. Then it started throwing this error again.

github-actions[bot] · 3 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 3 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.