fix: bug: architect-run.sh uses old agent_run() signature, all pitches fail with "Input must be provided" (#690)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

agent_run() now adds -p, --output-format, --max-turns, --dangerously-skip-permissions,
and --model internally. The old call site passed these flags explicitly, causing the
prompt to be parsed as "-p" and claude to error with "Input must be provided".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-11 21:52:38 +00:00
parent ad066326b9
commit ef89b64f5f

View file

@ -516,7 +516,7 @@ ${pitch_context}
# Execute stateless claude -p call
local pitch_output
pitch_output=$(agent_run -p "$pitch_prompt" --output-format json --dangerously-skip-permissions --max-turns 200 ${CLAUDE_MODEL:+--model "$CLAUDE_MODEL"} 2>>"$LOGFILE") || true
pitch_output=$(agent_run "$pitch_prompt" 2>>"$LOGFILE") || true
# Extract pitch content from JSON response
local pitch