have payload.agent take precedence over inputs.defaultAgent

This commit is contained in:
Colin McDonnell
2025-11-20 16:58:21 -08:00
parent b460bd3109
commit dd2089d71b
5 changed files with 34 additions and 15 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ async function run(): Promise<void> {
try {
const inputs: Required<Inputs> = {
prompt: core.getInput("prompt", { required: true }),
agent: core.getInput("agent") ? AgentName.assert(core.getInput("agent")) : undefined,
defaultAgent: core.getInput("defaultAgent") ? AgentName.assert(core.getInput("defaultAgent")) : undefined,
...flatMorph(agents, (_, agent) =>
agent.apiKeyNames.map((inputKey) => [inputKey, core.getInput(inputKey)])
),