[BUG] When Cloud code supplies a multi-line script. It always adds two blank spaces before each line on the script, which, depending on the language, can screw up the script big time.
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?
[BUG] When Cloud code supplies a multi-line script. It always adds two blank spaces before each line on the script, which, depending on the language, can screw up the script big time.
Any script that depends on correct indention doesn't work. And this is so if Cloud writes a file out, it's fine. Cloud can move, Cloud code can remove the blanks. But if Cloud Code writes to the screen, it always buffers each line with two blanks. This does not work for scripts. This script might work, but many others don't. Allow Claude Code to write to the screen when producing scripts without two space characters padding each line.
for example:
rv ()
{
if [ -z "$MSYSTEM" ]; then
"/c/Program Files/Git/git-bash.exe" -lc '
. "$(conda info --base)/etc/profile.d/conda.sh"
[ "$CONDA_DEFAULT_ENV" = "faster-whisper" ] || conda activate faster-whisper
cd /c/git/nuitka-build && python src/voice2text/voice2text.py
';
else
. "$(conda info --base)/etc/profile.d/conda.sh";
if [ "$CONDA_DEFAULT_ENV" != "faster-whisper" ]; then
conda activate faster-whisper;
fi;
cd /c/git/nuitka-build && python src/voice2text/voice2text.py;
fi
}
What Should Happen?
When Cloud Code writes a script to the screen, each line should be exactly as it should be executed without extra blank padding.
Error Messages/Logs
Steps to Reproduce
to write a multi-line Python script and send it to the screen. It will be blank-padded incorrectly.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.61
Platform
Other
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗