hermes - 💡(How to fix) Fix Optimization: Correct API key routing for delegate_task [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

  • Add a clear error when provider and key do not match instead of silently sending the request to the wrong endpoint.

Root Cause

This breaks subagent execution for users who rely on provider-specific delegation settings and causes confusing 401 failures even when the configured key is valid for the intended provider.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Problem

delegate_task should route requests using the delegation-specific provider configuration, but in some setups the API key and request can end up being sent to the wrong endpoint. In particular, an OpenRouter key must never be forwarded to the OpenAI endpoint.

Why this matters

This breaks subagent execution for users who rely on provider-specific delegation settings and causes confusing 401 failures even when the configured key is valid for the intended provider.

Desired behavior

  • Resolve delegation.provider and delegation.model independently from the main agent settings.
  • Use provider-specific endpoint selection when building the request.
  • Ensure credential resolution always matches the selected provider.
  • Prevent OpenRouter credentials from being routed to OpenAI endpoints.

Suggested follow-up

  • Add regression coverage for mixed-provider configurations.
  • Confirm delegation uses the same provider routing logic as the rest of the agent stack.
  • Add a clear error when provider and key do not match instead of silently sending the request to the wrong endpoint.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Optimization: Correct API key routing for delegate_task [1 pull requests]