[BUG]
Resolved 💬 2 comments Opened Dec 17, 2025 by liqi199311116 Closed Dec 17, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
任务中修改代码含有中文,直接Claude code异常退出了,重新进入继续执行一样会异常退出
What Should Happen?
任务能正常修改代码含有中文
Error Messages/Logs
───────────────────────────────────────────────────────────────────────────────────────────────────
>
───────────────────────────────────────────────────────────────────────────────────────────────────
⏵⏵ accept edits on (shift+tab to cycle)
thread '<unnamed>' (559937) panicked at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/str/mod.rs:833:21:
byte index 50 is not a char boundary; it is inside '歌' (bytes 48..51) of `失败,标记为失败并继续处理下一首歌(CDN下载,download_source=2)`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5, aborting
zsh: abort claude
Steps to Reproduce
正常执行代码修改任务,代码中有中文注释就会出现
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Claude Code v2.0.71
Claude Code Version
Claude Code v2.0.71
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗