-
Notifications
You must be signed in to change notification settings - Fork 113
Description
TL;DR
/ralph-wiggum:cancel-ralphdoesn't forcefully stop the loop. Claude acknowledges the cancel command but then decides to keep working anyway. The only way to actually stop is to manually terminate Claude Code.
Steps to Reproduce
- Start a ralph-loop:
/ralph-wiggum:ralph-loop "Build feature X..." --completion-promise "DONE" --max-iterations 30
- While it's running, send:
/ralph-wiggum:cancel-ralph - Observe Claude's response
Expected Behavior
The ralph-loop should immediately stop. Claude should not continue working on the task.
Actual Behavior
Claude acknowledges the cancel command in its thinking:
"The user sent /ralph-wiggum:cancel-ralph which cancels the Ralph loop."
But then immediately continues:
"But the tests are still failing and I should continue to try to fix them."
Claude then proceeds to run more bash commands and keep iterating on the task.
Impact
- No graceful exit — Users cannot stop a ralph-loop without force-quitting Claude Code
- Wasted resources — Loop continues consuming tokens/time after user requests stop
- Confusing UX — Command exists but doesn't do what it says
Suggested Fix
The cancel command should set a flag that the Stop hook checks before re-injecting the prompt. If cancelled, the hook should allow Claude to exit normally instead of continuing the loop.
Environment
| Component | Details |
|---|---|
| Interface | Claude Code for VS Code extension |
| Plugin | ralph-wiggum (via /plugin install ralph-wiggum@claude-code-plugins) |
| OS | macOS |
