opencode
opencode copied to clipboard
feat: add notify hook system with input_required and timeout support
Closes #5515 Related to #7640
Summary
- Added new
input_requiredhook type to the config schema for notifications when input is needed - Implemented configurable timeout option for all hooks (default 30000ms)
- Integrated hook initialization during instance bootstrap
Test plan
- [ ] Verify hook configuration is properly loaded from config
- [ ] Test input_required hook fires when session requires user input
- [ ] Test timeout configuration works as expected
- [ ] Verify hooks don't block normal operation
🤖 Generated with Claude Code