Files
hermes-agent/agent
kshitijk4poor 44c269f1eb fix(anthropic): republish the same-turn aux runtime after a token refresh
turn_context publishes the auxiliary main runtime at turn start, before the
first request can trigger the silent Anthropic refresh. Syncing the agent-side
holders alone left that already-published runtime on the revoked token, so
same-turn `auto` aux calls (approvals, goal judge, plugin llm) still 401d.
Re-call _publish_runtime_main when the published key is still the old token;
identity-gated so a fallback or other-route publish is never overwritten.

Also keep #121757's end-to-end aux-route test, rewritten to production
order (publish, then refresh, then read).

Co-authored-by: SoyMarketing <yo@soymarketing.org>
Co-authored-by: mahdi <mahdi.nikfallah@yarnhub.org>
2026-10-07 13:20:42 +05:30
..
…