[BUG] `/ralph-wiggum:ralph-loop` has a problem with newline characters.
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 I use the /ralph-wiggum:ralph-loop command from the Claude Code plugin marketplace, my input is always judged as Command contains newlines that could separate multiple commands.
It seems that normal input in the Claude Code input box has issues β it gets automatically wrapped onto a new line π€.
What Should Happen?
Proceed correctly according to the plan.
Error Messages/Logs
Error: Bash command permission check failed for pattern "!
"/home/joker/.claude/plugins/marketplaces/claude-code-plugins/plugins/ralph-wiggum/scripts/setup-ralph-loop.sh" "Build a MacOS-style
frontend project that can open and run normally. Use liquid glass material effect, you can refer to
@ζΆ²ζη»ηζζζζ―εηζ·±εΊ¦εζζ₯ε.md , think deeply, allow using various MCPs" --completion-promise Done --max-iterations 5
# Extract and display completion promise if set
if [ -f .claude/ralph-loop.local.md ]; then
PROMISE=$(grep '^completion_promise:' .claude/ralph-loop.local.md | sed 's/completion_promise: *//' | sed 's/^"\(.*\)"$/\1/')
if [ -n "$PROMISE" ] && [ "$PROMISE" != "null" ]; then
echo ""
echo "βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "CRITICAL - Ralph Loop Completion Promise"
echo "βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo "To complete this loop, output this EXACT text:"
echo " <promise>$PROMISE</promise>"
echo ""
echo "STRICT REQUIREMENTS (DO NOT VIOLATE):"
echo " β Use <promise> XML tags EXACTLY as shown above"
echo " β The statement MUST be completely and unequivocally TRUE"
echo " β Do NOT output false statements to exit the loop"
echo " β Do NOT lie even if you think you should exit"
echo ""
echo "IMPORTANT - Do not circumvent the loop:"
echo " Even if you believe you're stuck, the task is impossible,"
echo " or you've been running too long - you MUST NOT output a"
echo " false promise statement. The loop is designed to continue"
echo " until the promise is GENUINELY TRUE. Trust the process."
echo ""
echo " If the loop should stop, the promise statement will become"
echo " true naturally. Do not force it by lying."
echo "βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
fi
fi
": Command contains newlines that could separate multiple commands
Steps to Reproduce
Run 2.0.50 (Claude Code) in Windows Terminal on Win 11 and enter /ralph-wiggum:ralph-loop "Build a MacOS-style frontend project that can open and run normally. Use liquid glass material effect, you can refer to @ζΆ²ζη»ηζζζζ―εηζ·±εΊ¦εζζ₯ε.md , think deeply, allow using various MCPs" --completion-promise Done --max-iterations 5
Claude Model
Other
Is this a regression?
No, this never worked
Last Working Version
No response
Claude Code Version
2.0.50 (Claude Code)
Platform
Other
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
No response
Found 2 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/9323
- https://github.com/anthropics/claude-code/issues/6660
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and π the existing issue instead
- To prevent auto-closure, add a comment or π this comment
π€ Generated with Claude Code
The issue they mentioned is not the same as the one I'm referring to.
The issue they mentioned is not the same as the one I'm referring to.
Yes, the issue they mentioned is different. By the way, I can reproduce the issue too π
I can also reproduce same in Claude Code on Mac.
me too on macos, is there any workaround?
I asked Claude to update the plugin based on https://github.com/anthropics/claude-code/pull/12642 and it works @frees11 @mqofori for information
I can also reproduce the issue.
I can also reproduce the issue.
can also reproduce same in Claude Code w11
can also reproduce this issue