Back to feed
Dev.to
Dev.to
6/24/2026
Don't Open Claude Code With a Non-Latin Directory Name. Your Conversations Are Disappearing.

Don't Open Claude Code With a Non-Latin Directory Name. Your Conversations Are Disappearing.

Short summary

Claude Code has a critical path encoding bug where non-Latin characters in directory names are replaced with hyphens, causing different projects to collide into single session directories. This can silently delete conversations or expose chat history across unrelated projects. The author provides a free open-source scanner to detect collision risk before data loss occurs.

  • Non-Latin directory names (Chinese, Japanese, Korean, Arabic, Russian, etc.) are incorrectly encoded as hyphens in Claude Code's session storage
  • Multiple projects with the same non-Latin character count collide to identical session directories, risking data loss and privacy exposure
  • Free open-source scanner tool (ai-config-guard) detects collision risk with GitHub Actions CI/CD integration and bilingual dashboard

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Explore more