Skip to content

fix: tolerate missing CLAUDE_PLUGIN_ROOT in hooks#449

Draft
leejhy wants to merge 1 commit into
openai:mainfrom
leejhy:codex/plugin-hook-root-fallback
Draft

fix: tolerate missing CLAUDE_PLUGIN_ROOT in hooks#449
leejhy wants to merge 1 commit into
openai:mainfrom
leejhy:codex/plugin-hook-root-fallback

Conversation

@leejhy

@leejhy leejhy commented Jul 8, 2026

Copy link
Copy Markdown

Summary

  • Convert plugin lifecycle hooks to Claude hook exec form.
  • Skip cleanly with a diagnostic when CLAUDE_PLUGIN_ROOT is missing.
  • Add manifest tests for missing-root and delegated-hook behavior.

Fixes #448.

Test plan

  • python3 -m json.tool plugins/codex/hooks/hooks.json
  • git diff --check
  • node --test tests/hooks-manifest.test.mjs tests/commands.test.mjs
  • npm test

@leejhy leejhy changed the title Harden plugin hook root resolution fix: tolerate missing CLAUDE_PLUGIN_ROOT in hooks Jul 8, 2026
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.

Plugin hooks fail when CLAUDE_PLUGIN_ROOT is missing on macOS

1 participant