Newer Claude CLI versions read from stdin even in -p (print) mode. This causes hangs in both execution modes: - Background mode: OS sends SIGTTIN to suspend the process; the progress-monitoring kill -0 loop runs forever since it returns true for stopped (not just running) processes. - Live/streaming mode (--monitor/--live): the foreground process blocks waiting for terminal input it never receives. Fix: add < /dev/null to both the modern CLI background execution path and the live streaming pipeline, consistent with legacy mode which already redirects stdin from $PROMPT_FILE. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| helpers | ||
| integration | ||
| unit | ||
| test_error_detection.sh | ||
| test_stuck_loop_detection.sh | ||