Persistent Memory Corruption Preventing CLI State Reset

Resolved 💬 3 comments Opened Sep 26, 2025 by mayapos Closed Jan 9, 2026

Bug Description
Repeats same command syntax errors in cycles

Memory Persistence Issues

  • Memory persists after deleting project CLAUDE.md file
  • Memory persists after removing all .claude directories
  • Memory persists after complete system reboot
  • Memory persists across new CLI sessions

Steps to Reproduce

  1. Use Claude Code CLI in any Windows environment
  2. Allow assistant to make platform-specific errors (Linux commands on Windows)
  3. Correct the assistant multiple times
  4. Observe recursive behavior where same errors repeat
  5. Try standard memory reset procedures (delete CLAUDE.md, restart CLI)
  6. Reboot entire system
  7. Start fresh CLI session
  8. Observe same memory corruption persists

Expected Behavior

  • Assistant should remember platform-specific corrections within session
  • Memory should reset after deleting CLAUDE.md files
  • Fresh CLI sessions should start with clean context
  • System reboots should completely clear any persistent state

Actual Behavior

  • Assistant enters infinite loo

Severity

Critical - Makes Claude Code CLI unusable for affected users and indicates serious architectural issues with
memory management.

---
Generated by affected user experiencing persistent recursive memory corruption in Claude Code CLI

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 1.0.81
  • Feedback ID: 21fb7e9d-8bfd-4626-bae0-6f16ccd97c6d

Errors

[{"error":"Error: ENOENT: no such file or directory, open 'C:\\Users\\Byron\\.claude\\statsig\\statsig.session_id.2656274335'\n    at writeFileSync (unknown)\n    at setItem (B:/~BUN/root/claude.exe:504:8083)\n    at vEW (B:/~BUN/root/claude.exe:27:19075)\n    at cLW (B:/~BUN/root/claude.exe:27:43570)\n    at uLW (B:/~BUN/root/claude.exe:27:43011)\n    at get (B:/~BUN/root/claude.exe:27:42512)\n    at XOW (B:/~BUN/root/claude.exe:27:50348)\n    at _getInternalRequestArgs (B:/~BUN/root/claude.exe:27:50121)\n    at _capture (B:/~BUN/root/claude.exe:27:34471)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:45576)","timestamp":"2025-09-26T12:21:42.849Z"},{"error":"Error: ENOENT: no such file or directory, open 'C:\\Users\\Byron\\.claude\\statsig\\statsig.session_id.2656274335'\n    at writeFileSync (unknown)\n    at setItem (B:/~BUN/root/claude.exe:504:8083)\n    at vEW (B:/~BUN/root/claude.exe:27:19075)\n    at cLW (B:/~BUN/root/claude.exe:27:43570)\n    at uLW (B:/~BUN/root/claude.exe:27:43011)\n    at get (B:/~BUN/root/claude.exe:27:42512)\n    at XOW (B:/~BUN/root/claude.exe:27:50348)\n    at _getInternalRequestArgs (B:/~BUN/root/claude.exe:27:50121)\n    at _capture (B:/~BUN/root/claude.exe:27:34471)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:45576)","timestamp":"2025-09-26T12:21:42.849Z"},{"error":"Error: ENOENT: no such file or directory, open 'C:\\Users\\Byron\\.claude\\statsig\\statsig.session_id.2656274335'\n    at writeFileSync (unknown)\n    at setItem (B:/~BUN/root/claude.exe:504:8083)\n    at vEW (B:/~BUN/root/claude.exe:27:19075)\n    at cLW (B:/~BUN/root/claude.exe:27:43570)\n    at uLW (B:/~BUN/root/claude.exe:27:43011)\n    at get (B:/~BUN/root/claude.exe:27:42512)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:48412)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:44166)\n    at new Promise (native:1:11)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:43978)","timestamp":"2025-09-26T12:21:42.850Z"},{"error":"Error: ENOENT: no such file or directory, open 'C:\\Users\\Byron\\.claude\\statsig\\statsig.session_id.2656274335'\n    at writeFileSync (unknown)\n    at setItem (B:/~BUN/root/claude.exe:504:8083)\n    at vEW (B:/~BUN/root/claude.exe:27:19075)\n    at cLW (B:/~BUN/root/claude.exe:27:43570)\n    at uLW (B:/~BUN/root/claude.exe:27:43011)\n    at get (B:/~BUN/root/claude.exe:27:42512)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:48412)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:44166)\n    at new Promise (native:1:11)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:43978)","timestamp":"2025-09-26T12:21:42.850Z"},{"error":"Error: ENOENT: no such file or directory, open 'C:\\Users\\Byron\\.claude\\statsig\\statsig.session_id.2656274335'\n    at writeFileSync (unknown)\n    at setItem (B:/~BUN/root/claude.exe:504:8083)\n    at vEW (B:/~BUN/root/claude.exe:27:19075)\n    at cLW (B:/~BUN/root/claude.exe:27:43570)\n    at uLW (B:/~BUN/root/claude.exe:27:43011)\n    at get (B:/~BUN/root/claude.exe:27:42512)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:48412)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:44166)\n    at new Promise (native:1:11)\n    at <anonymous> (B:/~BUN/root/claude.exe:27:43978)","timestamp":"2025-09-26T12:21:42.851Z"},{"error":"Error: ENOENT: no such file or directory, open 'C:\\Users\\Byron\\.claude\\statsig\\

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗