stop-hook-fires-on-waiting-state-not-just-session-end
The Stop hook triggers every time the agent finishes generating a response and enters a waiting-for-user state, not only on true session termination. This creates a feedback loop: agent waits → Stop hook fires → hook injects a feedback message → agent responds → Stop hook fires again, repeating dozens of times. The hook logic must distinguish between agent-waiting and agent-terminating before evaluating completion criteria.