Skip to content

fix: run event hooks as direct argv instead of through sh - #9

Merged
jhochenbaum merged 1 commit into
mainfrom
manifest-portable-commands
Aug 19, 2026
Merged

fix: run event hooks as direct argv instead of through sh#9
jhochenbaum merged 1 commit into
mainfrom
manifest-portable-commands

Conversation

@jhochenbaum

@jhochenbaum jhochenbaum commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Removes the unnecessary POSIX shell wrapper from event hooks.

Herdr 0.8 runs event commands from the plugin root, so dist/bin/event.js resolves directly as ["node", "dist/bin/event.js"]. Pane commands keep their wrapper because plugin pane open --cwd runs them from the reviewed worktree.

This removes one Windows incompatibility without changing pane behavior. Full Windows support remains in #10.

Validation:

  • Manifest coverage requires direct event argv with no shell expansion.
  • Formatting, lint, and the manifest tests pass.
  • Command cwd behavior was verified against Herdr 0.8.0.

@jhochenbaum
jhochenbaum force-pushed the manifest-portable-commands branch from eb6c532 to 34556ad Compare August 19, 2026 02:49
Herdr 0.8 runs event hooks from the plugin root, so event.js resolves without sh or HERDR_PLUGIN_ROOT expansion. Pane commands keep their wrapper because their cwd is the reviewed worktree.
@jhochenbaum
jhochenbaum force-pushed the manifest-portable-commands branch from 34556ad to 07bcfc3 Compare August 19, 2026 02:51
@jhochenbaum
jhochenbaum marked this pull request as ready for review August 19, 2026 02:54
@jhochenbaum
jhochenbaum merged commit 81b85ce into main Aug 19, 2026
2 checks passed
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