Skip to content

Comments

fix(ralph-wiggum): Fix cancel-ralph command parsing error#101

Open
Adoom666 wants to merge 1 commit intoanthropics:mainfrom
Adoom666:fix/cancel-ralph-command
Open

fix(ralph-wiggum): Fix cancel-ralph command parsing error#101
Adoom666 wants to merge 1 commit intoanthropics:mainfrom
Adoom666:fix/cancel-ralph-command

Conversation

@Adoom666
Copy link

@Adoom666 Adoom666 commented Jan 2, 2026

The cancel-ralph command was failing with a bash parse error because the inline multi-line bash code in the ```! code block was being passed to bash with the fence markers included.

This fix:

  1. Creates a dedicated cancel-ralph-loop.sh script in scripts/
  2. Updates cancel-ralph.md to call the script via allowed-tools pattern
  3. Matches the working pattern used by ralph-loop.md

The script properly handles both cases:

  • Active loop: removes state file, reports iteration count
  • No loop: reports "No active Ralph loop found"

Tested successfully on macOS.

The cancel-ralph command was failing with a bash parse error because
the inline multi-line bash code in the ```! code block was being passed
to bash with the fence markers included.

This fix:
1. Creates a dedicated cancel-ralph-loop.sh script in scripts/
2. Updates cancel-ralph.md to call the script via allowed-tools pattern
3. Matches the working pattern used by ralph-loop.md

The script properly handles both cases:
- Active loop: removes state file, reports iteration count
- No loop: reports "No active Ralph loop found"

Tested successfully on macOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant