Bug Fixes
- Trio compatibility restored: Fixed
RuntimeError: no running event loopwhen usingClaudeSDKClientorquery()under trio, a regression introduced in v0.1.51. Uses sniffio-based dispatch to select the correct async primitive (asyncio.Taskvstrio.lowlevel.spawn_system_task) at runtime while preserving the asyncio CPU-spin and cancel-scope fixes from #746 (#870)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.120
- Added
sniffio>=1.0.0as an explicit runtime dependency (already a transitive dep of anyio)
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.67/
pip install claude-agent-sdk==0.1.67