model providers auth getting mingled
@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!
