CCA Prep Q59 / 60 Agentic Architecture & Orchestration
2:00:00
Code Generation with Claude Code

Your team has deployed a Claude Code Stop hook that automatically runs a suite of post-generation linting and test checks after Claude finishes responding. Engineers begin reporting that sessions sometimes hang indefinitely — logs show Claude keeps re-entering work cycles without stopping. Examining the hook input, you notice the stop_hook_active field in the JSON payload. What is the most likely root cause of the infinite loop, and what is the correct fix?