Fix build

This commit is contained in:
Colin McDonnell
2026-01-19 17:51:13 +00:00
committed by pullfrog[bot]
parent fa01f9c06d
commit 7369e952e4
2 changed files with 14 additions and 5 deletions
+8 -3
View File
@@ -38,9 +38,14 @@ export function resolveAgent(params: {
// if explicitly configured (via override or payload), respect it even without matching keys
// this allows users to force an agent selection (will fail later with clear error if no keys)
// for repo-level defaults, only select if agent has matching API keys
const isExplicitOverride = agentOverride !== undefined || params.payload.agent !== undefined;
if (isExplicitOverride || agentHasApiKeys(agent)) {
const isExplicitOverride = agentOverride !== undefined || params.payload.agent !== null;
if (isExplicitOverride) {
log.info(`» selected configured agent: ${agent.name}`);
return agent;
}
// for repo-level defaults, check if agent has matching keys before selecting
if (agentHasApiKeys(agent)) {
log.info(`» selected configured agent: ${agent.name}`);
return agent;
}