[BUG] Copy pasting justifies left needlessly
Resolved 💬 3 comments Opened Jan 31, 2026 by cranyy Closed Feb 4, 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?
Copy pasting any text for some reason doesnt maintain the formatting, but seems to justify left:
Original code written by claude:
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Create file
test-013030.py
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
#!/usr/bin/env python3
"""
AUTOBF workflow test utility
"""
def test_output():
"""
Generate consistent test output for validation
#REJECT ME!
"""
return "AUTOBF Test Output v1.0"
if __name__ == "__main__":
print(test_output())
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
Do you want to create test-013030.py?
❯ 1. Yes
2. Yes, allow all edits during this session (shift+Tab)
3. No
How it gets pasted into claude
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Create file
test-013030.py
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
#!/usr/bin/env python3
"""
AUTOBF workflow test utility
"""
def test_output():
"""
Generate consistent test output for validation
#REJECT ME!
"""
return "AUTOBF Test Output v1.0"
if __name__ == "__main__":
print(test_output())
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
Do you want to create test-013030.py?
❯ 1. Yes
2. Yes, allow all edits during this session (shift+Tab)
3. No
Why not just maintain the original formatting so claude doesnt get confused over indenting?
What Should Happen?
Claude should maintain the source formatting
Error Messages/Logs
Feedback ID: 39525737-0634-4981-8b73-20926cb06f26
Steps to Reproduce
Copy paste anything into claude and it will justify left.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.22
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗