claw-code/rust/crates/tools/src
TheArchitectit a27e9c5ff9 fix(team): qualify bare sub-agent models for custom-openai provider
When the user's active provider is custom-openai, bare model names like
'claude-haiku-4-5-20251001' (saved by /setup as subagentModel) don't
route through the custom endpoint — ProviderClient::from_model dispatches
them to the Anthropic provider instead, which has no credentials.

Add qualify_for_provider() that prefixes bare models with 'custom/' when
the provider config is custom-openai so they share the session's endpoint.
Applied to both the explicit model override and the subagentModel fallback
path in resolve_agent_model().

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-17 13:17:07 -05:00
..
lane_completion.rs feat: agent teams with task claiming, context management, and team monitoring 2026-06-17 11:21:12 -05:00
lib.rs fix(team): qualify bare sub-agent models for custom-openai provider 2026-06-17 13:17:07 -05:00
pdf_extract.rs feat: b6-http-proxy-v2 follow-up work — batch 6 2026-04-07 16:11:51 +09:00