GPT-5 finding
Syntax error in GATEWAY provider parsing causes Run step to fail
- .github/workflows/aeon.yml
The command substitution uses a malformed quoting sequence for tr -d (attempting to include both single and double quotes) which breaks shell parsing. A syntax error here will abort the shell step, preventing model routing from being determined and potentially breaking the entire Run step prior to invoking claude.
Recommendation
Replace the fragile grep/sed/tr pipeline with a robust, correctly quoted extraction. Examples: - Minimal fix (proper quoting): GATEWAY=$(grep -A1 '^gateway:' aeon.yml | grep 'provider:' | sed 's/.*provider:[[:space:]]*//; s/["'"' ]//g' || true) [ -z "$GATEWAY" ] && GATEWAY=direct - Or, prefer a YAML parser if available: command -v yq >/dev/null && GATEWAY=$(yq -r '.gateway.provider // "direct"' aeon.yml) || GATEWAY=${GATEWAY:-direct}