ralph-claude-code/tests/unit
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
..
test_circuit_breaker_recovery.bats feat(circuit-breaker): add auto-recovery from OPEN state (#160) 2026-02-07 01:33:41 -07:00
test_cli_modern.bats fix: redirect stdin from /dev/null for all claude execution paths 2026-02-08 14:12:18 +07:00
test_cli_parsing.bats fix(setup): create .ralphrc with consistent tool permissions (#137) 2026-01-28 21:10:02 -07:00
test_enable_core.bats refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
test_exit_detection.bats fix: progress detection improvements (#141, #144) (#158) 2026-02-02 11:30:17 -07:00
test_json_parsing.bats fix: extract denied commands from correct JSON path (Issue #143) 2026-02-01 13:43:47 -07:00
test_ralph_enable.bats refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
test_rate_limiting.bats feat(structure): migrate Ralph files to .ralph/ subfolder (#109) 2026-01-20 23:22:30 -07:00
test_session_continuity.bats fix: progress detection improvements (#141, #144) (#158) 2026-02-02 11:30:17 -07:00
test_task_sources.bats feat(enable): add ralph-enable wizard for existing projects (v0.11.0) (#124) 2026-01-25 14:37:25 -07:00
test_wizard_utils.bats fix(wizard): redirect prompts to stderr for clean command substitution (#130) 2026-01-26 14:47:06 -07:00