Skip to content

fix(delegation): honor provider overrides for subagents#26486

Open
aqilaziz wants to merge 2 commits into
NousResearch:mainfrom
aqilaziz:fix-delegation-model-overrides
Open

fix(delegation): honor provider overrides for subagents#26486
aqilaziz wants to merge 2 commits into
NousResearch:mainfrom
aqilaziz:fix-delegation-model-overrides

Conversation

@aqilaziz

Copy link
Copy Markdown
Contributor

Summary

  • preserve concrete delegation.provider routing when delegation.base_url/api_key are set
  • pass delegation endpoint/key as explicit runtime provider overrides instead of relabeling provider-specific children as custom
  • expand \ references from runtime CLI_CONFIG delegation settings
  • add regression coverage for DeepSeek subagent overrides and parent ACP transport clearing

Fixes #26482

Tests

  • python -m pytest -o addopts= tests\tools\test_delegate.py -q --tb=short
  • python -m pytest -o addopts= tests\e2e\test_discord_adapter.py -q --tb=short
  • python -m pytest -o addopts= tests\run_agent\test_provider_parity.py::TestDeveloperRoleSwap::test_developer_role_via_nous_portal tests\run_agent\test_provider_parity.py::TestBuildApiKwargsNousPortal::test_includes_nous_product_tags tests\run_agent\test_provider_parity.py::TestBuildApiKwargsNousPortal::test_uses_chat_completions_format -q --tb=short
  • python -m ruff check tools\delegate_tool.py tests\tools\test_delegate.py tests\e2e\conftest.py tests\run_agent\test_provider_parity.py
  • git diff --check

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent loop, run_agent.py, prompt builder tool/delegate Subagent delegation labels May 15, 2026
@aqilaziz aqilaziz force-pushed the fix-delegation-model-overrides branch from 7e8d39c to cbae261 Compare May 15, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists tool/delegate Subagent delegation type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

delegation model override ignored — subagents always inherit parent provider/model

2 participants