2.1.27: 100% CPU infinite loop on --continue / --resume / session listing
Status Fixed / completed
Reported on v2.1.27
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 4 comments · opened Jan 31, 2026 · closed Jan 31, 2026
Description
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 --continueclaude --resume/resumefrom within a running session
Reproduction
- Have a project directory with session history (100+ sessions in
~/.claude/projects/) - Run
claude --continueorclaude --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 --versionandclaude --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 —
--continueand--resumework 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.
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
https://github.com/anthropics/claude-code/issues/22042
Duplicate of https://github.com/anthropics/claude-code/issues/22042
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.