You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
2.1.27: 100% CPU infinite loop on --continue / --resume / session listing #22061
Claude Code 2.1.27 enters an infinite loop with 100% CPU and rapidly growing memory (11+ GB) when loading or listing sessions. Fresh starts (claude with no flags) work fine. The issue is specific to any operation that scans or loads existing session files:
claude --continue
claude --resume
/resume from within a running session
Reproduction
Have a project directory with session history (100+ sessions in ~/.claude/projects/)
Run claude --continue or claude --resume
Process immediately spikes to 100% CPU and memory grows unbounded
Must be force-killed (kill -9)
Environment
macOS 26.2 (Sequoia), Apple Silicon (M4 Pro)
Claude Code 2.1.27 — broken
Claude Code 2.1.25 — works fine with the same session files
Node versions tested: v25.5.0 and v22.22.0 (same behavior on both)
~130 session files in the affected project directory (~160MB total)
Key observations
claude --version and claude --print "test" work fine on 2.1.27 (no session scanning)
Fresh claude (no --continue/--resume) launches normally on 2.1.27
Downgrading to 2.1.25 immediately fixes the issue — --continue and --resume work with the exact same session files
Not caused by MCP servers, plugins, statusLine config, or project-specific settings (all tested independently)
Auto-updater aggressively overwrites the symlink back to 2.1.27 on each launch, making it difficult to stay pinned to 2.1.25
Workaround
# Delete 2.1.27 and pin to 2.1.25
rm ~/.local/share/claude/versions/2.1.27
ln -sf ~/.local/share/claude/versions/2.1.25 ~/.local/bin/claude
Note: The auto-updater will eventually re-download a newer version, so this needs to be repeated if a fixed version hasn't been released.
Reacted by Matt May, Stronk Cat, pittmanluke and Minsu Lee
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.
Activity
github-actions commentedon Jan 31, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
alexn-tinwell commentedon Jan 31, 2026
#22042
tbharthur commentedon Jan 31, 2026
Duplicate of #22042
github-actions commentedon Feb 7, 2026
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.