Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/run-qa-agent.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."

if [[ ! -f ./shellforge ]]; then
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build guard checks -f ./shellforge, but exec ./shellforge ... requires the binary to be executable. If shellforge exists without execute permissions (e.g., from an archive/checkout), this will skip the build and then fail at exec. Consider switching the check to [[ ! -x ./shellforge ]] (or verifying executability before exec).

Suggested change
if [[ ! -f ./shellforge ]]; then
if [[ ! -x ./shellforge ]]; then

Copilot uses AI. Check for mistakes.
echo "[run-qa-agent] Building shellforge..."
go build -o shellforge ./cmd/shellforge
fi
Comment on lines +5 to +8
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script duplicates the same “build shellforge if missing” logic that already exists in scripts/run-agent.sh. To reduce duplication and keep behavior consistent, consider delegating to run-agent.sh (or extracting a shared helper) rather than re-implementing the build step here.

Copilot uses AI. Check for mistakes.

exec ./shellforge qa "${1:-.}"
6 changes: 6 additions & 0 deletions scripts/run-report-agent.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."

if [[ ! -f ./shellforge ]]; then
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build guard checks -f ./shellforge, but exec ./shellforge ... requires the binary to be executable. If shellforge exists without execute permissions, this will skip the build and then fail at exec. Consider switching the check to [[ ! -x ./shellforge ]] (or verifying executability before exec).

Suggested change
if [[ ! -f ./shellforge ]]; then
if [[ ! -x ./shellforge ]]; then

Copilot uses AI. Check for mistakes.
echo "[run-report-agent] Building shellforge..."
go build -o shellforge ./cmd/shellforge
fi

exec ./shellforge report "${1:-.}"
Comment on lines +5 to 10
Copy link

Copilot AI Apr 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script duplicates the same “build shellforge if missing” logic that already exists in scripts/run-agent.sh. To reduce duplication and keep behavior consistent, consider delegating to run-agent.sh (or extracting a shared helper) rather than re-implementing the build step here.

Suggested change
if [[ ! -f ./shellforge ]]; then
echo "[run-report-agent] Building shellforge..."
go build -o shellforge ./cmd/shellforge
fi
exec ./shellforge report "${1:-.}"
exec ./scripts/run-agent.sh report "${1:-.}"

Copilot uses AI. Check for mistakes.
Loading