Skip to content

fix(hooks): quote plugin paths with spaces - #5

Open
AndrewDongminYoo wants to merge 1 commit into
warpdotdev:mainfrom
AndrewDongminYoo:fix/quote-hook-paths
Open

fix(hooks): quote plugin paths with spaces#5
AndrewDongminYoo wants to merge 1 commit into
warpdotdev:mainfrom
AndrewDongminYoo:fix/quote-hook-paths

Conversation

@AndrewDongminYoo

Copy link
Copy Markdown

Summary

  • Quote command paths in the Warp and orchestration hook manifests.
  • Execute every manifest command from a plugin root that contains spaces.

Problem

Codex provides the plugin location through PLUGIN_ROOT.
The current manifest commands expand that value without quoting the executable path.
A plugin root that contains spaces is split into multiple shell words, so every matching hook exits with code 127.

This change keeps the existing PLUGIN_ROOT contract and quotes only the executable path.
It is narrower than the approach in #4, which replaced the root variable.

Validation

  • jq empty plugins/warp/hooks/hooks.json plugins/orchestration/hooks/hooks.json
  • bash -n tests/test-hooks.sh
  • bash tests/test-hooks.sh (63 passed, 0 failed)
  • git diff --check

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