You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Wire the permission.ask plugin hook #19469
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The permission.ask hook is declared in the Hooks interface (@opencode-ai/plugin) but never triggered from the permission engine. Plugins that implement permission.ask are silently ignored.
Wiring it would let plugins auto-allow or auto-deny permission requests before prompting the user — useful for governance sidecars, policy engines, and MCP integrations that manage permissions externally.
This issue might be a duplicate of existing issues. Please check:
permission.ask plugin hook is defined but not triggered #7006: permission.ask plugin hook is defined but not triggered — describes the same root cause (hook declared in the SDK but never fired by the permission engine) and even includes a nearly identical proposed fix.
Filed #22311, exposing ask() on tool.execute.before so plugins can initiate permission requests from the pre-tool hook. Complementary to this issue. Have a branch ready if it's wanted?
Activity
feat(opencode): wire permission.ask plugin hook
github-actions commentedon Mar 27, 2026
This issue might be a duplicate of existing issues. Please check:
permission.askplugin hook is defined but not triggered #7006:permission.askplugin hook is defined but not triggered — describes the same root cause (hook declared in the SDK but never fired by the permission engine) and even includes a nearly identical proposed fix.jbro commentedon Apr 13, 2026
Filed #22311, exposing
ask()ontool.execute.beforeso plugins can initiate permission requests from the pre-tool hook. Complementary to this issue. Have a branch ready if it's wanted?github-actions commentedon Jul 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.