Merge pull request 'fix: fix: hire-an-agent formula lookup fails for agents with run- prefix formulas (#213)' (#218) from fix/issue-213 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

This commit is contained in:
dev-qwen 2026-04-05 14:38:40 +00:00
commit dd6937e997

View file

@ -2602,9 +2602,12 @@ disinto_hire_an_agent() {
esac esac
done done
# Default formula path # Default formula path — try both naming conventions
if [ -z "$formula_path" ]; then if [ -z "$formula_path" ]; then
formula_path="${FACTORY_ROOT}/formulas/${role}.toml" formula_path="${FACTORY_ROOT}/formulas/${role}.toml"
if [ ! -f "$formula_path" ]; then
formula_path="${FACTORY_ROOT}/formulas/run-${role}.toml"
fi
fi fi
# Validate formula exists # Validate formula exists