diff --git a/scripts/scrum_review.sh b/scripts/scrum_review.sh index 369f8ab..845fe1e 100755 --- a/scripts/scrum_review.sh +++ b/scripts/scrum_review.sh @@ -81,10 +81,14 @@ $DIFF_CONTENT printf " %-6s %s ... " "$short" "$model" local t0=$SECONDS local status - status=$(curl -sS -o /tmp/scrum_resp.json -w '%{http_code}' --max-time 240 \ + # Pipe the body via stdin (`-d @-`) — large diffs (>~128KB) blow + # past the kernel's argv limit when passed via `--data `. + # Phase A+B was 128875 bytes and hit "Argument list too long" until + # this fix. + status=$(printf '%s' "$body" | curl -sS -o /tmp/scrum_resp.json -w '%{http_code}' --max-time 240 \ -X POST "$GATEWAY/v1/chat" \ -H 'Content-Type: application/json' \ - --data "$body") + --data-binary @-) local elapsed=$((SECONDS - t0)) if [ "$status" != "200" ]; then printf "✗ HTTP %s (%ds)\n" "$status" "$elapsed"