diff options
| author | Dickson Tsai <dickson@anthropic.com> | 2026-03-28 08:40:34 -0700 |
|---|---|---|
| committer | Dickson Tsai <dickson@anthropic.com> | 2026-03-28 08:40:34 -0700 |
| commit | 986deab6a1659ebb998b66962df6f02b20bb884d (patch) | |
| tree | 706997dbc9213de011fa27cf7ca60c22670d2aa0 /plugins/ralph-loop/.claude-plugin | |
| parent | 548bfa83750f4191adcb46ffa51b44f02e1ceaa7 (diff) | |
fix: invoke .sh hooks via bash prefix; add version for cache invalidationdickson/bash-prefix-hooks
Fixes #993 (Permission denied on hook scripts) without relying on
client-side +x preservation.
The hook executor spawns commands via /bin/sh -c, which requires +x
to execute a script directly. Prefixing with bash reads the script
as data — mode bits are irrelevant. This works on all Claude Code
versions, whereas the client-side chmod fix (claude-cli #24666) only
shipped in v2.1.86.
All 3 scripts declare #!/bin/bash and use bashisms ([[ ]], =~), so
bash (not sh) is the correct interpreter.
The version field forces a fresh cache path (1.0.0/ instead of
unknown/), ensuring the new hooks.json reaches users with stale
caches.
Diffstat (limited to 'plugins/ralph-loop/.claude-plugin')
| -rw-r--r-- | plugins/ralph-loop/.claude-plugin/plugin.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/ralph-loop/.claude-plugin/plugin.json b/plugins/ralph-loop/.claude-plugin/plugin.json index bac0a0bb..7e101a7c 100644 --- a/plugins/ralph-loop/.claude-plugin/plugin.json +++ b/plugins/ralph-loop/.claude-plugin/plugin.json @@ -1,5 +1,6 @@ { "name": "ralph-loop", + "version": "1.0.0", "description": "Continuous self-referential AI loops for interactive iterative development, implementing the Ralph Wiggum technique. Run Claude in a while-true loop with the same prompt until task completion.", "author": { "name": "Anthropic", |
