opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: add notify hook system with input_required and timeout support

Open xiaocang opened this issue 4 days ago • 2 comments

Closes #5515 Related to #7640

Summary

  • Added new input_required hook 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

xiaocang avatar Jan 10 '26 17:01 xiaocang