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
+6 -2
View File
@@ -137974,8 +137974,12 @@ function resolveAgent(params) {
if (!agent3) {
throw new Error(`invalid agent name: ${configuredAgentName}`);
}
const isExplicitOverride = agentOverride !== void 0 || params.payload.agent !== void 0;
if (isExplicitOverride || agentHasApiKeys(agent3)) {
const isExplicitOverride = agentOverride !== void 0 || params.payload.agent !== null;
if (isExplicitOverride) {
log.info(`\xBB selected configured agent: ${agent3.name}`);
return agent3;
}
if (agentHasApiKeys(agent3)) {
log.info(`\xBB selected configured agent: ${agent3.name}`);
return agent3;
}