[BUG] /export command produces empty file and empty clipboard in iTerm2 despite active conversation history
Resolved 💬 3 comments Opened Apr 24, 2026 by novellus1013 Closed May 28, 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?
The /export command runs without errors but produces no output — the exported file is created but is empty, and the clipboard contains nothing when used in iTerm2.
Environment:
- OS: macOS Darwin 24.6.0
- iTerm2: 3.6.10
What Should Happen?
- Exported file and clipboard contain the full conversation transcript.
Error Messages/Logs
Steps to Reproduce
- Start a Claude Code session
- Have a simple conversation to generate content
3-1. Run /export (clipboard variant) → outputs "Conversation copied to clipboard" but clipboard is empty
3-2. Run /export (file variant) → file is created but has 0 bytes
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.109 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
- This error does not occur in the VS Code integrated terminal. (v1.117.0)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗