fix: skip role model override on failover handoffs
When forcedAgentType is set (failover), the role's configured model (e.g. claude-opus-4-6 for reviewer) was injected as CODEX_MODEL, causing codex SDK to reject it. Now model overrides are only injected for the primary agent type, not failover runs.
This commit is contained in:
@@ -494,7 +494,9 @@ export async function runReviewerContainer(args: {
|
||||
containerName,
|
||||
groupAgentType: group.agentType,
|
||||
isCodexAgent,
|
||||
runnerPath: isCodexAgent ? '/app/codex/dist/index.js' : '/app/agent/dist/index.js',
|
||||
runnerPath: isCodexAgent
|
||||
? '/app/codex/dist/index.js'
|
||||
: '/app/agent/dist/index.js',
|
||||
},
|
||||
'Container exec runner selection',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user