From e4dbe6831745755496216b2e6155cd2359ebe5e3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 21:59:36 +0000 Subject: [PATCH] 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}"