Skip to content

fix: handle named custom providers and Z.AI overload retries - #47205

Closed
benbenlijie wants to merge 1 commit into
NousResearch:mainfrom
benbenlijie:fix/named-custom-zai-retry
Closed

fix: handle named custom providers and Z.AI overload retries#47205
benbenlijie wants to merge 1 commit into
NousResearch:mainfrom
benbenlijie:fix/named-custom-zai-retry

Conversation

@benbenlijie

Copy link
Copy Markdown
Contributor

Summary

  • Match custom:<provider_key> / custom:<name> entries when merging custom provider extra_body
  • Add narrow adaptive backoff for Z.AI Coding Plan GLM-5.2 transient overload 429s (code 1305 / temporarily overloaded)
  • Surface long adaptive waits immediately so the TUI/CLI does not appear frozen during multi-minute overload backoff

Test Plan

  • python -m pytest tests/test_retry_utils.py tests/agent/test_custom_provider_extra_body.py -q -o 'addopts='

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint provider/zai ZAI provider labels Jun 16, 2026
pai-scaffolde pushed a commit to pai-scaffolde/hermes-agent that referenced this pull request Jun 28, 2026
@benbenlijie

Copy link
Copy Markdown
Contributor Author

It looks like this patch has landed on main as equivalent upstream commit 6f2b2a1f34 (fix: handle named custom providers and Z.AI overload retries).\n\nI verified with git cherry -v origin/main fix/named-custom-zai-retry, which marks this PR commit as already absorbed. Closing this PR as superseded by the upstream main commit. Thanks!

@benbenlijie benbenlijie closed this Jul 1, 2026
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
habarmc1223-sudo pushed a commit to habarmc1223-sudo/hermes-agent-fluxmem that referenced this pull request Jul 8, 2026
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P2 Medium — degraded but workaround exists provider/zai ZAI provider type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants