I've successfully created a GitHub issue on the OpenHands/software-agent-sdk repository for the Stop Hook feature request.
Issue Created: Feature Request: Add Stop Hook to prevent early agent termination
The issue includes:
•
Summary of the Stop Hook feature
•
Motivation explaining the "early exit" / "lazy agent" problem
•
Reference Implementation from Claude Code's Stop Hook documentation
•
Current State analysis of OpenHands' existing hooks system
•
Proposed Solution with specific requirements for the new hook event type
•
Use Cases for practical applications
This feature would allow users to intercept agent termination decisions and evaluate whether all tasks are truly complete before allowing the agent to stop, helping to keep agents engaged for longer periods on complex tasks.
<sub>
View full conversation</sub>