claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Claude Code v2.1.27 gets stuck on the first message, with very high memory usage.

Open aidenpan0x opened this issue 10 months ago • 15 comments

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?

Claude Code v2.1.27 gets stuck on the first message, with very high memory usage.

What Should Happen?

Claude Code v2.1.27 gets stuck on the first message, with very high memory usage.

Error Messages/Logs


Steps to Reproduce

Claude Code v2.1.27 gets stuck on the first message, with very high memory usage.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

v2.1.27

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

aidenpan0x avatar Jan 31 '26 18:01 aidenpan0x

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/22200
  2. https://github.com/anthropics/claude-code/issues/22158
  3. https://github.com/anthropics/claude-code/issues/22182

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 31 '26 18:01 github-actions[bot]

Definitely some kind of issue going on. Cant switch models, cant do anything.

shanepadgett avatar Jan 31 '26 18:01 shanepadgett

Same here !

nsebag avatar Jan 31 '26 18:01 nsebag

Downgrade to previous version temporarily please

Downgrade:

curl -fsSL https://claude.ai/install.sh | bash -s 2.1.25

Disable auto update: Edit ~/.claude/settings.json

{
  "env": {
    "DISABLE_AUTOUPDATER": "1"
  }
}

thieung avatar Jan 31 '26 18:01 thieung

Same for me it gest stuck a lot, and freezes to much

joseamijares avatar Jan 31 '26 18:01 joseamijares

I encountered this issue as well. After extensive troubleshooting, I discovered that deleting all directories such as ~/.claude/session-env and ~/.claude/projects resolved the problem.

bitkylin avatar Jan 31 '26 18:01 bitkylin

fix: https://github.com/anthropics/claude-code/issues/22198#issuecomment-3829158926

h4yfans avatar Jan 31 '26 19:01 h4yfans

fix: #22198 (comment)

That’s a work around.

ejc3 avatar Jan 31 '26 20:01 ejc3

I did /resume /compact and that worked.

dietrich avatar Feb 02 '26 17:02 dietrich

Downgrade to previous version temporarily please

Downgrade:

curl -fsSL https://claude.ai/install.sh | bash -s 2.1.25

Disable auto update: Edit ~/.claude/settings.json

{
  "env": {
    "DISABLE_AUTOUPDATER": "1"
  }
}

This is the only thing that solves it for me.

hyper-lode avatar Feb 03 '26 05:02 hyper-lode

ok solved with v2.1.31 for me

hyper-lode avatar Feb 04 '26 06:02 hyper-lode

2.1.31 did not solve it for me. Still on 2.1.25 as a result.

cspenn avatar Feb 04 '26 15:02 cspenn

2.1.31 did not solve it for me. Still on 2.1.25 as a result.

Are you using Windows?

thieung avatar Feb 05 '26 02:02 thieung

She solved it for me was a previous comment - a MASSIVE 3 GB JSONL file in .Claude/projects in one of the subprojects.

find . -type f -size +100M -delete

Found the errant file and nuked it and now things are back to normal.

cspenn avatar Feb 07 '26 01:02 cspenn

This is fixed as of Claude Code 2.1.326, so we're closing this issue. If you disagree, let us know here and we can re-open it. Thanks for reporting!

bpasero-ant avatar Nov 29 '26 17:11 bpasero-ant