Skip to content

fix hook-managed worktree routing#66

Open
sven1103-agent wants to merge 1 commit into
mainfrom
fix/plugin-hook-routing-contract
Open

fix hook-managed worktree routing#66
sven1103-agent wants to merge 1 commit into
mainfrom
fix/plugin-hook-routing-contract

Conversation

@sven1103-agent

Copy link
Copy Markdown
Owner

Summary

  • mutate hook payloads in place so worktree path rewrites and slash-command normalization work with the current OpenCode runtime contract instead of relying on replaced output.args or output.parts
  • handle remotes with unknown or missing default branches more safely, including empty repositories with no remote base branch yet, and add regression coverage for the CLI and hook behavior
  • document the validated runtime boundary and update the worktree routing plan so hard guarantees are reserved for plugin-controlled mutating tool paths

Testing

  • node --test test/hook-enforcement.test.js test/plugin-entrypoint.test.js test/base-branch.test.js test/cli.test.js

Related

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 loads, but write flow is not redirected into prepared worktree

1 participant