Finding / hermes-agent
2026-07-01-hermes-agent-mcp-oauth-401-recovery-task-no-longer-garbage-collected
MCP OAuth 401 recovery task no longer garbage-collected mid-flight (fixes hung reconnections) (channel: main-unreleased, 2026-06-30). Operator consequence: Reliability fix on the MCP-persistence surface (this window's carry-forward theme). handle_401() spawned recovery tasks with asyncio.create_task() but dropped the handle; the event loop's weak reference let the coroutine be GC'd between awaits, hanging concurrent callers forever and 'poisoning' the manager for that token until process restart. Fix anchors tasks in an _inflight_tasks set with add_done_callback cleanup (tools/mcp_oauth_manager.py). Operators wrapping Hermes as an MCP client with OAuth-authed servers should watch/upgrade for reconnection reliability; still main-only, not yet tagged (merge SHA 20ca2d5). Full receipted detail lives in harvest/watchlist.md.
Receipt
Finding metadata
Run: 2026-07-01-weekly-digest-2026-06-24_2026-07-01-frontier-v0
Finding ID: 2026-07-01-hermes-agent-mcp-oauth-401-recovery-task-no-longer-garbage-collected
Source links
Primary links, including exact changelog lines when available.