fix(ralph): Add --output-format json to avoid streaming issues

Synced with roa2web version that discovered this fix.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-01-11 21:23:38 +00:00
parent 2f3e70b60b
commit ecd8bed527

View File

@@ -139,7 +139,8 @@ EOF
LOG_FILE="$SCRIPT_DIR/logs/iteration-$i-$(date +%Y%m%d-%H%M%S).log"
mkdir -p "$SCRIPT_DIR/logs"
echo "$FULL_PROMPT" | claude -p --dangerously-skip-permissions 2>&1 | tee "$LOG_FILE" || true
# --output-format json avoids streaming mode issues
echo "$FULL_PROMPT" | claude -p --dangerously-skip-permissions --output-format json 2>&1 | tee "$LOG_FILE" || true
OUTPUT=$(cat "$LOG_FILE")
# Verifică dacă toate task-urile sunt complete