[BUG] Session crashes with "failed to load session" when Bash tool output contains U+2028 (LINE SEPARATOR) characters
Resolved 💬 4 comments Opened Feb 21, 2026 by SiliconValleyPirate Closed Mar 24, 2026
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?
When a Bash tool command produces output containing Unicode U+2028 (LINE SEPARATOR) characters, the active session crashes immediately with a "failed to load session" error. The session cannot be recovered — clicking back into the conversation from the left panel shows an indefinite loading spinner with no resolution.
What Should Happen?
- The session should handle all valid Unicode characters in tool output without crashing
- U+2028 and U+2029 should either be preserved safely or normalized to standard newlines (U+000A) during session serialization
- If a session file is partially corrupted, the app should show a meaningful error and allow recovery rather than entering an unrecoverable spinner state
Error Messages/Logs
Steps to Reproduce
- Open Claude Code (Desktop App)
- Have a
.docxfile that contains bullet points or list formatting created in Microsoft Word (these often produce U+2028 characters when converted to plain text) - Ask Claude to read the
.docxfile — it will usetextutil -convert txt -stdout "file.docx"on macOS - The Bash tool captures the output, which includes raw U+2028 characters
- The session immediately crashes: the window switches to "failed to load session"
- Attempting to reopen the session from the conversation list shows an infinite loading spinner
But also:
Any Bash command that outputs U+2028 should trigger this. You can test without needing a .docx file:
printf "Hello\xe2\x80\xa8World"
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
1.1.3830
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗