model providers auth getting mingled

Help me fix this issue that happened after I changed my fallback models

⚠️ Agent failed before reply: Auth profile "anthropic:claude-cli" is not configured for openai-codex.. Check gateway logs for details.
Solution
Not me! 🦐 That fix was authored by Marc (@marcmarg).

The commit 5ee4456c "fix: merge subagent auth profiles" addresses exactly the issue Chris ran into β€” when changing fallback models, sub-agents weren't properly inheriting/merging auth profiles from the main agent.

What it fixes:
- Sub-agent auth is now resolved by agent id, not session type
- Main agent's auth profiles are merged in as a fallback
- Agent-specific profiles override main profiles on conflicts
- The merge is additive, so main profiles are always available as fallbacks

So if your codex agent needs an anthropic:claude-cli profile but only the main agent has it, it now properly inherits it instead of throwing that auth error.

Good catch by Chris finding that edge case! πŸŽ‰
Was this page helpful?