Skip to content

FIX: align OpenCode hook IO with command/file policy#24

Merged
tom-nash merged 2 commits into
mainfrom
tom-nash/opencode-allowdeny-io
Apr 7, 2026
Merged

FIX: align OpenCode hook IO with command/file policy#24
tom-nash merged 2 commits into
mainfrom
tom-nash/opencode-allowdeny-io

Conversation

@tom-nash
Copy link
Copy Markdown
Member

@tom-nash tom-nash commented Apr 7, 2026

This updates OpenCode hook payload bridging so Cordon receives tool input across multiple argument shapes instead of only output.args. It also hardens deny propagation with an explicit policy error type so genuine policy blocks are surfaced while infrastructure failures remain fail-open. On the hook side, OpenCode command-shaped payloads are now treated as shell invocations even when tool names vary, and Bash parsing now accepts both command and cmd fields. Added tests cover plugin content expectations and command-rule enforcement/regression paths for OpenCode payload variants.

@tom-nash tom-nash merged commit 78d03a2 into main Apr 7, 2026
4 checks passed
@tom-nash tom-nash deleted the tom-nash/opencode-allowdeny-io branch April 7, 2026 07:30
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