claw-code/rust/crates/tools
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
..
src fix(team): qualify bare sub-agent models for custom-openai provider 2026-06-17 13:17:07 -05:00
tests Keep G002 path-scope tests aligned with enforced denials 2026-05-14 17:33:47 +09:00
.gitignore fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
Cargo.toml feat(tools): add LoggingAspect to unified tool dispatch entry point 2026-05-25 11:22:45 +09:00
GIT_TOOLS_README.md feat: git-aware context tools 2026-05-25 11:24:37 +09:00
MULTI_TOOL_README.md feat: SubAgent tool for fast sub-agent delegation 2026-06-10 16:49:33 -05:00