Bug: Convenience scripts fail silently when binary is not built
Files: scripts/run-qa-agent.sh, scripts/run-report-agent.sh
set -euo pipefail
cd "$(dirname "$0")/.."
exec ./shellforge qa "${1:-.}"
Problem
Both scripts call ./shellforge directly without checking whether the binary exists. If the binary hasn't been built yet (fresh clone, post-clean), the script exits with a cryptic error:
bash: ./shellforge: No such file or directory
Compare with scripts/run-agent.sh, which already handles this correctly:
if [[ ! -f ./shellforge ]]; then
echo "[run-agent] Building shellforge..."
go build -o shellforge ./cmd/shellforge
fi
Fix
Apply the same build-if-missing guard to both scripts:
set -euo pipefail
cd "$(dirname "$0")/.."
if [[ ! -f ./shellforge ]]; then
echo "[run-qa-agent] Building shellforge..."
go build -o shellforge ./cmd/shellforge
fi
exec ./shellforge qa "${1:-.}"
Impact
Breaks the zero-setup cron/CI experience. Users following the README hit a confusing error before any agent work is done.
Bug: Convenience scripts fail silently when binary is not built
Files:
scripts/run-qa-agent.sh,scripts/run-report-agent.shProblem
Both scripts call
./shellforgedirectly without checking whether the binary exists. If the binary hasn't been built yet (fresh clone, post-clean), the script exits with a cryptic error:Compare with
scripts/run-agent.sh, which already handles this correctly:Fix
Apply the same build-if-missing guard to both scripts:
Impact
Breaks the zero-setup cron/CI experience. Users following the README hit a confusing error before any agent work is done.