Skip to content

v0.4.17

Latest

Choose a tag to compare

@Bigred97 Bigred97 released this 20 May 21:58
· 15 commits to main since this release

[0.4.17] — 2026-05-19

Fixed

  • Per-thread _client cache (P0 prod bug, observed on ausdata-api):
    module-global _client bound to the FIRST event loop and tripped
    RuntimeError: Event loop is closed when called from a multi-loop
    host that wraps the MCP and runs asyncio.run(_get_data_impl(...))
    in a worker thread per request. Cache moved to threading.local()
    so each worker thread gets its own client bound to its own loop.
    reset_client_for_tests() now only clears the calling thread.