From ef89b64f5fdf9f5135ab8ee86c7ede36fd620dcb Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 21:52:38 +0000 Subject: [PATCH 1/2] fix: bug: architect-run.sh uses old agent_run() signature, all pitches fail with "Input must be provided" (#690) 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) --- architect/architect-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/architect/architect-run.sh b/architect/architect-run.sh index 4812664..ceadc7d 100755 --- a/architect/architect-run.sh +++ b/architect/architect-run.sh @@ -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 From e4dbe6831745755496216b2e6155cd2359ebe5e3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 21:59:36 +0000 Subject: [PATCH 2/2] fix: read pitch output from $_AGENT_LAST_OUTPUT, not stdout (#690) agent_run() stores its output in $_AGENT_LAST_OUTPUT but never emits it to stdout. The old subshell capture always yielded an empty string, so pitches silently failed even after the signature fix. Co-Authored-By: Claude Opus 4.6 (1M context) --- architect/architect-run.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/architect/architect-run.sh b/architect/architect-run.sh index ceadc7d..f2f4ff0 100755 --- a/architect/architect-run.sh +++ b/architect/architect-run.sh @@ -515,12 +515,11 @@ ${pitch_context} " # Execute stateless claude -p call - local pitch_output - pitch_output=$(agent_run "$pitch_prompt" 2>>"$LOGFILE") || true + agent_run "$pitch_prompt" 2>>"$LOGFILE" || true # Extract pitch content from JSON response local pitch - pitch=$(printf '%s' "$pitch_output" | jq -r '.content // empty' 2>/dev/null) || pitch="" + pitch=$(printf '%s' "$_AGENT_LAST_OUTPUT" | jq -r '.content // empty' 2>/dev/null) || pitch="" if [ -z "$pitch" ]; then log "WARNING: empty pitch generated for vision issue #${issue_num}"