2.1.27: 100% CPU infinite loop on --continue / --resume / session listing
Resolved 💬 4 comments Opened Jan 31, 2026 by tbharthur 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.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗