Files
hermes-agent/tests/tools
Austin Pickett 37eb4d0b37 test(mcp): cover a tools/list_changed refresh that lands during a session restart (#109824)
Three behaviour contracts on _refresh_tools / _schedule_tools_refresh:

- A refresh awaited with session None completes, leaves the registry,
  the toolset alias and the owned-names bookkeeping untouched.
- The real background task path (_schedule_tools_refresh) finishes with
  no ERROR record on tools.mcp_tool, and a subsequent refresh on the
  reconnected session republishes normally. Pre-fix this logged
  "dynamic tool refresh failed" with the NoneType AttributeError.
- Once the session is restored a refresh from an empty registration
  publishes the live tools, so the skip is scoped to a missing session.

Co-authored-by: ly6751 <liuyu890412@gmail.com>
Co-authored-by: salch-cred <salch-cred@users.noreply.github.com>
2026-09-17 19:06:29 -04:00
..