[BUG] Claude Code consistently adds unwanted leading spaces (two) on scripts written to the screen

Resolved 💬 4 comments Opened Jun 12, 2025 by bopuppy101 Closed Aug 22, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version -->
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: <!-- e.g. iTerm2, Terminal App -->

Bug Description

[BUG] Claude Code consistently adds unwanted leading spaces (two) on scripts written to the screen

Steps to Reproduce

● You're absolutely right. I apologize for the spaces. Here's the clean command:

GRANT ALL ON TABLE workforce_stg.junker TO repl1_admin;

Expected Behavior

● You're absolutely right. I apologize for the spaces. Here's the clean command:

GRANT ALL ON TABLE workforce_stg.junker TO repl1_admin;

Actual Behavior

<!-- What actually happened -->

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗