From ecd8bed527c0ef9b1016148018bb01a7e64dadb1 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Sun, 11 Jan 2026 21:23:38 +0000 Subject: [PATCH] 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 --- skills/ralph/templates/ralph.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skills/ralph/templates/ralph.sh b/skills/ralph/templates/ralph.sh index 50fdd90..859e55f 100755 --- a/skills/ralph/templates/ralph.sh +++ b/skills/ralph/templates/ralph.sh @@ -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