The build_claude_command() function was incorrectly using --prompt-file which doesn't exist in Claude Code CLI. This fix: - Replaces --prompt-file with -p flag plus prompt content - Reads prompt content via $(cat "$prompt_file") before execution - Adds error handling for missing prompt files - Maintains shell injection safety through array-based command building - Updates comments to reflect the correct approach Adds 6 TDD tests verifying the fix: - Uses -p flag instead of --prompt-file - Reads prompt file content correctly - Handles missing prompt file - Includes all modern CLI flags - Handles multiline prompt content - Prevents shell injection Test count: 145 -> 151 (all passing) |
||
|---|---|---|
| .. | ||
| helpers | ||
| integration | ||
| unit | ||
| test_error_detection.sh | ||
| test_stuck_loop_detection.sh | ||