Skip to content

fix: ralph-wiggum stop hook JSON response uses 'ok' field per schema#36300

Open
Relayer5521 wants to merge 1 commit intoanthropics:mainfrom
Relayer5521:fix/stop-hook-json-schema
Open

fix: ralph-wiggum stop hook JSON response uses 'ok' field per schema#36300
Relayer5521 wants to merge 1 commit intoanthropics:mainfrom
Relayer5521:fix/stop-hook-json-schema

Conversation

@Relayer5521
Copy link
Copy Markdown

Summary

  • The ralph-wiggum Stop hook outputs {"decision": "block", ...} on line 171 of plugins/ralph-wiggum/hooks/stop-hook.sh
  • The Claude Code Stop hook schema requires {"ok": boolean} with an optional "reason" string
  • This mismatch causes Claude Code to reject the hook response with: Invalid request format. Stop hook requires JSON response matching schema: {"ok": boolean}
  • Fix: replace "decision": "block" with "ok": false

Same bug and fix as anthropics/claude-plugins-official#752 (ralph-loop plugin).

Test plan

  • Start a ralph-wiggum loop session
  • Let it reach a natural stop point — the stop hook should block exit and feed the prompt back
  • Verify no "Invalid request format" errors in the hook output

🤖 Generated with Claude Code

The Stop hook schema requires {"ok": boolean} but the ralph-wiggum
stop hook was returning {"decision": "block"}. This causes Claude Code
to reject the hook response with "Invalid request format" errors,
breaking the loop continuation mechanism.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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