A bug in Claude Code's session cleanup routine, concurrentSessionCleanup(), has been identified that can lead to accidental file deletion. The function parses filenames to identify stale session files, but due to its use of JavaScript's parseInt() without proper validation, it can misinterpret filenames starting with digits as process IDs and delete them. This issue was reported on GitHub, with a clear fix provided, but Anthropic has closed the issue without visible response, despite labeling it as a high-priority data-loss bug. AI
IMPACT Potential for data loss in a developer tool, highlighting issues in software maintenance and bug resolution processes.
RANK_REASON Bug report in a specific software tool, not a frontier model release or significant industry event.
Read on dev.to — Claude Code tag →
- Anthropic
- Claude Code
- concurrentSessionCleanup()
- fs.unlink()
- GitHub
- michaelk-q
- parseInt
- Windows Subsystem for Linux
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →