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

[BUG] CC very slow and make my computer very slow too - CC config file too big (600KB)

Open Volko61 opened this issue 2 months ago • 6 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?

The .claude.json get filled by junk and become bigger and bigger and when it's too big it makes my whole computer freeze, lag, and unresponsive when using CC.

Renaming .claude.json to .claude.json.old to make him disappear, launching CC to create a new .claude.json automatically, now it's running fine (and the .claude.json is 32KB for now) I think he is filled by the history and idk why it makes CC and my computer running slow and lag.

What Should Happen?

The computer should run smooth and the .claude.json shouldn't become that big (it shouldn't retain the whole history)

Error Messages/Logs


Steps to Reproduce

  1. Use claude code for a long time
  2. The computer will become slow
  3. Renaming .claude.config solve the issue

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.0.25

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

I'm on windows on ARM (snapdragon x elite), 16Go of RAM

Volko61 avatar Nov 13 '25 01:11 Volko61

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5024
  2. https://github.com/anthropics/claude-code/issues/6394
  3. https://github.com/anthropics/claude-code/issues/10192

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 Nov 13 '25 02:11 github-actions[bot]

I'm not entirely sure the sluggishness is due to this file, 600KB is not much, mine was similar in size. Though after cleaning the history entries up, it all started much fater, that's true. But in general, given how a terminal utility like this is supposed to be fast, the model is remote, it shouldn't matter much how powerful our computers are, anything that is fine for office work should work fine right? Well, not in my case. I have constant issues with the terminal-based interface, input delays, visual glitches, not being able to edit or delete text, artifacts, insane memory usage (I have 8GB for the dev VM, and it's maxed out). You'd think that terminal is made for inputting and outputting text, but a proper UI by competitors never had this issue (but their models or pricing were dumber).

Firsh avatar Nov 13 '25 09:11 Firsh

@Firsh They are using the Ink library which is based on React, with a bad implementation you can get a lot of usage. If for example you use a 600KB file that you keep using on each render (+I/O overhead) you can have slowdowns. I don't know how Ink work but since it's using React and React work with DOM, I think there is some kind of hidden "browser" involved which might be the cause of the high memory usage you have

Volko61 avatar Nov 13 '25 11:11 Volko61

Same here. Even updated to preview 7.6.0 powershell and reinstalled completely, deleted all .claude folders, all settings, all history... Still nightmare slow and its not the model, its the client that freezes... Likely related to bun memory issues as always because closing and running a fresh chat gives you 5-10 minutes of normal speed.

TheAuditorTool avatar Nov 24 '25 08:11 TheAuditorTool

The new UI in the VS Code extension instead of the terminal is way faster, though!

Firsh avatar Nov 25 '25 06:11 Firsh

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 25 '25 10:12 github-actions[bot]