claude-code - 💡(How to fix) Fix [BUG] Project history collision between different Japanese-named directories with same path length

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

ClaudeCodeCLIで 日本語のフォルダ名の中で作業すると、同じ文字数の他のプロジェクトと履歴が混ざって誤動作します

2.1.146 (Claude Code)

What Should Happen?

フォルダ名に日本語が使われていても適切に履歴管理をして欲しい

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Create two directories with different Japanese names of the same character length: C:\work\案件あ\sample C:\work\案件い\sample
  2. Launch Claude Code CLI in the first directory and have a short conversation: cd C:\work\案件あ\sample claude

This is a conversation in 案件あ

  1. Exit Claude Code.
  2. Launch Claude Code CLI in the second directory: cd C:\work\案件い\sample claude
  3. Run /resume or otherwise inspect the conversation history.

Expected

  • The second directory should have its own independent (empty or 案件い-specific) history.

Actual

  • The conversation history from 案件あ appears under 案件い (and vice versa).
  • Inspecting ~/.claude/projects/ shows that both paths map to the same project directory slug.

Additional context

  • Non-ASCII (Japanese) characters in the path appear to be stripped or replaced with the same placeholder character when the project slug is generated, so different paths of the same length collide.
  • Tested on Windows 11 Pro 26100

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.146 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Project history collision between different Japanese-named directories with same path length