ralph-claude-code/tests
Douwe Scheer 3bff90f486 fix: redirect stdin from /dev/null for all claude execution paths
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>
2026-02-08 14:12:18 +07:00
..
helpers refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
integration fix(setup): create .ralphrc with consistent tool permissions (#137) 2026-01-28 21:10:02 -07:00
unit fix: redirect stdin from /dev/null for all claude execution paths 2026-02-08 14:12:18 +07:00
test_error_detection.sh fix(circuit-breaker): address CodeRabbit review feedback 2025-12-31 13:34:21 -07:00
test_stuck_loop_detection.sh fix(circuit-breaker): fix multi-line error matching in detect_stuck_loop 2025-12-31 14:03:56 -07:00