34ed4345fc
When the LLM sends heredoc commands (cat << 'EOF'), the semicolon sentinel (EOF; echo '<<exit>>') prevents bash from recognizing the terminator, causing the session to hang until the 120s timeout. Confirmed in production logs: the exact command that caused the hang. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>