Skip to content

[ralph-wiggum] /cancel-ralph command acknowledged but ignored — loop continues #65

@Aistotle

Description

@Aistotle

TL;DR

/ralph-wiggum:cancel-ralph doesn'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

  1. Start a ralph-loop:
   /ralph-wiggum:ralph-loop "Build feature X..." --completion-promise "DONE" --max-iterations 30
  1. While it's running, send: /ralph-wiggum:cancel-ralph
  2. 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.

Image


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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions