mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 15:15:57 +03:00
[GH-ISSUE #24] Bug: /ralph-wiggum:ralph-loop slash command fails permission check #4
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wanderingnature on GitHub (Jan 5, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/24
Bug:
/ralph-wiggum:ralph-loopslash command fails permission checkSummary
The
/ralph-wiggum:ralph-loopslash command consistently fails with a bash permission error, even when valid permission patterns are configured. The command works when Claude falls back to calling the setup script directly viaBash().Environment
Steps to Reproduce
Configure
.claude/settings.jsonwith permission pattern:Run the slash command:
Observe permission error
Expected Behavior
The slash command should execute the setup script with proper permission matching.
Actual Behavior
The command fails with:
Note the triple backticks and
!wrapping the command in the error output. This suggests the plugin is formatting the bash command incorrectly before passing it to Claude Code's permission checker.Workaround
When the slash command fails, Claude can retry by calling the script directly via
Bash():This works correctly and triggers the normal approval flow.
Root Cause
The issue is in
commands/ralph-loop.md. The original file uses a```!code block syntax to specify bash execution:Original (broken):
The
```!syntax appears to be intended as a plugin directive meaning "execute this command." However, Claude Code's permission system receives the literal string including the backticks and!rather than just the command inside. The permission checker therefore sees:"/path/to/script.sh" "args"
Changes made:
```!code block wrapper - this was being passed literally to the permission checker:*toallowed-toolspattern (Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh:*)) to permit any arguments to be passed to the scriptVerified Working
After applying this fix, the slash command works correctly:
The Ralph loop activates as expected without permission errors.
@wanderingnature commented on GitHub (Jan 5, 2026):
this is actually a bug in Anthropic CORE plugin, maybe it effects your code?
@mikeyobrien commented on GitHub (Jan 7, 2026):
Don't think this is applicable - I would open this ticket in the core-plugin repo.